napalm-automation / napalm

Network Automation and Programmability Abstraction Layer with Multivendor support
Apache License 2.0
2.24k stars 552 forks source link

get_vlans for ios not removing whitespace with no interfaces #2086

Closed Smertan closed 4 months ago

Smertan commented 4 months ago

Description of Issue/Question

When the get_vlans command was run via Nornir I noticed a few VLAN names did not strip the whitespace. Upon further investigation, I realised the VLAN names that suffered the issues had no interfaces assigned to them.

Did you follow the steps from https://github.com/napalm-automation/napalm#faq

(Place an x between the square brackets where applicable)

Setup

napalm version

napalm 5.0.0

Network operating system version

Cisco IOS XE software, Version 17.09.03

Steps to Reproduce the Issue

ktbyers commented 4 months ago

Fixed in this PR:

https://github.com/napalm-automation/napalm/pull/2087