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

Class VLAN


Action to set the top most VLAN ID. If no VLAN exists, push it and set it.

ActionType.SET_VLAN_ID ActionType.POP_VLAN_ID

***DEPRICATED*** VLANActionType is depricated. Please use action.ActionType ****************

Instance Methods
 
__init__(self, type, vlan)
x.__init__(...) initializes x; see help(type(x)) for signature
 
__eq__(self, obj)

Inherited from Action: check_action_support, get_action_type

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

Class Variables
  VLANActionType = enum(SET= ActionType.SET_VLAN_ID, POP= Action...
***DEPRICATED*** Please use onep.action.ActionType ActionType.SET_VLAN_ID ActionType.POP_VLAN_ID

Inherited from Action: ActionOpCode, ActionType, BandwidthUnits, BurstUnits, Direction, RateUnits, ThresholdUnits, __metaclass__, action_type, handle, op_code

Properties

Inherited from object: __class__

Method Details

__init__(self, type, vlan)
(Constructor)

 

x.__init__(...) initializes x; see help(type(x)) for signature

Parameters:
  • type (ActionType) - ActionType of VLAN
  • vlan - VLAN ID.
Overrides: object.__init__

Class Variable Details

VLANActionType

***DEPRICATED*** Please use onep.action.ActionType ActionType.SET_VLAN_ID ActionType.POP_VLAN_ID

Value:
enum(SET= ActionType.SET_VLAN_ID, POP= ActionType.POP_VLAN_ID)