BGP Object

class activelogic.BGPObject

Object representing a BGPObject.

>>> obj1 = rs.add(BGPObject(name="bgpobject1", items=["2000@0"]))
>>> obj2 = rs.add(BGPObject(name="bgpobject2", items=["2000:10"]))
class activelogic.BGPObjectASItem

Object representing a BGPObject for AS item.

Parameters:
  • asnumber (int) – AS number

  • position (int) – Position

>>> BGPObjectASItem(2000, 0)
class activelogic.BGPObjectCommunityItem

Object representing a BGPObject for Community item.

Parameters:
  • asnumber (int) – AS number

  • community (int) – Community

>>> BGPObjectCommunityItem(2000, 0)