Repository navigation
Add parser for acm replace {configlet_file} diff #1005
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
dwapstra
merged 5 commits into
CiscoTestAutomation:main
from
DevadharshniK03:acm_replace_diff
Oct 21, 2026
Merged
Changes from 2 commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
b4673c6
Add parser for acm replace {configlet_file} diff and enhanced acm rep…
DevadharshniK03 d9d4057
Preserve IOS-XE indentation in ACM diff parser and removed golden out…
DevadharshniK03 db63d81
Update ACM parser changelog and test fixtures
DevadharshniK03 4a35dc3
Fix ACM replace diff parser review comments
DevadharshniK03 7baa122
addressed and added fix
DevadharshniK03 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
6 changes: 6 additions & 0 deletions
6
changelog/undistributed/changelog_for_iosxe_acm_replace_diff_20260924011154.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,6 @@ | ||
| -------------------------------------------------------------------------------- | ||
| New | ||
| -------------------------------------------------------------------------------- | ||
| * IOSXE | ||
| * Added AcmReplaceDiff: | ||
| * acm replace {configlet_file} diff |
Large diffs are not rendered by default.
Oops, something went wrong.
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
Empty file.
1 change: 1 addition & 0 deletions
1
src/genie/libs/parser/iosxe/tests/AcmReplaceDiff/cli/equal/golden_output1_actual.json
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 changes: 4 additions & 0 deletions
4
src/genie/libs/parser/iosxe/tests/AcmReplaceDiff/cli/equal/golden_output1_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,4 @@ | ||
| expected_output = { | ||
| "target": "", | ||
| "diff": [], | ||
| } |
1 change: 1 addition & 0 deletions
1
src/genie/libs/parser/iosxe/tests/AcmReplaceDiff/cli/equal/golden_output1_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 @@ | ||
| Config diff empty. No Diff to Validate/Apply |
1 change: 1 addition & 0 deletions
1
src/genie/libs/parser/iosxe/tests/AcmReplaceDiff/cli/equal/golden_output2_actual.json
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 @@ | ||
| {} |
11 changes: 11 additions & 0 deletions
11
src/genie/libs/parser/iosxe/tests/AcmReplaceDiff/cli/equal/golden_output2_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,11 @@ | ||
| expected_output = { | ||
| "target": "", | ||
| "diff": [ | ||
| "!", | ||
| "hostname Router", | ||
| "interface GigabitEthernet1", | ||
| " description Uplink", | ||
| " no shutdown", | ||
| "end", | ||
| ], | ||
| } |
7 changes: 7 additions & 0 deletions
7
src/genie/libs/parser/iosxe/tests/AcmReplaceDiff/cli/equal/golden_output2_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,7 @@ | ||
| Configuration Net-Diff: | ||
| ! | ||
| hostname Router | ||
| interface GigabitEthernet1 | ||
| description Uplink | ||
| no shutdown | ||
| end |
1 change: 1 addition & 0 deletions
1
src/genie/libs/parser/iosxe/tests/AcmReplaceDiff/cli/equal/golden_output_actual.json
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 @@ | ||
| {} | ||
|
Sripadvallabh marked this conversation as resolved.
Outdated
|
||
7 changes: 7 additions & 0 deletions
7
src/genie/libs/parser/iosxe/tests/AcmReplaceDiff/cli/equal/golden_output_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,7 @@ | ||
| expected_output = { | ||
| 'diff': ['interface Loopback1000', | ||
|
DevadharshniK03 marked this conversation as resolved.
|
||
| ' description ACM-N-FEATURE-LOOPBACK', | ||
| ' ip address 192.0.2.100 255.255.255.255', | ||
| ' no ip route-cache', | ||
| 'end'], | ||
| 'target': ''} | ||
6 changes: 6 additions & 0 deletions
6
src/genie/libs/parser/iosxe/tests/AcmReplaceDiff/cli/equal/golden_output_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,6 @@ | ||
| Configuration Net-Diff: | ||
| interface Loopback1000 | ||
| description ACM-N-FEATURE-LOOPBACK | ||
| ip address 192.0.2.100 255.255.255.255 | ||
| no ip route-cache | ||
| end |
3 changes: 3 additions & 0 deletions
3
...genie/libs/parser/iosxe/tests/AcmReplaceValidate/cli/equal/golden_output_1_arguments.json
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,3 @@ | ||
| { | ||
| "configlet_file": "bootflash:acm_n1_day1_test.cfg" | ||
| } |
4 changes: 4 additions & 0 deletions
4
src/genie/libs/parser/iosxe/tests/AcmReplaceValidate/cli/equal/golden_output_1_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,4 @@ | ||
| expected_output = { | ||
| "target": "flash:acm_n1_day1_test.cfg", | ||
| "no_diff": True | ||
| } |
2 changes: 2 additions & 0 deletions
2
src/genie/libs/parser/iosxe/tests/AcmReplaceValidate/cli/equal/golden_output_1_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,2 @@ | ||
| Config Validation to Target: flash:acm_n1_day1_test.cfg | ||
| Config diff empty. No Diff to Validate/Apply |
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.