Open fiblund opened 1 year ago
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 OS: Cisco IOS XE Software, Version 17.06.03a Cisco IOS Software [Bengaluru], c8000be Software (X86_64_LINUX_IOSD-UNIVERSALK9-M), Version 17.6.3a, RELEASE SOFTWARE (fc1)
(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 routing_iosxe_DEBEREVOR01_console.txt routing_iosxe_DEBEREVOR01_exception.txt routing_iosxe_DEBEREVOR01_ops.txt
Hi
Yes that fixes the problem.
Can you please contribute to the genieparser community. All you need to do is create a PR in genieparser community and add the above changes along with the expected output and parsed output as unit test to justify your changes.
Below is the link to guide you through parser contribution, https://pubhub.devnetcloud.com/media/pyats-development-guide/docs/writeparser/writeparser.html
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']