-
Notifications
You must be signed in to change notification settings - Fork 388
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #815 from aj-cruz/aj_fix_show_cts_iosxe
Port-channel Fixes for iosxe ShowCtsInterface parser (iosxe/show_cts)
- Loading branch information
Showing
7 changed files
with
110 additions
and
33 deletions.
There are no files selected for viewing
14 changes: 14 additions & 0 deletions
14
changelog/undistributed/changelog_fix_show_cts_iosxe_20200807212611.rst
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
-------------------------------------------------------------------------------- | ||
Fix | ||
-------------------------------------------------------------------------------- | ||
* IOSXE | ||
* Modified ShowCtsInterfaceSchema: | ||
* Changed global_dot1x_feature from schema to Optional (not present on port-channel interfaces) | ||
* Changed cts mode value from schema to Optional to (not present when cts status is disabled) | ||
* Modified ShowCtsInterface: | ||
* Updated regex pattern p2 to also match Port-channel interfaces | ||
* Updated regex pattern p3 to also match CTS disabled status | ||
* Added conditional to cts_dict so mode key is not generated if cts is disabled | ||
* Modified golden_output2_expected test data | ||
* Added expected output for Port-channel interfaces | ||
* Added golden_output4 test data & expected results |
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 10 additions & 0 deletions
10
src/genie/libs/parser/iosxe/tests/ShowCtsInterface/cli/equal/golden_output4_expected.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
expected_output={ | ||
'interfaces': { | ||
'Port-channel2': { | ||
'cts': { | ||
'cts_status': 'disabled' | ||
}, | ||
'l3_ipm': 'disabled' | ||
} | ||
} | ||
} |
4 changes: 4 additions & 0 deletions
4
src/genie/libs/parser/iosxe/tests/ShowCtsInterface/cli/equal/golden_output4_output.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
Interface Port-channel2: | ||
CTS is disabled. | ||
|
||
L3 IPM: disabled. |