Package onep :: Package policy :: Module L2Ace :: Class L2Ace
[frames] | no frames]

Class L2Ace


L2 Access Control Element (ACE) Class.

It defines a set of attributes for matching a packet. One or more ACEs may be added to an Access Control List (ACL).

Instance Methods
 
__init__(self, sequence, permit)
Constructor of class L2Ace.
str
__str__(self)
Returns a string representation of the L2 Access Control Element(ACE) instance.

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

Class Variables
  permit = property(_get_permit, _set_permit, None, _doc)
  src_mac = property(_get_src_mac, _set_src_mac, None, _doc)
  src_mac_mask = property(_get_src_mac_mask, _set_src_mac_mask, ...
  dst_mac = property(_get_dst_mac, _set_dst_mac, None, _doc)
  dst_mac_mask = property(_get_dst_mac_mask, _set_dst_mac_mask, ...
Properties

Inherited from object: __class__

Method Details

__init__(self, sequence, permit)
(Constructor)

 

Constructor of class L2Ace.

Instantiate a new L2 Access Control Element(ACE):

   ACE Properties are initialized as follows:
   Source Mac address:           0x00:0x00:0x00:0x00:0x00:0x00
   Source Mac address mask:      0xff:0xff:0xff:0xff:0xff:0xff
   Destination Mac address:      0x00:0x00:0x00:0x00:0x00:0x00
   Destination Mac address mask: 0xff:0xff:0xff:0xff:0xff:0xff
Parameters:
  • sequence (int) - Position of L2 ACE in the L2 Access Control List(ACL).
  • permit (bool) - pass TRUE for permit, pass FALSE for deny.
Raises:
Overrides: object.__init__

__str__(self)
(Informal representation operator)

 

Returns a string representation of the L2 Access Control Element(ACE) instance.

Returns: str
String representation of the L2 ACE.
Overrides: object.__str__

Class Variable Details

src_mac_mask

Value:
property(_get_src_mac_mask, _set_src_mac_mask, None, _doc)

dst_mac_mask

Value:
property(_get_dst_mac_mask, _set_dst_mac_mask, None, _doc)