Route Distinguisher Parse failure
See original GitHub issueHello,
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:
- Created 4 years ago
- Comments:5 (3 by maintainers)
Top 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 >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
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:
Please go ahead with pull request creation 😃
Hi @dorko20 Thanks for the check and reporting the issue again. Closing the issue.