mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-10-22 20:13:59 -07:00
Nxos restore provider to nxapi tests (#41818)
* Quick and dirty sed to add provider * Manually verify the rest of the cases * Add missing provider
This commit is contained in:
parent
1659951710
commit
a197125954
127 changed files with 713 additions and 0 deletions
|
@ -7,6 +7,7 @@
|
|||
- name: enable feature vpc
|
||||
nxos_feature:
|
||||
feature: vpc
|
||||
provider: "{{ connection }}"
|
||||
state: enabled
|
||||
|
||||
- name: create port-channel10
|
||||
|
@ -15,6 +16,7 @@
|
|||
- interface port-channel10
|
||||
- switchport
|
||||
match: none
|
||||
provider: "{{ connection }}"
|
||||
|
||||
- name: create port-channel11
|
||||
nxos_config:
|
||||
|
@ -22,9 +24,11 @@
|
|||
- interface port-channel11
|
||||
- switchport
|
||||
match: none
|
||||
provider: "{{ connection }}"
|
||||
|
||||
- name: configure vpc
|
||||
nxos_vpc:
|
||||
provider: "{{ connection }}"
|
||||
state: present
|
||||
domain: 100
|
||||
role_priority: 32667
|
||||
|
@ -38,6 +42,7 @@
|
|||
nxos_vpc_interface: &conf
|
||||
portchannel: 10
|
||||
vpc: 10
|
||||
provider: "{{ connection }}"
|
||||
register: result
|
||||
|
||||
- assert: &true
|
||||
|
@ -56,6 +61,7 @@
|
|||
nxos_vpc_interface: &conf1
|
||||
portchannel: 11
|
||||
peer_link: True
|
||||
provider: "{{ connection }}"
|
||||
register: result
|
||||
|
||||
- assert: *true
|
||||
|
@ -70,6 +76,7 @@
|
|||
nxos_vpc_interface: &conf2
|
||||
portchannel: 11
|
||||
peer_link: False
|
||||
provider: "{{ connection }}"
|
||||
register: result
|
||||
|
||||
- assert: *true
|
||||
|
@ -84,6 +91,7 @@
|
|||
nxos_vpc_interface: &remove
|
||||
portchannel: 10
|
||||
vpc: 10
|
||||
provider: "{{ connection }}"
|
||||
state: absent
|
||||
register: result
|
||||
|
||||
|
@ -98,6 +106,7 @@
|
|||
always:
|
||||
- name: remove vpc
|
||||
nxos_vpc:
|
||||
provider: "{{ connection }}"
|
||||
state: absent
|
||||
domain: 100
|
||||
role_priority: 32667
|
||||
|
@ -112,6 +121,7 @@
|
|||
nxos_vpc_interface:
|
||||
portchannel: 10
|
||||
vpc: 10
|
||||
provider: "{{ connection }}"
|
||||
state: absent
|
||||
ignore_errors: yes
|
||||
|
||||
|
@ -121,11 +131,13 @@
|
|||
- no interface port-channel10
|
||||
- no interface port-channel11
|
||||
match: none
|
||||
provider: "{{ connection }}"
|
||||
ignore_errors: yes
|
||||
|
||||
- name: disable feature vpc
|
||||
nxos_feature:
|
||||
feature: vpc
|
||||
provider: "{{ connection }}"
|
||||
state: disabled
|
||||
|
||||
- debug: msg="END connection={{ ansible_connection }} nxos_vpc_interface sanity test"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue