MPLS Object

class activelogic.MPLSObject

Object representing a MPLSObject.

>>> mo = rs.add(MPLSObject('MyMPLSObject', items=['1']))
>>> mo = rs.add(MPLSObject('MyMPLSObject', items=['1', '2-100']))
>>> mo = rs.add(MPLSObject('MyMPLSObject', items=[MPLSObjectRangeItem(1,5)]))
class activelogic.MPLSObjectSingleItem

Object representing a MPLSObjectItem holding a single label.

Parameters

label (int) – Label number

>>> MPLSObjectSingleItem(1000)
class activelogic.MPLSObjectRangeItem

Object representing a MPLSObjectItem holding a label range.

Parameters
  • label_first (int) – First label number in range

  • label_last (int) – Last label number in range

>>> MPLSObjectRangeItem(0, 1000)