1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

Make default_operation optional in netconf_config module (#46333)

Fixes #46257

*  As per netconf rfc default-operation value is optional,
   hence removing the default value for default_operation
   option.
This commit is contained in:
Ganesh Nalawade 2018-10-04 09:47:19 +05:30 committed by GitHub
parent 12d688c006
commit 5e6eb921ae
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -71,7 +71,6 @@ options:
option completely replaces the configuration in the C(target) datastore. If the value is none the C(target) option completely replaces the configuration in the C(target) datastore. If the value is none the C(target)
datastore is unaffected by the configuration in the config option, unless and until the incoming configuration datastore is unaffected by the configuration in the config option, unless and until the incoming configuration
data uses the C(operation) operation to request a different operation. data uses the C(operation) operation to request a different operation.
default: merge
choices: ['merge', 'replace', 'none'] choices: ['merge', 'replace', 'none']
version_added: "2.7" version_added: "2.7"
confirm: confirm:
@ -231,7 +230,7 @@ def main():
source_datastore=dict(aliases=['source']), source_datastore=dict(aliases=['source']),
format=dict(choices=['xml', 'text'], default='xml'), format=dict(choices=['xml', 'text'], default='xml'),
lock=dict(choices=['never', 'always', 'if-supported'], default='always'), lock=dict(choices=['never', 'always', 'if-supported'], default='always'),
default_operation=dict(choices=['merge', 'replace', 'none'], default='merge'), default_operation=dict(choices=['merge', 'replace', 'none']),
confirm=dict(type='int', default=0), confirm=dict(type='int', default=0),
confirm_commit=dict(type='bool', default=False), confirm_commit=dict(type='bool', default=False),
error_option=dict(choices=['stop-on-error', 'continue-on-error', 'rollback-on-error'], default='stop-on-error'), error_option=dict(choices=['stop-on-error', 'continue-on-error', 'rollback-on-error'], default='stop-on-error'),