noc.core.lldp

Module Contents

noc.core.lldp.LLDP_CHASSIS_SUBTYPE_CHASSIS_COMPONENT = 1
noc.core.lldp.LLDP_CHASSIS_SUBTYPE_INTERFACE_ALIAS = 2
noc.core.lldp.LLDP_CHASSIS_SUBTYPE_PORT_COMPONENT = 3
noc.core.lldp.LLDP_CHASSIS_SUBTYPE_MAC = 4
noc.core.lldp.LLDP_CHASSIS_SUBTYPE_NETWORK_ADDRESS = 5
noc.core.lldp.LLDP_CHASSIS_SUBTYPE_INTERFACE_NAME = 6
noc.core.lldp.LLDP_CHASSIS_SUBTYPE_LOCAL = 7
noc.core.lldp.LLDP_PORT_SUBTYPE_ALIAS = 1
noc.core.lldp.LLDP_PORT_SUBTYPE_COMPONENT = 2
noc.core.lldp.LLDP_PORT_SUBTYPE_MAC = 3
noc.core.lldp.LLDP_PORT_SUBTYPE_NETWORK_ADDRESS = 4
noc.core.lldp.LLDP_PORT_SUBTYPE_NAME = 5
noc.core.lldp.LLDP_PORT_SUBTYPE_AGENT_CIRCUIT_ID = 6
noc.core.lldp.LLDP_PORT_SUBTYPE_LOCAL = 7
noc.core.lldp.LLDP_PORT_SUBTYPE_UNSPECIFIED = 128
noc.core.lldp.LLDP_CAP_OTHER = 1
noc.core.lldp.LLDP_CAP_REPEATER = 2
noc.core.lldp.LLDP_CAP_BRIDGE = 4
noc.core.lldp.LLDP_CAP_WLAN_ACCESS_POINT = 8
noc.core.lldp.LLDP_CAP_ROUTER = 16
noc.core.lldp.LLDP_CAP_TELEPHONE = 32
noc.core.lldp.LLDP_CAP_DOCSIS_CABLE_DEVICE = 64
noc.core.lldp.LLDP_CAP_STATION_ONLY = 128
noc.core.lldp.LLDP_CAP_NAMES
noc.core.lldp.lldp_caps_to_bits(caps, caps_map)
Convert list of LLDP capabilities names to integer,
suitable to IGetLLDPNeighbors remote_capabilities
Parameters:
  • caps – List of LLDP capabilities names
  • caps_map – name -> LLDP_CAP_* mapping. Name in lowercase
Returns:

IGetLLDPNeighbors.remote_capabilities