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

Class VLAN


VLAN class.

Match on top most VLAN ID. This matches and classifies traffic on the basis of the virtual local area network (VLAN) identification number.

Instance Methods
 
__init__(self, *vlan_ids)
Constructs a VLAN 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, *vlan_ids)
(Constructor)

 

Constructs a VLAN match.

Valid vlan id number must be in the range of 1 to 4095.

Ignores an invalid vlan id value in *vlan_ids, if present.

Parameters:
  • vlan_ids (Variable length argument list of int) - List of specific IEEE 802.1Q/ISL CoS value.
Raises:
Overrides: object.__init__