def test_portid_subtype_ifname(lldpd1, lldpd, lldpcli, namespaces):
with namespaces(2):
lldpd()
- result = lldpcli("configure", "lldp", "portidsubtype", "ifname")
+ lldpcli("configure", "lldp", "portidsubtype", "ifname")
time.sleep(3)
with namespaces(1):
out = lldpcli("-f", "keyvalue", "show", "neighbors")
idx = ipr.link_lookup(ifname="eth1")[0]
ipr.link('set', index=idx, ifalias="alias of eth1")
lldpd()
- result = lldpcli("configure", "lldp", "portidsubtype", "macaddress")
+ lldpcli("configure", "lldp", "portidsubtype", "macaddress")
time.sleep(3)
with namespaces(1):
out = lldpcli("-f", "keyvalue", "show", "neighbors")
def test_portid_subtype_local(lldpd1, lldpd, lldpcli, namespaces):
with namespaces(2):
lldpd()
- result = lldpcli("configure", "lldp", "portidsubtype", "local", "localname")
+ lldpcli("configure", "lldp", "portidsubtype", "local", "localname")
time.sleep(3)
with namespaces(1):
out = lldpcli("-f", "keyvalue", "show", "neighbors")
def test_portid_subtype_local_with_description(lldpd1, lldpd, lldpcli, namespaces):
with namespaces(2):
lldpd()
- result = lldpcli("configure", "lldp", "portidsubtype", "local", "localname", "description", "localdescription")
+ lldpcli("configure", "lldp", "portidsubtype", "local", "localname", "description", "localdescription")
time.sleep(3)
with namespaces(1):
out = lldpcli("-f", "keyvalue", "show", "neighbors")
ipr.link('set', index=idx, ifalias="alias of eth1")
lldpd()
lldpd()
- result = lldpcli("configure", "lldp", "portidsubtype", "local", "localname")
+ lldpcli("configure", "lldp", "portidsubtype", "local", "localname")
time.sleep(3)
with namespaces(1):
out = lldpcli("-f", "keyvalue", "show", "neighbors")