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:
Nathaniel Case 2018-07-02 09:43:51 -04:00 committed by GitHub
commit a197125954
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
127 changed files with 713 additions and 0 deletions

View file

@ -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"