diff --git a/changelogs/fragments/71195-netconf_config_validate_issue.yaml b/changelogs/fragments/71195-netconf_config_validate_issue.yaml new file mode 100644 index 00000000000..c4f1d2e585d --- /dev/null +++ b/changelogs/fragments/71195-netconf_config_validate_issue.yaml @@ -0,0 +1,2 @@ +bugfixes: +- Fixed Ansible reporting validate not supported by netconf server when enabled in netconf - (https://github.com/ansible-collections/ansible.netcommon/issues/119). diff --git a/lib/ansible/plugins/netconf/__init__.py b/lib/ansible/plugins/netconf/__init__.py index 529cc260675..d25f4d3598b 100644 --- a/lib/ansible/plugins/netconf/__init__.py +++ b/lib/ansible/plugins/netconf/__init__.py @@ -354,7 +354,7 @@ class NetconfBase(AnsiblePlugin): operations['supports_startup'] = ':startup' in capabilities operations['supports_xpath'] = ':xpath' in capabilities operations['supports_writable_running'] = ':writable-running' in capabilities - operations['supports_validate'] = ':writable-validate' in capabilities + operations['supports_validate'] = ':validate' in capabilities operations['lock_datastore'] = [] if operations['supports_writable_running']: