Commit ab821de6 authored by Andrey Vertiprahov's avatar 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
......@@ -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()
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment