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
378a1872
Commit
378a1872
authored
Dec 07, 2017
by
MaksimSmile13
Browse files
Fix get_switchport for Qtech.QSW
parent
7cf2b872
Pipeline
#2859
passed with stage
in 17 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
sa/profiles/Qtech/QSW/get_switchport.py
View file @
378a1872
...
...
@@ -220,6 +220,8 @@ class Script(BaseScript):
match
=
self
.
rx_vlan_t
.
match
(
iface_conf
[
i
])
if
match
:
vlans
=
match
.
group
(
"vlans"
)
if
vlans
==
"all"
:
vlans
=
"1-4096"
list_vlans
=
self
.
expand_rangelist
(
vlans
)
port_vlans
[
interface
][
"tagged"
]
=
list_vlans
...
...
@@ -227,6 +229,8 @@ class Script(BaseScript):
match
=
self
.
rx_vlan_at
.
match
(
iface_conf
[
i
])
if
match
:
vlans
=
match
.
group
(
"vlans"
)
if
vlans
==
"all"
:
vlans
=
"1-4096"
list_vlans
=
self
.
expand_rangelist
(
vlans
)
port_vlans
[
interface
][
"tagged"
]
=
list_vlans
...
...
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