Commit 6ccfdfe9 authored by Andrey Vertiprahov's avatar Andrey Vertiprahov
Browse files

Fix untagged.

parent ab821de6
Pipeline #23022 passed with stages
in 13 minutes and 23 seconds
......@@ -218,7 +218,7 @@ class Script(BaseScript):
c = self.cli("show vlan interface %s" % ifname)
t = parse_table(c, allow_wrap=True, n_row_delim=",")
for i in t:
if i[1] == "Access":
if i[1] == "Access" and i[4]:
sub["untagged_vlan"] = int(i[4])
elif i[1] == "Trunk":
sub["untagged_vlan"] = int(i[2])
......
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