The networking_cisco.apps.saf.agent.topo_disc.pub_lldp_api Module¶
This file contains the public API’s for interacting with LLDPAD.
-
class
networking_cisco.apps.saf.agent.topo_disc.pub_lldp_api.LldpApi(root_helper)¶ Bases:
objectLLDP API Class.
-
enable_lldp(port_name, is_ncb=True, is_nb=False)¶ Function to enable LLDP on the interface.
-
get_lldp_tlv(port_name, is_ncb=True, is_nb=False)¶ Function to Query LLDP TLV on the interface.
-
get_remote_chassis_id_mac(tlv_data)¶ Returns Remote Chassis ID MAC from the TLV.
-
get_remote_evb_cfgd(tlv_data)¶ Returns IF EVB TLV is present in the TLV.
-
get_remote_evb_mode(tlv_data)¶ Returns the EVB mode in the TLV.
-
get_remote_mgmt_addr(tlv_data)¶ Returns Remote Mgmt Addr from the TLV.
-
get_remote_port(tlv_data)¶ Returns Remote Port from the TLV.
-
get_remote_port_id_local(tlv_data)¶ Returns Remote Port ID Local from the TLV.
-
get_remote_port_id_mac(tlv_data)¶ Returns Remote Port ID MAC from the TLV.
-
get_remote_sys_desc(tlv_data)¶ Returns Remote Sys Desc from the TLV.
-
get_remote_sys_name(tlv_data)¶ Returns Remote Sys Name from the TLV.
-
run_lldptool(args)¶ Function for invoking the lldptool utility.
-