vyos and ios cliconf plugin refactor (#41846)

* vyos and ios cliconf plugin refactor

*  Refactor vyos cliconf plugin
*  Change vyos module_utils and vyos_config as per refactor
*  Minor changes in ios cliconf plugin

* Fix unit test failure

* Fix sanity issues

* Add get_diff to rpc list
This commit is contained in:
Ganesh Nalawade
2018-06-25 09:43:37 +05:30
committed by GitHub
parent 9c5d40ff15
commit 773c031d33
8 changed files with 285 additions and 101 deletions

View File

@@ -166,6 +166,7 @@ def load_config(module, commands):
connection = get_connection(module)
try:
return connection.edit_config(commands)
diff, response = connection.edit_config(commands)
return response
except ConnectionError as exc:
module.fail_json(msg=to_text(exc))