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
ab821de6
Commit
ab821de6
authored
May 14, 2020
by
Andrey Vertiprahov
Browse files
SKS.SKS.get_interfaces. Fix tagged vlan none on command.
parent
7c92e7f9
Pipeline
#23020
passed with stages
in 13 minutes and 54 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
sa/profiles/SKS/SKS/get_interfaces.py
View file @
ab821de6
...
...
@@ -222,7 +222,12 @@ class Script(BaseScript):
sub
[
"untagged_vlan"
]
=
int
(
i
[
4
])
elif
i
[
1
]
==
"Trunk"
:
sub
[
"untagged_vlan"
]
=
int
(
i
[
2
])
sub
[
"tagged_vlans"
]
=
self
.
expand_rangelist
(
i
[
3
])
if
i
[
3
]
!=
"none"
:
try
:
sub
[
"tagged_vlans"
]
=
self
.
expand_rangelist
(
i
[
3
])
except
ValueError
:
self
.
logger
.
error
(
"Bad tagged vlans format on port: %s"
,
ifname
)
sub
[
"tagged_vlans"
]
=
[]
else
:
# Need more examples
raise
self
.
NotSupportedError
()
...
...
Andrey Vertiprahov
@aversant
mentioned in commit
b52f475c
·
May 14, 2020
mentioned in commit
b52f475c
mentioned in commit b52f475c0b2b887681d4818dcb81965017637d5b
Toggle commit list
Andrey Vertiprahov
@aversant
mentioned in merge request
!3604 (merged)
·
May 14, 2020
mentioned in merge request
!3604 (merged)
mentioned in merge request !3604
Toggle commit list
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