mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-22 04:40:22 -07:00
Remove deprecated params from module argspec nxos modules (#34911)
* Remove deprecated param from module argspec nxos modules Signed-off-by: Trishna Guha <trishnaguha17@gmail.com> * fix nxos_vrrp syntaxerror * Add choices for version _nxos_ip_interface * remove check_args function * remove include_defaults
This commit is contained in:
parent
0196b6bb69
commit
a727930f07
31 changed files with 85 additions and 254 deletions
|
@ -59,11 +59,6 @@ options:
|
|||
required: false
|
||||
default: null
|
||||
choices: ['true', 'false']
|
||||
include_defaults:
|
||||
description:
|
||||
- Specify if the complete running configuration for module operations should be used.
|
||||
default: false
|
||||
type: bool
|
||||
state:
|
||||
description:
|
||||
- Manages desired state of the resource.
|
||||
|
@ -75,18 +70,15 @@ EXAMPLES = '''
|
|||
- name: Default igmp global params (all params except restart)
|
||||
nxos_igmp:
|
||||
state: default
|
||||
host: "{{ inventory_hostname }}"
|
||||
|
||||
- name: Ensure the following igmp global config exists on the device
|
||||
nxos_igmp:
|
||||
flush_routes: true
|
||||
enforce_rtr_alert: true
|
||||
host: "{{ inventory_hostname }}"
|
||||
|
||||
- name: Restart the igmp process
|
||||
nxos_igmp:
|
||||
restart: true
|
||||
host: "{{ inventory_hostname }}"
|
||||
'''
|
||||
|
||||
RETURN = '''
|
||||
|
@ -121,12 +113,7 @@ def main():
|
|||
flush_routes=dict(type='bool'),
|
||||
enforce_rtr_alert=dict(type='bool'),
|
||||
restart=dict(type='bool', default=False),
|
||||
|
||||
state=dict(choices=['present', 'default'], default='present'),
|
||||
|
||||
include_defaults=dict(default=False),
|
||||
config=dict(),
|
||||
save=dict(type='bool', default=False)
|
||||
state=dict(choices=['present', 'default'], default='present')
|
||||
)
|
||||
|
||||
argument_spec.update(nxos_argument_spec)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue