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

Class Shape


Action to shape traffic.

Instance Methods
 
__init__(self, type=ShapeType.SHAPE_AVG, rate_units=RateUnits.RATE_UNITS_BPS, cir=None, cbs=None, burst_units=BurstUnits.BURST_UNITS_BITS, ebs=None)
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

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=ShapeType.SHAPE_AVG, rate_units=RateUnits.RATE_UNITS_BPS, cir=None, cbs=None, burst_units=BurstUnits.BURST_UNITS_BITS, ebs=None)
(Constructor)

 

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

Parameters:
  • shape_type (ShapeType) - Shape type: average or peak
  • rate_units (RateUnits) - The units for measuring the rate
  • burst_units (BurstUnits) - The units for measuring the burst
  • cir (int) - Committed information rate (CIR)
  • cbs (int) - Committed burst size (CBS)
  • ebs (int) - Excess burst size (EBS)
Overrides: object.__init__