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:
Trishna Guha 2018-01-16 18:23:58 +05:30 committed by GitHub
commit a727930f07
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
31 changed files with 85 additions and 254 deletions

View file

@ -1,68 +0,0 @@
---
- debug: msg="START {{ connection.transport }}/set_lookup_source.yaml"
- name: setup
nxos_config:
lines:
- no ip domain lookup source-interface
- vrf definition ansible
match: none
provider: "{{ connection }}"
- name: configure lookup_source
nxos_system:
lookup_source: Management1
provider: "{{ connection }}"
register: result
- assert:
that:
- result.changed == true
- "'ip domain lookup source-interface Management1' in result.commands"
- name: verify lookup_source
nxos_system:
lookup_source: Management1
provider: "{{ connection }}"
register: result
- assert:
that:
- result.changed == false
- name: change to vrf
nxos_system:
lookup_source:
- interface: Management1
vrf: ansible
provider: "{{ connection }}"
register: result
- assert:
that:
- result.changed == true
- "'no ip domain lookup source-interface Management1' in result.commands"
- "'ip domain lookup vrf ansible source-interface Management1' in result.commands"
- result.commands|length == 2
- name: verify change to vrf
nxos_system:
lookup_source:
- interface: Management1
vrf: ansible
provider: "{{ connection }}"
register: result
- assert:
that:
- result.changed == false
- name: teardown
nxos_config:
lines:
- no ip domain lookup source-interface
- no vrf definition ansible
match: none
provider: "{{ connection }}"
- debug: msg="END {{ connection.transport }}/set_lookup_source.yaml"