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

Class Port



Set port field in L4 header

Pass in an IP protocol to signify which protocol
the port belongs to.

Supported protocols:
--------------------
TCP
UDP
SCTP

Instance Methods
 
__init__(self, port, direction, protocol)
x.__init__(...) initializes x; see help(type(x)) for signature
 
__eq__(self, obj)
 
__str__(self)
str(x)

Inherited from Action: check_action_support, get_action_type

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

Class Variables
  TCP = 6
  UDP = 17
  SCTP = 132

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, port, direction, protocol)
(Constructor)

 

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

Parameters:
  • port (short) - L4 port to set
  • direction (action.Direction) - Direction enum
  • protocol (int) - IP protocol number
Overrides: object.__init__

__str__(self)
(Informal representation operator)

 

str(x)

Overrides: object.__str__
(inherited documentation)