-
Notifications
You must be signed in to change notification settings - Fork 32
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
Error for "n*Nd" route types for IOSXE when using learn routing. #190
Comments
Hi Can you please share the os, platform and device output for the above. It would be helpful in debugging |
Of course, I should have thought about that :) Attached the relevant files Platform: C8300-1N1S-6T (venv) ➜ egmont git:(main) ✗ pyats learn routing --testbed-file test_tb.yaml
Enter default password for device DEBEREVOR01:
Learning '['routing']' on devices '['DEBEREVOR01']'
100%|██████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 1/1 [00:02<00:00, 2.56s/it]
+==============================================================================+
| Genie Learn Summary for device DEBEREVOR01 |
+==============================================================================+
| Connected to DEBEREVOR01 |
| - Log: ./connection_DEBEREVOR01.txt |
|------------------------------------------------------------------------------|
| Could not learn feature 'routing' |
| - Exception: ./routing_iosxe_DEBEREVOR01_exception.txt |
| - Ops structure: ./routing_iosxe_DEBEREVOR01_ops.txt |
| - Device Console: ./routing_iosxe_DEBEREVOR01_console.txt |
|==============================================================================| connection_DEBEREVOR01.txt |
Hi Yes that fixes the problem. Can you please contribute to the genieparser community. Below is the link to guide you through parser contribution, |
Hi @Taarini I've created and related the pull request :) Hoping I've filled everything out correctly - My first ever time contributing, so if there are any errors or things I could have done better/smarter, please let me know :) Thanks for the help |
Yes all good approved the PR |
Hi :)
First of all - Fantastic tool! :)
I have tested using pyATS to learn routing from IOSXE routers in SD-WAN mode, and I get an error for routes with the type "n*Nd".
n*Nd is a NAT default route:
n - NAT
Nd - NAT DIA
Here is the traceback
(venv) ➜ pyats git:(main) ✗ more pre_change/routing_iosxe_DEBEREVOR01_exception.txt
I have managed to fix the issue locally by adding the following code:
229: # added to support "n*Nd" route types, which are used in Cisco SD-WAN for NAT DIA routes
230: source_protocol_dict['nat_dia'] = ['n', 'Nd']
The text was updated successfully, but these errors were encountered: