Commit 3c57c7de authored by Andrey Vertiprahov's avatar Andrey Vertiprahov
Browse files

Merge branch 'fix-avs-cisco-ios-snmp' into 'master'

Cisco.IOS.get_interfaces. Fix empty upper vlans bank when use SNMP.

See merge request !5421

(cherry picked from commit 60ea225b)

0f901a04 Cisco.IOS.get_interfaces. Fix empty upper vlans bank when use SNMP.
parent df9d2c9b
Pipeline #32004 passed with stages
in 23 minutes and 38 seconds
......@@ -336,7 +336,7 @@ class Script(BaseScript):
if int(enc_type) != 4:
# not dot1Q
continue
vlans_bank = b"".join([vlans_base, vlans_2k, vlans_3k, vlans_4k])
vlans_bank = b"".join([vlans_base, vlans_2k or b"", vlans_3k or b"", vlans_4k or b""])
result[int(ifindex)]["tagged_vlans"] += list(
compress(
range(0, 4096),
......
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