VlanPriority Object

class activelogic.VlanPriorityObject

Object representing one or several VLAN priorities.

This object can be used to match one or several VLAN priority code points (PCP) as defined by IEEE 802.1p. VLAN priorities from 0 to 7 are supported.

Each item is a single priority. To create an object that matches on several priorities, add several items.

>>> obj = rs.add(VlanPriorityObject('myobj', items=[1, 2]))
class activelogic.VlanPriorityObjectItem

Object representing an item of a VlanPriorityObject.

Parameters:

value (int) – VLAN priority

>>> VlanPriorityObjectItem(1)