VlanID Object
- class activelogic.VlanIDObject
Object representing a VlanIDObject.
>>> obj1 = rs.add(VlanIDObject('myobj', items=[1, "4-5"])) >>> obj2 = rs.add(VlanIDObject('myobj2', items=[VlanIDObjectSingleItem(1)])) >>> obj3 = rs.add(VlanIDObject('myobj3', items=[VlanIDObjectRangeItem(4, 5)]))
- class activelogic.VlanIDObjectSingleItem
Object representing a single VLAN ID item.
- Parameters:
vlan_id (int) – VLAN ID.
>>> VlanIDObjectSingleItem(4)
- class activelogic.VlanIDObjectRangeItem
Object representing a VLAN ID range.
- Parameters:
vlan_id_first (int) – First VLAN ID in range.
vlan_id_last (int) – Last VLAN ID in range.
>>> VlanIDObjectRangeItem(30, 45)