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

Class Mark


Action to mark packet.

Actions include: ActionType.SET_DSCP ActionType.SET_L2_COS ActionType.SET_QOS_GROUP ActionType.SET_MPLS_EXP ************************** *** MPLS actions moved *** *** to MPLS class *** **************************

***DEPRECATED*** MarkType enum is deprecated. Please use action.ActionTypes ***********

Instance Methods
 
__init__(self, mark_type, value)
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
  MarkType = enum(MARK_IP_DSCP= ActionType.SET_DSCP, MARK_L2_COS...
***DEPRECATED*** Please use action.ActionType ActionType.SET_DSCP ActionType.SET_L2_COS ActionType.SET_QOS_GROUP ActionType.SET_MPLS_EXP ActionType.SET_MPLS_EXP_TOPMOST

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, mark_type, value)
(Constructor)

 

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

Parameters:
  • mark_type (mark_type) - Marking ActionType
  • value (int) - Marking value
Overrides: object.__init__

Class Variable Details

MarkType

***DEPRECATED*** Please use action.ActionType ActionType.SET_DSCP ActionType.SET_L2_COS ActionType.SET_QOS_GROUP ActionType.SET_MPLS_EXP ActionType.SET_MPLS_EXP_TOPMOST

Value:
enum(MARK_IP_DSCP= ActionType.SET_DSCP, MARK_L2_COS= ActionType.SET_L2\
_COS, MARK_QOS_GROUP= ActionType.SET_QOS_GROUP, MARK_MPLS_EXP= ActionT\
ype.SET_MPLS_EXP, MARK_MPLS_EXP_TOPMOST= ActionType.SET_MPLS_EXP_TOPMO\
ST,)