-
Notifications
You must be signed in to change notification settings - Fork 419
Handle NTP servers configured to use a key #964
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
Merged
omehrabi
merged 4 commits into
CiscoTestAutomation:main
from
jlmcgraw:2025-10-24_ios_xe_show_ntp
Oct 28, 2025
Merged
Changes from 2 commits
Commits
Show all changes
4 commits
Select commit
Hold shift + click to select a range
9d92a6f
Handle NTP servers configured to use a key
jlmcgraw 9c4e4c1
Handle NTP servers configured to use a key
jlmcgraw 5adb229
Update changelog/undistributed/changelog_show_ntp_configuration_iosxe…
ThomasJRyan bbfabbd
Handle NTP servers configured to use a key
jlmcgraw File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
4 changes: 4 additions & 0 deletions
4
changelog/undistributed/changelog_show_ntp_configuration_iosxe_202510271000.rst
This file contains hidden or 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 @@ | ||
| * iosxe | ||
| * Modified ShowNtpConfig | ||
| * Modified regex pattern to support ntp servers configured with keys | ||
| * Changed schema to include "key_id" | ||
This file contains hidden or 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
51 changes: 51 additions & 0 deletions
51
src/genie/libs/parser/iosxe/tests/ShowNtpConfig/cli/equal/golden_output_2_expected.py
This file contains hidden or 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,51 @@ | ||
| expected_output = { | ||
| 'vrf': { | ||
| 'Mgmt': { | ||
| 'unicast_configuration': { | ||
| 'address': { | ||
| '10.4.4.4': { | ||
| 'type': { | ||
| 'server': { | ||
| 'address': '10.4.4.4', | ||
| 'type': 'server', | ||
| 'vrf': 'Mgmt', | ||
| 'preferred': True, | ||
| 'key_id': '5' | ||
| } | ||
| } | ||
| }, | ||
| '10.3.3.3': { | ||
| 'type': { | ||
| 'server': { | ||
| 'address': '10.3.3.3', | ||
| 'type': 'server', | ||
| 'vrf': 'Mgmt', | ||
| 'key_id': '4' | ||
| } | ||
| } | ||
| }, | ||
| '10.2.2.2': { | ||
| 'type': { | ||
| 'server': { | ||
| 'address': '10.2.2.2', | ||
| 'type': 'server', | ||
| 'vrf': 'Mgmt', | ||
| 'key_id': '3' | ||
| } | ||
| } | ||
| }, | ||
| '10.1.1.1': { | ||
| 'type': { | ||
| 'server': { | ||
| 'address': '10.1.1.1', | ||
| 'type': 'server', | ||
| 'vrf': 'Mgmt', | ||
| 'key_id': '2' | ||
| } | ||
| } | ||
| } | ||
| } | ||
| } | ||
| } | ||
| } | ||
| } |
5 changes: 5 additions & 0 deletions
5
src/genie/libs/parser/iosxe/tests/ShowNtpConfig/cli/equal/golden_output_2_output.txt
This file contains hidden or 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,5 @@ | ||
| R1#show ntp config | ||
| ntp server vrf Mgmt 10.1.1.1 key 2 | ||
| ntp server vrf Mgmt 10.2.2.2 key 3 | ||
| ntp server vrf Mgmt 10.3.3.3 key 4 | ||
| ntp server vrf Mgmt 10.4.4.4 key 5 prefer |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.