mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-04-23 19:01:26 -07:00
adds restconf transport option to ios shared module
includes changes from PR ansible/ansible#16636 and refactors for the NetworkModule changes new features * ios now supports transport=restcon will additional arguments * ModuleStub refactored into common network shared module * import temporary get_module() function (to be removed prior to 2.2 final)
This commit is contained in:
commit
c2d5865627
3 changed files with 174 additions and 6 deletions
|
@ -19,8 +19,9 @@
|
|||
|
||||
import re
|
||||
|
||||
from ansible.module_utils.basic import json, AnsibleModule, get_exception
|
||||
from ansible.module_utils.network import NetCli, NetworkError, NetworkModule, Command
|
||||
from ansible.module_utils.basic import json, get_exception
|
||||
from ansible.module_utils.network import NetworkModule, NetworkError
|
||||
from ansible.module_utils.network import NetCli, Command, ModuleStub
|
||||
from ansible.module_utils.network import add_argument, register_transport, to_list
|
||||
from ansible.module_utils.netcfg import NetworkConfig
|
||||
from ansible.module_utils.urls import fetch_url, url_argument_spec
|
||||
|
@ -203,8 +204,7 @@ class Eapi(EosConfigMixin):
|
|||
|
||||
def __init__(self):
|
||||
self.url = None
|
||||
self.url_args = AnsibleModule(url_argument_spec())
|
||||
self.url_args.fail_json = self._error
|
||||
self.url_args = ModuleStub(url_argument_spec(), self._error)
|
||||
self.enable = None
|
||||
self.default_output = 'json'
|
||||
self._connected = False
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue