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.

Route Distinguisher Parse failure

See original GitHub issue

Hello,
I’ve found a wrong regexp expression under the VRF RD match in the Genie parser lib show_vrf.py for IOS-XR.
In case the RD has a format of ip_address:number (e.g.: 172.16.0.1:1009) , then there is no match.

My proposed solution is to add \. to the regexp:

Current regexp:
...
            # VRF VRF1; RD 200:1; VPN ID not set
            p1 = re.compile(r'^VRF +(?P<vrf>[\w\-]+); +'
                             'RD +(?P<rd>[\w\s\:\<\>]+); +'
                             'VPN +ID +(?P<vpn_id>[\w\s\:]+)$')
...


New regexp:
...
            # VRF VRF1; RD 200:1; VPN ID not set
            p1 = re.compile(r'^VRF +(?P<vrf>[\w\-]+); +'
                             'RD +(?P<rd>[\w\s\:\<\>\.]+); +'
                             'VPN +ID +(?P<vpn_id>[\w\s\:]+)$')
...

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
m1009dcommented, Aug 20, 2019

Ji @jeaubin ,
thank you for your reply,
I tried to create a new pull request, but seems like I don’t have permissions to do so.
To be honest I don’t have too much experience with Github yet so maybe I am missing something, but I tried the following which didn’t work:

git checkout -b pull-request-show-vrf 
git push origin pull-request-show-vrf
remote: Permission to CiscoTestAutomation/genieparser.git denied to dorko20.
fatal: unable to access 'https://github.com/CiscoTestAutomation/genieparser.git/': The requested URL returned error: 403

Please go ahead with pull request creation 😃

0reactions
tahigashcommented, Sep 3, 2019

Hi @dorko20 Thanks for the check and reporting the issue again. Closing the issue.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Route-Distinguisher (RD), Route-Target (RT), VPNv4 and how ...
Hi everyone, I´m a little confused about MPLS-VPNs and MP-iBGP. So I have a few questions: 1. Why do I need the RD....
Read more >
Understanding RTs and RDs - Das Blinken Lichten
The reality is that the routes need to be stored somewhere in order to be parsed by the command. Since the router is...
Read more >
question in L2VPN | Routing - Juniper Elevate Community
hi experts. Can some one please explain to me in L2VPN. 1- how the L2VPN auto provision for the sites is work in...
Read more >
The "verify config" gives errors Error Invalid route, cannot ...
When a "verify config" is issued on a config file, the following errors are observed either at sp_ctrl interface or in the log...
Read more >
route-distinguisher - Command Reference - Huawei Support
The undo route-distinguisher command deletes the RD configuration in a specified VPN instance address family. By default, no RD is configured for the...
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