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
07-31-2019 12:20 AM
Just to add...
Genie python module 19.7
12-05-2019 11:07 AM
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide