Package onep :: Package policyservice :: Module match :: Class TCPPort
[frames] | no frames]

Class TCPPort


TCPPort class is deprecated. Please use Port class.


Deprecated: Deprecated with SDK release 1.2.2

Instance Methods
 
__init__(self, port_direction, protocol, port1, port2=None)
Constructs a port or port range match.

Inherited from Port: __eq__

Inherited from Match: check_match_support, get_match_type, match_type, set_negate

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

Class Variables

Inherited from Port: Protocol

Inherited from Match: MatchOpCode, MatchType, __metaclass__

Properties

Inherited from object: __class__

Method Details

__init__(self, port_direction, protocol, port1, port2=None)
(Constructor)

 

Constructs a port or port range match.

Parameters:
  • port_direction - Either source or destination port.
  • protocol - Port.Protocol enum
  • port1 - start port range
  • port2 - end port range (default is value of port1)
Decorators:
  • @deprecated(Port)
Raises:
Overrides: object.__init__
(inherited documentation)