Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
135
noc
Commits
9278a2d5
Commit
9278a2d5
authored
Mar 16, 2020
by
Andrey Vertiprahov
Browse files
Merge branch 'cherry-pick-
de1263ef
' into 'release-19.4'
release-19.4:Backport!3298 See merge request
noc/noc!3299
parents
c404578e
d74df73d
Changes
1
Hide whitespace changes
Inline
Side-by-side
sa/profiles/Qtech/QSW8200/get_interfaces.py
View file @
9278a2d5
...
...
@@ -2,7 +2,7 @@
# ---------------------------------------------------------------------
# Qtech.QSW8200.get_interfaces
# ---------------------------------------------------------------------
# Copyright (C) 2007-20
19
The NOC Project
# Copyright (C) 2007-20
20
The NOC Project
# See LICENSE for details
# ---------------------------------------------------------------------
...
...
@@ -82,6 +82,8 @@ class Script(BaseScript):
iface
[
"type"
]
=
"loopback"
elif
ifname
.
startswith
(
"NULL"
):
# NULL has iftype `unknown`
iface
[
"type"
]
=
"null"
elif
ifname
.
startswith
(
"port-channel"
):
# port-channel no has iftype
iface
[
"type"
]
=
"aggregated"
else
:
iface
[
"type"
]
=
self
.
profile
.
get_interface_type
(
ifname
)
iface
[
"mac"
]
=
match
.
group
(
"mac"
)
...
...
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