Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Parse Failure on the parser for show ip route

See original GitHub issue

When 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
Switch#sh ip route
S* [1/0] via is variably subnetted, 7 subnets, 2 masks
S [1/0] via

The static routing with outgoing interface seems to have no problem.

Switch(config)# ip route Vlan835
Switch#sh ip route
S [1/0] via, Vlan835
                                                            '': {'active': True,
                                                                              'metric': 0,
                                                                              'next_hop': {'next_hop_list': {1: {'index': 1,
                                                                                                                 'next_hop': '',
                                                                                                                 'outgoing_interface': 'Vlan835'}}},
                                                                              'route': '',
                                                                              'route_preference': 1,
                                                                              'source_protocol': 'static',
                                                                              'source_protocol_codes': 'S'}}}}}}}

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

tahigashcommented, Jul 13, 2019

Hi @Tachashi Thank you for your check. We’re glad to hear it worked!

jeaubincommented, Jul 11, 2019

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.


Read more comments on GitHub >

github_iconTop 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 reachability Reachability is Down ... output = dev.parse('show interfaces') import pprint pprint.pprint(output).
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Post

No results found

github_iconTop Related Hashnode Post

No results found