Commit 378a1872 authored by MaksimSmile13's avatar MaksimSmile13
Browse files

Fix get_switchport for Qtech.QSW

parent 7cf2b872
Pipeline #2859 passed with stage
in 17 seconds
......@@ -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
......
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