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

Class MACAddress


MACAddress Class.

It uses source or destination MAC address as match criterion.

Instance Methods
 
__init__(self, direction, mac_address, mask=None)
Constructs a MAC address match with MAC address and mask.
 
__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
  direction = property(_get_direction, None, None, _doc_direction)

Inherited from Match: MatchOpCode, MatchType, __metaclass__

Properties

Inherited from object: __class__

Method Details

__init__(self, direction, mac_address, mask=None)
(Constructor)

 

Constructs a MAC address match with MAC address and mask.

mask is optional parameter.

List or Array of length six represents mac address. List position or an array index represents single byte of mac address.

List or Array of length six represents mac address mask. List position or an array index represents single byte of mac address mask.

Parameters:
  • direction (Direction) - Source or Destination.
  • mac_address (list or array) - MAC address.
  • mask (list or array) - MAC address mask.
Raises:
Overrides: object.__init__