Parse Failure on the parser for show ip route
See original GitHub issueWhen parsing show ip route
on Catalyst 9300 (IOS-XE, 16.6.5), static routing without outgoing interface like below is not displayed in the parsed dictionary data.
Switch(config)# ip route 10.30.0.0 255.255.255.0 10.2.2.2
Switch#sh ip route
<snip>
S* 0.0.0.0/0 [1/0] via 10.10.20.254
10.0.0.0/8 is variably subnetted, 7 subnets, 2 masks
<snip>
S 10.30.0.0/24 [1/0] via 10.2.2.2
The static routing with outgoing interface seems to have no problem.
Switch(config)# ip route 10.30.20.0 255.255.255.0 Vlan835 10.2.2.2
Switch#sh ip route
<snip>
S 10.30.20.0/24 [1/0] via 10.2.2.2, Vlan835
<snip>
'10.30.20.0/24': {'active': True,
'metric': 0,
'next_hop': {'next_hop_list': {1: {'index': 1,
'next_hop': '10.2.2.2',
'outgoing_interface': 'Vlan835'}}},
'route': '10.30.20.0/24',
'route_preference': 1,
'source_protocol': 'static',
'source_protocol_codes': 'S'}}}}}}}
Issue Analytics
- State:
- Created 4 years ago
- Comments:5 (3 by maintainers)
Top Results From Across the Web
ShowIPRoute::Parser - parse Cisco 'show ip route' command
Handle to our object. Description: Define some initial states and open the log file that is to be used when parsing routes. getroutes()....
Read more >Need to parse "show ip route" command output
Hi, I need to write a parser for "show ip route" from few routing tables that I have. I can not find on...
Read more >programmatic access to "ip route show" - linux - Server Fault
I know that I can just parse the output, but I am looking for something in more machine-readable format. linux · routing ·...
Read more >Troubleshooting - AskF5
If an error was found in the message parsing this should be detectable using the protocol's stats. The message router profile (siprouter) stats...
Read more >Write a parser — pyATS Development Guide documentation
Track 2 IP route 10.21.12.0 255.255.255.0 reachability Reachability is Down ... output = dev.parse('show interfaces') import pprint pprint.pprint(output).
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Hi @Tachashi Thank you for your check. We’re glad to hear it worked!
It has been fixed, and a beta package has been released
pip install genie.libs.parser --upgrade --pre
Give it a try and let us know.
Thanks