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] Crash on get_network_instances for devices that do not support show vrf detail #1547

Closed
1 of 2 tasks
DavidVentura opened this issue Jan 25, 2022 · 0 comments
Closed
1 of 2 tasks

Comments

@DavidVentura
Copy link
Contributor

Description of Issue/Question

Calling get_network_instances on a Cisco C2960XR crashes. I expect it not to crash.

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

napalm==3.3.1

Network operating system version

cisco WS-C2960XR-24TD-I (APM86XXX) processor (revision U0) with 524288K bytes of memory.

Switch Ports Model                     SW Version            SW Image                 
------ ----- -----                     ----------            ----------               
*    1 28    WS-C2960XR-24TD-I         15.2(2)E6             C2960X-UNIVERSALK9-M     

Steps to Reproduce the Issue

Call get_network_instances()

Error Traceback

Traceback (most recent call last):
  File "device.py", line 306, in get_truth_data
    vrfs = self.device.get_network_instances()
  File "venv/lib/python3.8/site-packages/napalm/ios/ios.py", line 3439, in get_network_instances
    vrf_name, RD = re.match(r"^VRF (\S+).*RD (.*);", first_part).groups()
AttributeError: 'NoneType' object has no attribute 'groups'

This is because sh_vrf_detail contains Invalid input detected

DavidVentura added a commit to DavidVentura/napalm that referenced this issue Jan 25, 2022
mirceaulinic pushed a commit to dkaplan1/napalm that referenced this issue Feb 12, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant