Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
noc
noc
Commits
804916c3
Commit
804916c3
authored
Jun 04, 2021
by
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
Changes
1
Hide whitespace changes
Inline
Side-by-side
sa/profiles/Generic/get_lldp_neighbors.py
View file @
804916c3
...
...
@@ -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