question-mark
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 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:closed
  • Created 4 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
tahigashcommented, Jul 13, 2019

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

1reaction
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.

Thanks

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 10.21.12.0 255.255.255.0 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 Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found