Commit 60ea225b 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 noc/noc!5421
parents a303b0f2 0f901a04
......@@ -336,7 +336,7 @@ class Script(BaseScript):
if int(enc_type) != 4:
# not dot1Q
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(
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