Package onep :: Package policyservice :: Module match :: Class IPAddress
[frames] | no frames]

Class IPAddress


IPAddress Class matches IPv6 or IPv4 addresses

address - IPv6 or IPv4 IP address prefix_len - address subnet mask direction - match.Direction enum

Instance Methods
 
__init__(self, address, prefix_len, direction)
Constructs Match.
 
__eq__(self, obj)

Inherited from Match: check_match_support, get_match_type, match_type, set_negate

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Class Variables

Inherited from Match: MatchOpCode, MatchType, __metaclass__

Properties

Inherited from object: __class__

Method Details

__init__(self, address, prefix_len, direction)
(Constructor)

 

Constructs Match.

Parameters:
  • address (str) - IP address.
  • prefix_len (int) - Prefix Length.
  • direction (Direction) - Direction.
Raises:
Overrides: object.__init__