Skip to content

Commit

Permalink
Merge pull request #1490 from thomasbridge74/develop
Browse files Browse the repository at this point in the history
Fixing the issue with the updated json output in newer versions of NXOS.
  • Loading branch information
mirceaulinic authored Oct 14, 2021
2 parents c320023 + f3f8788 commit 48a73ef
Show file tree
Hide file tree
Showing 5 changed files with 1,698 additions and 1 deletion.
6 changes: 5 additions & 1 deletion napalm/nxos_ssh/nxos_ssh.py
Original file line number Diff line number Diff line change
Expand Up @@ -1534,7 +1534,11 @@ def get_vlans(self):
for vlan in vlan_table_raw:
if "vlanshowplist-ifidx" not in vlan.keys():
vlan["vlanshowplist-ifidx"] = []
vlans[vlan["vlanshowbr-vlanid"]] = {
if "vlanshowbr-vlanid-utf" in vlan.keys():
vlan_number = vlan["vlanshowbr-vlanid-utf"]
else:
vlan_number = vlan["vlanshowbr-vlanid"]
vlans[vlan_number] = {
"name": vlan["vlanshowbr-vlanname"],
"interfaces": self._parse_vlan_ports(vlan["vlanshowplist-ifidx"]),
}
Expand Down
Loading

0 comments on commit 48a73ef

Please sign in to comment.