pyATS/genie parser bug?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-31-2019 12:13 AM - edited 07-31-2019 12:52 AM
DISREGARD THIS: Looks like new version of parserlib actually fixed this.
Hi,
Not sure where to report this. The 'show ip route' parser for genie appears to have a small bug that does not allow it to parse the following output (found on many IOS devices)...
10.0.0.0/8 is variably subnetted, 4 subnets, 4 masks
C 10.1.1.32/27 is directly connected, GigabitEthernet0/1
L 10.1.1.33/32 is directly connected, GigabitEthernet0/1
S 10.47.64.0/21 [1/0] via 172.16.1.254
S 10.88.88.0/24 [1/0] via 172.16.1.22
172.16.0.0/16 is variably subnetted, 2 subnets, 2 masks
C 172.16.1.0/24 is directly connected, GigabitEthernet0/0
L 172.16.1.81/32 is directly connected, GigabitEthernet0/0
Specifically the two static routes above. This seems to track back to the parser in genie/lib/parser/iosxe/show_routing.py in line 300, adding a '?' after the first comma in the regex fixes the issue (making the comma
optional rather than mandatory).
Please let me know if there is a better place to report this.
Thanks.
Regards,
Kid
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-31-2019 12:20 AM
Just to add...
Genie python module 19.7
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-05-2019 11:07 AM
Here are two ways I know can reach out to them:
1. Create an issue in genieparser repo: https://github.com/CiscoTestAutomation/genieparser
2. Send an email to their support team: pyats-support-ext@cisco.com
I hope it helps!
