Gathers LLDP facts from the SONiC device.
def test_fun(duthosts, rand_one_dut_hostname):
duthost = duthosts[rand_one_dut_hostname]
lldp_info = duthost.minigraph_facts(host=duthost.hostname)
asic_instance_id
- numeric id identifing an ASIC- Required:
False
- Type:
Integer
- Default:
None
- Required:
skip_interface_pattern_list
- list of regex patterns that will be used to ignore interfaces with matching names- Required:
False
- Type:
List
- Element-Type:
String
- Element-Type:
- Default:
None
- Required:
Dictionary containing facts gathered by the LLDP protocol. The dictionary hierarchy is described below, with each indentation describing a sub-dictionary:
ansible_facts
- Dictionary containing info gathered by LLDPlldpctl
- Dictionary mapping port names to information regarding them{PORT_NAME}
- Dictionary containing information on the specified portrid
- numeric id for entryvia
- method for getting LLDP factsage
- age of the ports configurationchassis
- Dictionary containig information on chassisBridge
- Dictionary containing config for bridgeenabled
- Whether or not Bridge is enabled
Wlan
- Dictionary containing config for Wlanenabled
- Whether or not WLAN is enabled
name
- Name for devicedescr
- String description for devicemac
- Device router mac addressStation
- dictionary containing config info on Stationenabled
- Whether Station is enabled or not
Router
- Dictionary containing config info on Routerenabled
- Whether or not Router is enabled
port
- Dictionary containing config info on the portauto-negotiation
- Dictionary containing info on auto-negotiationcurrent
- String description of current configurationsupported
- Whether or not current config supports auto-negotiationenabled
- Whether or not auto-negotiation is enabled
local
- Local alias for portaggregation
- port for link aggregationdescr
- name for portttl
- time to live