Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Alexey Shapovalov
noc
Commits
5e740cae
Verified
Commit
5e740cae
authored
Jun 03, 2021
by
Andrey Vertiprahov
Browse files
Generic.get_lldp_neighbors. Fix trace wnen local_id not in names.
parent
76f2d1d8
Changes
1
Hide whitespace changes
Inline
Side-by-side
sa/profiles/Generic/get_lldp_neighbors.py
View file @
5e740cae
...
...
@@ -55,7 +55,11 @@ class Script(BaseScript):
elif
port_subtype
==
LLDP_PORT_SUBTYPE_MAC
:
# Iface MAC address
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_name
=
names
[
int
(
port_id
)]
else
:
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment