Commit 804916c3 authored by Andrey Vertiprahov's avatar Andrey Vertiprahov
Browse files

Merge branch 'cherry-pick-d64b48d2' into 'release-20.4'

release-20.4:Backport!5434

See merge request !5435
parents e54816c0 69c8755a
...@@ -55,7 +55,11 @@ class Script(BaseScript): ...@@ -55,7 +55,11 @@ class Script(BaseScript):
elif port_subtype == LLDP_PORT_SUBTYPE_MAC: elif port_subtype == LLDP_PORT_SUBTYPE_MAC:
# Iface MAC address # Iface MAC address
raise NotImplementedError() raise NotImplementedError()
elif port_subtype == LLDP_PORT_SUBTYPE_LOCAL and port_id.isdigit(): elif (
port_subtype == LLDP_PORT_SUBTYPE_LOCAL
and port_id.isdigit()
and int(port_id) in names
):
# Iface local (ifindex) # Iface local (ifindex)
iface_name = names[int(port_id)] iface_name = names[int(port_id)]
else: else:
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment