Skip to content

Commit

Permalink
Fix issue #2086 stripping whitespace (#2087)
Browse files Browse the repository at this point in the history
Co-authored-by: dre-lab <contact@genja.co.uk>
  • Loading branch information
Smertan and dre-lab committed May 16, 2024
1 parent 2f34cc8 commit e9d5966
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion napalm/ios/ios.py
Original file line number Diff line number Diff line change
Expand Up @@ -3796,7 +3796,7 @@ def _get_vlan_from_id(self):
output = self._send_command("show vlan id {}".format(vlan_id))
_vlans = self._get_vlan_all_ports(output)
if len(_vlans) == 0:
vlans[vlan_id] = {"name": vlan_name, "interfaces": []}
vlans[vlan_id] = {"name": vlan_name.strip(), "interfaces": []}
elif len(_vlans) == 1:
vlans.update(_vlans)
elif len(_vlans.keys()) > 1:
Expand Down

0 comments on commit e9d5966

Please sign in to comment.