-
Notifications
You must be signed in to change notification settings - Fork 23.8k
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
netconf_config: Always stacktraces on using backup: yes (i.e. example cannot ever work) #56022
Comments
Files identified in the description: If these files are inaccurate, please update the |
@eikef, just so you are aware we have a dedicated Working Group for network. |
Associated with ansible#56022 tests backup through netconf only using one parameter.
* 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
* 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 (cherry picked from commit 647ed20)
* 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 (cherry picked from commit 647ed20) * Fix netconf_config backup string issue (#56175) * Convert the ElementTree object to string before dumping the configuration in file. (cherry picked from commit 9c5745a)
* 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 (cherry picked from commit 647ed20)
SUMMARY
The
backup
parameter for netconf_config cannot ever work if set toyes
. This is due to the code in the netconf_config module throwing a stacktrace whenever it is set. The module_utils/netconf/netconf.py provides a get_config method, but it requires an additional parameter of "filter", which is not set in netconf_config when trying to obtain the current configuration for backup purposes.ISSUE TYPE
COMPONENT NAME
netconf_config
ANSIBLE VERSION
ansible 2.8.0rc1.post0
STEPS TO REPRODUCE
Minimal example playbook:
(note that this is a minimalized version of the last example shipped with the documentation of the netconf_config module).
EXPECTED RESULTS
Backup of NETCONF configuration is saved somewhere.
ACTUAL RESULTS
The text was updated successfully, but these errors were encountered: