cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1396
Views
0
Helpful
2
Replies

pyATS/genie parser bug?

ndckid
Level 1
Level 1

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

 

2 Replies 2

ndckid
Level 1
Level 1

Just to add...

 

Genie python module 19.7

IreneZ
Cisco Employee
Cisco Employee
Hi,

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!