mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-06 21:32:49 +00:00
Fixes Netconf_config single parameter bug (#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 #56022 tests backup through netconf only using one parameter. * Added debug to the begin and end of file * Fix formatting of save config. #56022 * removed blank line at end: #56022
This commit is contained in:
committed by
Ganesh Nalawade
parent
9db3c8a40b
commit
647ed207af
@@ -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 }}"
|
||||
|
||||
@@ -52,4 +52,13 @@
|
||||
lines:
|
||||
- delete system syslog file test_netconf_config
|
||||
|
||||
- name: save config
|
||||
netconf_config:
|
||||
backup: yes
|
||||
register: result
|
||||
|
||||
- assert:
|
||||
that:
|
||||
- "'backup_path' in result"
|
||||
|
||||
- debug: msg="END netconf_config junos/basic.yaml on connection={{ ansible_connection }}"
|
||||
|
||||
Reference in New Issue
Block a user