Skip to content

Commit

Permalink
Fix netconf validate capability check (ansible#71195)
Browse files Browse the repository at this point in the history
*  Use ``:validate`` string to check if the netconf
   server supports validate capability as per netconf RFC
  • Loading branch information
ganeshrn authored Aug 12, 2020
1 parent dd048a5 commit 7635d23
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/ansible/plugins/netconf/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -353,7 +353,7 @@ def get_device_operations(self, server_capabilities):
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']:
Expand Down

0 comments on commit 7635d23

Please sign in to comment.