forked from ansible/ansible
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixes Netconf_config single parameter bug (ansible#56138)
* Fixes Netconf_config single parameter bug Fixes 56022 fixed get_config to not require multiple parameters to just run a backup * Add Integration test for netconf_config Associated with ansible#56022 tests backup through netconf only using one parameter. * Added debug to the begin and end of file * Fix formatting of save config. ansible#56022 * removed blank line at end: ansible#56022
- Loading branch information
1 parent
9db3c8a
commit 647ed20
Showing
4 changed files
with
24 additions
and
2 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
--- | ||
- debug: msg="START netconf_config iosxr/basic.yaml on connection={{ ansible_connection }}" | ||
|
||
- name: save config test | ||
netconf_config: | ||
backup: yes | ||
register: result | ||
|
||
- assert: | ||
that: | ||
- "'backup_path' in result" | ||
|
||
- debug: msg="END netconf_config iosxr/basic.yaml on connection={{ ansible_connection }}" |
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