mirror of https://github.com/ansible/ansible.git
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_defaultspull/48351/head
parent
0196b6bb69
commit
a727930f07
@ -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"
|
|
Loading…
Reference in New Issue