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

@ -6,16 +6,19 @@
- name: Configure feature bgp
nxos_feature:
feature: bgp
provider: "{{ connection }}"
state: enabled
- name: Configure feature nv overlay
nxos_config:
commands: "feature nv overlay"
provider: "{{ connection }}"
ignore_errors: yes
- name: Configure nv overlay evpn
nxos_config:
commands: "nv overlay evpn"
provider: "{{ connection }}"
ignore_errors: yes
- block:
@ -24,6 +27,7 @@
vrf: ansible
afi: ipv4
route_target_both_auto_evpn: True
provider: "{{ connection }}"
register: result
- assert: &true
@ -43,6 +47,7 @@
vrf: ansible
afi: ipv6
route_target_both_auto_evpn: True
provider: "{{ connection }}"
register: result
- assert: *true
@ -58,6 +63,7 @@
vrf: ansible
afi: ipv4
route_target_both_auto_evpn: False
provider: "{{ connection }}"
register: result
- assert: *true
@ -73,6 +79,7 @@
vrf: ansible
afi: ipv6
route_target_both_auto_evpn: False
provider: "{{ connection }}"
register: result
- assert: *true
@ -88,6 +95,7 @@
vrf: ansible
afi: ipv6
route_target_both_auto_evpn: True
provider: "{{ connection }}"
state: absent
register: result
@ -107,6 +115,7 @@
vrf: ansible
afi: ipv4
route_target_both_auto_evpn: True
provider: "{{ connection }}"
state: absent
register: result
@ -127,21 +136,25 @@
- name: Remove vrf
nxos_config:
commands: "no vrf context ansible"
provider: "{{ connection }}"
ignore_errors: yes
- name: Remove nv overlay evpn
nxos_config:
commands: "no nv overlay evpn"
provider: "{{ connection }}"
ignore_errors: yes
- name: Remove feature nv overlay
nxos_config:
commands: "no feature nv overlay"
provider: "{{ connection }}"
ignore_errors: yes
- name: Remove feature bgp
nxos_feature:
feature: bgp
provider: "{{ connection }}"
state: disabled
ignore_errors: yes