Port Object

class activelogic.PortObject

Object representing a PortObject.

>>> po = rs.add(PortObject('MyPortObject', items=[1, 2]))
>>> po = rs.add(PortObject('MyPortObject', items=[PortObjectSingleItem(1)]))
class activelogic.PortObjectSingleItem

Object representing a PortObjectItem holding a single port.

Parameters

port (int) – Port number

>>> PortObjectSingleItem(80)
class activelogic.PortObjectRangeItem

Object representing a PortObjectItem holding a port range.

Parameters
  • port_first (int) – First port number in range

  • port_last (int) – Last port number in range

>>> PortObjectRangeItem(6667, 6669)