-
Notifications
You must be signed in to change notification settings - Fork 386
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
IOS-XR Issue with RPL route-policy parser #739
Comments
Hi naveci, |
Hi naveci, |
Hi @kameswararaot, I'm not comfortable pasting RPLs into this comment section. What I see happening is that all RPLs are returned through PyATS. I then perform a parse of "show rpl route-policy" and this is where it then breaks with the error above. The returned "get_parser" contains this: (<class 'genie.libs.parser.iosxr.show_rpl.ShowRplRoutePolicy'>, {}), basically meaning that it's empty. In my code, it jumps to the exception statement. The reason is line 529 in your parser code:
This value appears to be empty at the time of assignment. The assignment of P19 is based on some conditionals. When checking the regex, it might be this part of the RPL config that it matches on:
I cannot find another matching part of the config |
Hi naveci, At the same time please check the pyATS version. It should be 23.3, If not kindly update it to the latest one. |
Hi naveci, At the same time please check the pyATS version. It should be 23.3, If not kindly update it to the latest one. Please check these versions |
Hi naveci, At the same time please check the pyATS version. It should be 23.3, If not kindly update it to the latest one. Please check these versions |
1 similar comment
Hi naveci, At the same time please check the pyATS version. It should be 23.3, If not kindly update it to the latest one. Please check these versions |
Hi @kameswararaot, As mentioned before, the breaking configuration is:
I've updated to the latest PyATs version (23.3), but this hasn't fixed anything. I don't want to share any company data on the public internet, so it took me some time to set up a test device to provide this output. I've posted the steps below where first it's a good output, then with the config above applied and then the broken output.
NOW WITH BROKEN CONFIG
|
Hi naveci, Since genieparser is community driven, I request you to contribute to the library to help fix the issue for the proposed output for IOSXR. Please let me know if you need any help during the process of PR. The reason for the above error is due to the parser code ther is no pattern for 'evpn-route-type'. Due to that reason it's showing Attribute error. |
1 similar comment
Hi naveci, Since genieparser is community driven, I request you to contribute to the library to help fix the issue for the proposed output for IOSXR. Please let me know if you need any help during the process of PR. The reason for the above error is due to the parser code ther is no pattern for 'evpn-route-type'. Due to that reason it's showing Attribute error. |
Hi naveci, |
Hi,
I've just found an issue with parsing with the RPL route-policy parser. The prefix-set works fine, but this one throws an error.
Python version 3.9.6 with pyats 23.2
The text was updated successfully, but these errors were encountered: