Skip to content
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

fixed an issue where ShowIpRoute for iosxe would not parse nat_dia routes of type n and Nd, which would throw an error #715

Merged
merged 1 commit into from
Jan 13, 2023

Conversation

fiblund
Copy link
Contributor

@fiblund fiblund commented Nov 28, 2022

Description

Added the following line to iosxe/show_routing.py parser
source_protocol_dict['nat_dia'] = ['n', 'Nd']

Motivation and Context

Related to issue CiscoTestAutomation/pyats#190.
It fixes an issue where ShowIpRoute for iosxe would not parse nat dia routes of the type n and Nd

Impact (If any)

No negative impact - Tests passed succesfully.

Screenshots:

image

Full output from test
➜ tests git:(master) ✗ python3 folder_parsing_job.py -o iosxe -c ShowIpRoute
2022-11-28T14:54:50: %AETEST-INFO: +------------------------------------------------------------------------------+
2022-11-28T14:54:50: %AETEST-INFO: | Starting testcase SuperFileBasedTesting |
2022-11-28T14:54:50: %AETEST-INFO: +------------------------------------------------------------------------------+
2022-11-28T14:54:50: %AETEST-INFO: +------------------------------------------------------------------------------+
2022-11-28T14:54:50: %AETEST-INFO: | Starting section setup |
2022-11-28T14:54:50: %AETEST-INFO: +------------------------------------------------------------------------------+
2022-11-28T14:54:50: %AETEST-INFO: The result of section setup is => PASSED
2022-11-28T14:54:50: %AETEST-INFO: The result of testcase SuperFileBasedTesting is => PASSED
2022-11-28T14:54:50: %AETEST-INFO: +------------------------------------------------------------------------------+
2022-11-28T14:54:50: %AETEST-INFO: | Starting testcase iosxe |
2022-11-28T14:54:50: %AETEST-INFO: +------------------------------------------------------------------------------+
2022-11-28T14:54:50: %AETEST-INFO: +------------------------------------------------------------------------------+
2022-11-28T14:54:50: %AETEST-INFO: | Starting section setup |
2022-11-28T14:54:50: %AETEST-INFO: +------------------------------------------------------------------------------+
2022-11-28T14:54:50: %AETEST-INFO: The result of section setup is => PASSED
2022-11-28T14:54:50: %AETEST-INFO: +------------------------------------------------------------------------------+
2022-11-28T14:54:50: %AETEST-INFO: | Starting section ShowIpRoute |
2022-11-28T14:54:50: %AETEST-INFO: +------------------------------------------------------------------------------+
2022-11-28T14:54:50: %AETEST-INFO: +..............................................................................+
2022-11-28T14:54:50: %AETEST-INFO: : Starting STEP 1: iosxe -> ShowIpRoute :
2022-11-28T14:54:50: %AETEST-INFO: +..............................................................................+
2022-11-28T14:54:50: %AETEST-INFO: +..............................................................................+
2022-11-28T14:54:50: %AETEST-INFO: : Starting STEP 1.1: Test Golden -> iosxe -> ShowIpRoute :
2022-11-28T14:54:50: %AETEST-INFO: +..............................................................................+
2022-11-28T14:54:50: %AETEST-INFO: +..............................................................................+
2022-11-28T14:54:50: %AETEST-INFO: : Starting STEP 1.1.1: Gold -> iosxe -> ShowIpRoute -> golden_output1 :
2022-11-28T14:54:50: %AETEST-INFO: +..............................................................................+
2022-11-28T14:54:50: %AETEST-INFO: The result of STEP 1.1.1: Gold -> iosxe -> ShowIpRoute -> golden_output1 is => PASSED
2022-11-28T14:54:50: %AETEST-INFO: +..............................................................................+
2022-11-28T14:54:50: %AETEST-INFO: : Starting STEP 1.1.2: Gold -> iosxe -> ShowIpRoute -> golden_output2 :
2022-11-28T14:54:50: %AETEST-INFO: +..............................................................................+
2022-11-28T14:54:50: %AETEST-INFO: The result of STEP 1.1.2: Gold -> iosxe -> ShowIpRoute -> golden_output2 is => PASSED
2022-11-28T14:54:50: %AETEST-INFO: +..............................................................................+
2022-11-28T14:54:50: %AETEST-INFO: : Starting STEP 1.1.3: Gold -> iosxe -> ShowIpRoute -> golden_output3 :
2022-11-28T14:54:50: %AETEST-INFO: +..............................................................................+
2022-11-28T14:54:50: %AETEST-INFO: The result of STEP 1.1.3: Gold -> iosxe -> ShowIpRoute -> golden_output3 is => PASSED
2022-11-28T14:54:50: %AETEST-INFO: +..............................................................................+
2022-11-28T14:54:50: %AETEST-INFO: : Starting STEP 1.1.4: Gold -> iosxe -> ShowIpRoute -> golden_output4 :
2022-11-28T14:54:50: %AETEST-INFO: +..............................................................................+
2022-11-28T14:54:50: %AETEST-INFO: The result of STEP 1.1.4: Gold -> iosxe -> ShowIpRoute -> golden_output4 is => PASSED
2022-11-28T14:54:50: %AETEST-INFO: +..............................................................................+
2022-11-28T14:54:50: %AETEST-INFO: : Starting STEP 1.1.5: Gold -> iosxe -> ShowIpRoute -> golden_output5 :
2022-11-28T14:54:50: %AETEST-INFO: +..............................................................................+
2022-11-28T14:54:50: %AETEST-INFO: The result of STEP 1.1.5: Gold -> iosxe -> ShowIpRoute -> golden_output5 is => PASSED
2022-11-28T14:54:50: %AETEST-INFO: +..............................................................................+
2022-11-28T14:54:50: %AETEST-INFO: : Starting STEP 1.1.6: Gold -> iosxe -> ShowIpRoute -> golden_output6 :
2022-11-28T14:54:50: %AETEST-INFO: +..............................................................................+
2022-11-28T14:54:50: %AETEST-INFO: The result of STEP 1.1.6: Gold -> iosxe -> ShowIpRoute -> golden_output6 is => PASSED
2022-11-28T14:54:50: %AETEST-INFO: +..............................................................................+
2022-11-28T14:54:50: %AETEST-INFO: : Starting STEP 1.1.7: Gold -> iosxe -> ShowIpRoute -> golden_output7 :
2022-11-28T14:54:50: %AETEST-INFO: +..............................................................................+
2022-11-28T14:54:50: %AETEST-INFO: The result of STEP 1.1.7: Gold -> iosxe -> ShowIpRoute -> golden_output7 is => PASSED
2022-11-28T14:54:50: %AETEST-INFO: +..............................................................................+
2022-11-28T14:54:50: %AETEST-INFO: : Starting STEP 1.1.8: Gold -> iosxe -> ShowIpRoute -> golden_output8 :
2022-11-28T14:54:50: %AETEST-INFO: +..............................................................................+
2022-11-28T14:54:50: %AETEST-INFO: The result of STEP 1.1.8: Gold -> iosxe -> ShowIpRoute -> golden_output8 is => PASSED
2022-11-28T14:54:50: %AETEST-INFO: +..............................................................................+
2022-11-28T14:54:50: %AETEST-INFO: : Starting STEP 1.1.9: Gold -> iosxe -> ShowIpRoute -> golden_output11 :
2022-11-28T14:54:50: %AETEST-INFO: +..............................................................................+
2022-11-28T14:54:50: %AETEST-INFO: The result of STEP 1.1.9: Gold -> iosxe -> ShowIpRoute -> golden_output11 is => PASSED
2022-11-28T14:54:50: %AETEST-INFO: The result of STEP 1.1: Test Golden -> iosxe -> ShowIpRoute is => PASSED
2022-11-28T14:54:50: %AETEST-INFO: +..............................................................................+
2022-11-28T14:54:50: %AETEST-INFO: : Starting STEP 1.2: Test Empty -> iosxe -> ShowIpRoute :
2022-11-28T14:54:50: %AETEST-INFO: +..............................................................................+
2022-11-28T14:54:50: %AETEST-INFO: +..............................................................................+
2022-11-28T14:54:50: %AETEST-INFO: : Starting STEP 1.2.1: Empty -> iosxe -> ShowIpRoute -> empty_output :
2022-11-28T14:54:50: %AETEST-INFO: +..............................................................................+
2022-11-28T14:54:50: %AETEST-INFO: The result of STEP 1.2.1: Empty -> iosxe -> ShowIpRoute -> empty_output is => PASSED
2022-11-28T14:54:50: %AETEST-INFO: The result of STEP 1.2: Test Empty -> iosxe -> ShowIpRoute is => PASSED
2022-11-28T14:54:50: %AETEST-INFO: The result of STEP 1: iosxe -> ShowIpRoute is => PASSED
2022-11-28T14:54:50: %AETEST-INFO: +..........................................................+
2022-11-28T14:54:50: %AETEST-INFO: : STEPS Report :
2022-11-28T14:54:50: %AETEST-INFO: +..........................................................+
2022-11-28T14:54:50: %AETEST-INFO: STEP 1 - iosxe -> ShowIpRoute Passed
2022-11-28T14:54:50: %AETEST-INFO: STEP 1.1 - Test Golden -> iosxe -> ShowIpRoute Passed
2022-11-28T14:54:50: %AETEST-INFO: STEP 1.1.1 - Gold -> iosxe -> ShowIpRoute -> golden_output1Passed
2022-11-28T14:54:50: %AETEST-INFO: STEP 1.1.2 - Gold -> iosxe -> ShowIpRoute -> golden_output2Passed
2022-11-28T14:54:50: %AETEST-INFO: STEP 1.1.3 - Gold -> iosxe -> ShowIpRoute -> golden_output3Passed
2022-11-28T14:54:50: %AETEST-INFO: STEP 1.1.4 - Gold -> iosxe -> ShowIpRoute -> golden_output4Passed
2022-11-28T14:54:50: %AETEST-INFO: STEP 1.1.5 - Gold -> iosxe -> ShowIpRoute -> golden_output5Passed
2022-11-28T14:54:50: %AETEST-INFO: STEP 1.1.6 - Gold -> iosxe -> ShowIpRoute -> golden_output6Passed
2022-11-28T14:54:50: %AETEST-INFO: STEP 1.1.7 - Gold -> iosxe -> ShowIpRoute -> golden_output7Passed
2022-11-28T14:54:50: %AETEST-INFO: STEP 1.1.8 - Gold -> iosxe -> ShowIpRoute -> golden_output8Passed
2022-11-28T14:54:50: %AETEST-INFO: STEP 1.1.9 - Gold -> iosxe -> ShowIpRoute -> golden_output11Passed
2022-11-28T14:54:50: %AETEST-INFO: STEP 1.2 - Test Empty -> iosxe -> ShowIpRoute Passed
2022-11-28T14:54:50: %AETEST-INFO: STEP 1.2.1 - Empty -> iosxe -> ShowIpRoute -> empty_outputPassed
2022-11-28T14:54:50: %AETEST-INFO: ............................................................
2022-11-28T14:54:50: %AETEST-INFO: The result of section ShowIpRoute is => PASSED
2022-11-28T14:54:50: %AETEST-INFO: +------------------------------------------------------------------------------+
2022-11-28T14:54:50: %AETEST-INFO: | Starting section cleanup |
2022-11-28T14:54:50: %AETEST-INFO: +------------------------------------------------------------------------------+
2022-11-28T14:54:50: %AETEST-INFO: The result of section cleanup is => PASSED
2022-11-28T14:54:50: %AETEST-INFO: The result of testcase iosxe is => PASSED
2022-11-28T14:54:50: %GENIE-INFO: +------------------------------------------------------------------------------+
2022-11-28T14:54:50: %GENIE-INFO: | Unittest results |
2022-11-28T14:54:50: %GENIE-INFO: +------------------------------------------------------------------------------+
2022-11-28T14:54:50: %GENIE-INFO: SECTIONS/TESTCASES RESULT
2022-11-28T14:54:50: %GENIE-INFO: --------------------------------------------------------------------------------
2022-11-28T14:54:50: %GENIE-INFO: .
2022-11-28T14:54:50: %GENIE-INFO: |-- SuperFileBasedTesting PASSED
2022-11-28T14:54:50: %GENIE-INFO: | -- setup PASSED 2022-11-28T14:54:50: %GENIE-INFO: -- iosxe PASSED
2022-11-28T14:54:50: %GENIE-INFO: |-- setup PASSED
2022-11-28T14:54:50: %GENIE-INFO: |-- ShowIpRoute PASSED
2022-11-28T14:54:50: %GENIE-INFO: | |-- Step 1: iosxe -> ShowIpRoute PASSED
2022-11-28T14:54:50: %GENIE-INFO: | |-- Step 1.1: Test Golden -> iosxe -> ShowIpRoute PASSED
2022-11-28T14:54:50: %GENIE-INFO: | |-- Step 1.1.1: Gold -> iosxe -> ShowIpRoute -> golden_output1 PASSED
2022-11-28T14:54:50: %GENIE-INFO: | |-- Step 1.1.2: Gold -> iosxe -> ShowIpRoute -> golden_output2 PASSED
2022-11-28T14:54:50: %GENIE-INFO: | |-- Step 1.1.3: Gold -> iosxe -> ShowIpRoute -> golden_output3 PASSED
2022-11-28T14:54:50: %GENIE-INFO: | |-- Step 1.1.4: Gold -> iosxe -> ShowIpRoute -> golden_output4 PASSED
2022-11-28T14:54:50: %GENIE-INFO: | |-- Step 1.1.5: Gold -> iosxe -> ShowIpRoute -> golden_output5 PASSED
2022-11-28T14:54:50: %GENIE-INFO: | |-- Step 1.1.6: Gold -> iosxe -> ShowIpRoute -> golden_output6 PASSED
2022-11-28T14:54:50: %GENIE-INFO: | |-- Step 1.1.7: Gold -> iosxe -> ShowIpRoute -> golden_output7 PASSED
2022-11-28T14:54:50: %GENIE-INFO: | |-- Step 1.1.8: Gold -> iosxe -> ShowIpRoute -> golden_output8 PASSED
2022-11-28T14:54:50: %GENIE-INFO: | |-- Step 1.1.9: Gold -> iosxe -> ShowIpRoute -> golden_outp... PASSED
2022-11-28T14:54:50: %GENIE-INFO: | |-- Step 1.2: Test Empty -> iosxe -> ShowIpRoute PASSED
2022-11-28T14:54:50: %GENIE-INFO: | -- Step 1.2.1: Empty -> iosxe -> ShowIpRoute -> empty_output PASSED 2022-11-28T14:54:50: %GENIE-INFO: -- cleanup PASSED
2022-11-28T14:54:50: %GENIE-INFO: +------------------------------------------------------------------------------+
2022-11-28T14:54:50: %GENIE-INFO: | Summary |
2022-11-28T14:54:50: %GENIE-INFO: +------------------------------------------------------------------------------+
2022-11-28T14:54:50: %GENIE-INFO: Number of ABORTED 0
2022-11-28T14:54:50: %GENIE-INFO: Number of BLOCKED 0
2022-11-28T14:54:50: %GENIE-INFO: Number of ERRORED 0
2022-11-28T14:54:50: %GENIE-INFO: Number of FAILED 0
2022-11-28T14:54:50: %GENIE-INFO: Number of PASSED 2
2022-11-28T14:54:50: %GENIE-INFO: Number of PASSX 0
2022-11-28T14:54:50: %GENIE-INFO: Number of SKIPPED 0
2022-11-28T14:54:50: %GENIE-INFO: Total Number 2
2022-11-28T14:54:50: %GENIE-INFO: Success Rate 100.0%
2022-11-28T14:54:50: %GENIE-INFO: --------------------------------------------------------------------------------
2022-11-28T14:54:50: %GENIE-INFO: Total Passing Unittests 10
2022-11-28T14:54:50: %GENIE-INFO: Total Failed Unittests 0
2022-11-28T14:54:50: %GENIE-INFO: Total Errored Unittests 0
2022-11-28T14:54:50: %GENIE-INFO: Total Unittests 10
2022-11-28T14:54:50: %GENIE-INFO: --------------------------------------------------------------------------------

Checklist:

  • I have updated the changelog.
  • I have updated the documentation (If applicable).
  • I have added tests to cover my changes (If applicable).
  • All new and existing tests passed.
  • [?] All new code passed compilation.

…utes of type n and Nd, which would throw an error
@fiblund fiblund requested a review from a team as a code owner November 28, 2022 14:09
@Taarini
Copy link
Contributor

Taarini commented Jan 6, 2023

Hi @fiblund,

Can you please merge the master with your branch, then it is good to merge

@fiblund
Copy link
Contributor Author

fiblund commented Jan 13, 2023 via email

@GerriorL GerriorL merged commit 6d5345b into CiscoTestAutomation:master Jan 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants