Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

IOS: get_vlans does not return all interfaces if they wrap around in the config #1569

Closed
1 of 2 tasks
DavidVentura opened this issue Feb 18, 2022 · 0 comments · Fixed by #1570
Closed
1 of 2 tasks

Comments

@DavidVentura
Copy link
Contributor

Description of Issue/Question

Running get_vlans on devices with many interfaces on the same vlan returns a subset (first line of config) of the configured interfaces.

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

(Place an x between the square brackets where applicable)

  • Yes
  • No

Setup

napalm version

(Paste verbatim output from pip freeze | grep napalm between quotes below)

napalm==3.3.1

Network operating system version

(Paste verbatim output from show version - or equivalent - between quotes below)

Irrelevant, but:

Cisco IOS Software, s72033_rp Software (s72033_rp-ADVIPSERVICESK9_WAN-M), Version 12.2(33)SXH4, RELEASE SOFTWARE (fc1)

Steps to Reproduce the Issue

Run get_vlans where the output is too large, get only first set

VLAN Name                             Status    Ports
---- -------------------------------- --------- -------------------------------
1    default                          active    Te1/4, Gi2/7, Gi2/17, Gi2/28, Gi2/33, Gi2/40, Gi2/48, Gi3/24, Gi3/38, Gi3/40, Gi4/5, Gi4/8, Gi4/9, Gi4/10, Gi4/11, Gi4/12, Gi4/18, Gi4/20, Gi4/22, Gi4/23, Gi4/24, Gi5/1, Gi6/11, Gi6/26, Gi6/45
600  Vl600      active    Te1/2, Te1/3, Gi3/10, Gi4/35, Gi6/40
601  Vl601         active    Te1/2, Te1/3, Gi2/1, Gi2/2, Gi2/3, Gi2/4, Gi2/5, Gi2/6, Gi2/8, Gi2/9, Gi2/10, Gi2/11, Gi2/12, Gi2/13, Gi2/14, Gi2/15, Gi2/16, Gi2/19, Gi2/20, Gi2/21, Gi2/22, Gi2/23, Gi2/24, Gi2/26, Gi2/27, Gi2/29, Gi2/30, Gi2/31, Gi2/32, Gi2/34, Gi2/35, Gi2/36, Gi2/37, Gi2/39, Gi2/41, Gi2/42, Gi2/43, Gi2/44, Gi2/45, Gi2/46, Gi2/47, Gi3/2, Gi3/4, Gi3/5, Gi3/7, Gi3/8, Gi3/9, Gi3/11, Gi3/12, Gi3/13, Gi3/14, Gi3/15, Gi3/16, Gi3/17, Gi3/18, Gi3/19, Gi3/20, Gi3/21, Gi3/22, Gi3/23
                                                Gi3/29, Gi3/30, Gi3/32, Gi3/33, Gi3/34, Gi3/35, Gi3/37, Gi3/39, Gi3/41, Gi3/42, Gi3/43, Gi3/46, Gi3/47, Gi3/48, Gi4/1, Gi4/2, Gi4/3, Gi4/4, Gi4/6, Gi4/7, Gi4/17, Gi4/19, Gi4/21, Gi4/26, Gi4/27, Gi4/28, Gi4/30, Gi4/31, Gi4/32, Gi4/33, Gi4/34, Gi4/38, Gi4/39, Gi4/40, Gi4/41, Gi4/42, Gi4/43, Gi4/44, Gi6/2, Gi6/3, Gi6/4, Gi6/5, Gi6/7, Gi6/10, Gi6/13, Gi6/14, Gi6/18, Gi6/19, Gi6/22, Gi6/24, Gi6/29, Gi6/30, Gi6/31, Gi6/37, Gi6/38, Gi6/39, Gi6/41, Gi6/42, Gi6/43
603  Vl603             active    Te1/2, Te1/3

Here Vl601 returns up to Gi3/23

DavidVentura added a commit to DavidVentura/napalm that referenced this issue Feb 18, 2022
…rated by newlines

Signed-off-by: DavidVentura <davidventura27@gmail.com>
DavidVentura added a commit to DavidVentura/napalm that referenced this issue Feb 18, 2022
…rated by newlines

Signed-off-by: DavidVentura <davidventura27@gmail.com>
DavidVentura added a commit to DavidVentura/napalm that referenced this issue Feb 18, 2022
DavidVentura added a commit to DavidVentura/napalm that referenced this issue Mar 17, 2022
@mirceaulinic mirceaulinic added this to the 4.0.0 milestone Mar 25, 2022
mirceaulinic added a commit to DavidVentura/napalm that referenced this issue Mar 25, 2022
mirceaulinic added a commit that referenced this issue Mar 25, 2022
Fix #1569: Parse all interfaces from vlans when separated by newlines
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants