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

Class L2Cos


L2Cos Class.

L2 COS match. This matches a packet on the basis of a Layer 2 class of service (CoS)/Inter-Switch Link (ISL) marking.

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

 

Constructs a L2CoS match.

The CoS is from 0 to 7.

Ignores an invalid l2cos value in *l2cos, if present.

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