mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-04-24 03:11:24 -07:00
Move networking provider options to subspec (#28894)
* Add EOS provider options as subspec * Add IOS provider options as subspec * Add IOS XR provider options as subspec * Add Junos provider options as subspec * Add NX-OS provider options as subspec * Add Vyos provider options as subspec * Remove password checks from check_args * Do the same to aireos, aruba, ce, dellos*, & sros, as they work the same way * VyOS does not support `transport`
This commit is contained in:
parent
3334407c71
commit
de2096e3d0
14 changed files with 66 additions and 101 deletions
|
@ -53,7 +53,7 @@ except ImportError:
|
|||
_DEVICE_CLI_CONNECTION = None
|
||||
_DEVICE_NC_CONNECTION = None
|
||||
|
||||
ce_argument_spec = {
|
||||
ce_provider_spec = {
|
||||
'host': dict(),
|
||||
'port': dict(type='int'),
|
||||
'username': dict(fallback=(env_fallback, ['ANSIBLE_NET_USERNAME'])),
|
||||
|
@ -61,9 +61,12 @@ ce_argument_spec = {
|
|||
'use_ssl': dict(type='bool'),
|
||||
'validate_certs': dict(type='bool'),
|
||||
'timeout': dict(type='int'),
|
||||
'provider': dict(type='dict', no_log=True),
|
||||
'transport': dict(choices=['cli'])
|
||||
'transport': dict(choices=['cli']),
|
||||
}
|
||||
ce_argument_spec = {
|
||||
'provider': dict(type='dict', options=ce_provider_spec),
|
||||
}
|
||||
ce_argument_spec.update(ce_provider_spec)
|
||||
|
||||
|
||||
def check_args(module, warnings):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue