mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-28 07:31:23 -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
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue