Retrieve LLDP facts using SNMP
def test_fun(localhost, duthosts, rand_one_dut_hostname):
duthost = duthosts[rand_one_dut_hostname]
facts = localhost.lldp_facts(host=duthost.mgmt_ip, version='v2c', community="public")
host
- IP for desired host to get lddp facts for- Required:
True
- Type:
String
- Required:
version
- SNMP version being used- Required:
True
- Type:
String
- Choices:
v2
v2c
v3
- Required:
community
- SNMP community- Required:
True
ifversion="v2"/"v2c"
,False
otherwise - Type:
String
- Required:
level
- Authentication level, required for v3- Required:
True
ifversion="v3"
,False
otherwise - Type:
String
- Choices:
authPriv
authNoPriv
- Required:
username
- Username for v3. Required for v3- Required:
True
ifversion="v3"
,False
otherwise - Type:
String
- Required:
integrity
- Hashing algorithm desired. Required for v3- Required:
True
ifversion="v3"
,False
otherwise - Type:
String
- Choices:
md5
sha
- Required:
authkey
- authentication key for v3. Required for v3- Required:
True
ifversion="v3"
,False
otherwise - Type:
String
- Required:
privacy
- Encryption algorithm, required iflevel
isauthPriv
- Required:
True
iflevel="authPriv"
,False
otherwise - Type:
String
- Choices:
des
aes
- Required:
privkey
- Encryption key, required iflevel
isauthPriv
- Required:
True
iflevel="authPriv"
,False
otherwise - Type:
String
- Required:
Unable to test output. Timeout on my system due to it being slow.