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

@ -12,12 +12,14 @@
- name: "Disable feature BGP"
nxos_feature:
feature: bgp
provider: "{{ connection }}"
state: disabled
ignore_errors: yes
- name: "Enable feature BGP"
nxos_feature:
feature: bgp
provider: "{{ connection }}"
state: enabled
ignore_errors: yes
@ -28,6 +30,7 @@
disable_policy_batching: true
disable_policy_batching_ipv4_prefix_list: v4_p
disable_policy_batching_ipv6_prefix_list: v6_p
provider: "{{ connection }}"
register: result
when: bgp_disable_policy
@ -52,6 +55,7 @@
disable_policy_batching: false
disable_policy_batching_ipv4_prefix_list: default
disable_policy_batching_ipv6_prefix_list: default
provider: "{{ connection }}"
register: result
when: bgp_disable_policy
@ -73,6 +77,7 @@
- name: "Disable feature bgp"
nxos_feature:
feature: bgp
provider: "{{ connection }}"
state: disabled
ignore_errors: yes

View file

@ -12,6 +12,7 @@
- name: "Disable feature BGP"
nxos_feature:
feature: bgp
provider: "{{ connection }}"
state: disabled
ignore_errors: yes
when: test_helsinki
@ -19,6 +20,7 @@
- name: "Enable feature BGP"
nxos_feature:
feature: bgp
provider: "{{ connection }}"
state: enabled
ignore_errors: yes
when: test_helsinki
@ -36,6 +38,7 @@
reconnect_interval: 55
timer_bgp_hold: 110
timer_bgp_keepalive: 45
provider: "{{ connection }}"
with_items: "{{ vrfs }}"
register: result
when: test_helsinki
@ -67,6 +70,7 @@
reconnect_interval: default
timer_bgp_hold: default
timer_bgp_keepalive: default
provider: "{{ connection }}"
with_items: "{{ vrfs }}"
register: result
when: test_helsinki
@ -90,6 +94,7 @@
- name: "Disable feature bgp"
nxos_feature:
feature: bgp
provider: "{{ connection }}"
state: disabled
ignore_errors: yes
when: test_helsinki

View file

@ -13,12 +13,14 @@
- name: "Disable feature BGP"
nxos_feature:
feature: bgp
provider: "{{ connection }}"
state: disabled
ignore_errors: yes
- name: "Enable feature BGP"
nxos_feature:
feature: bgp
provider: "{{ connection }}"
state: enabled
ignore_errors: yes
@ -29,6 +31,7 @@
nxos_bgp: &set1
asn: 65535
isolate: false
provider: "{{ connection }}"
register: result
when: bgp_isolate
@ -51,6 +54,7 @@
nxos_bgp: &reset1
asn: 65535
isolate: true
provider: "{{ connection }}"
register: result
when: bgp_isolate
@ -72,6 +76,7 @@
- name: "Disable feature bgp"
nxos_feature:
feature: bgp
provider: "{{ connection }}"
state: disabled
ignore_errors: yes

View file

@ -6,12 +6,14 @@
- name: "Disable feature BGP"
nxos_feature:
feature: bgp
provider: "{{ connection }}"
state: disabled
ignore_errors: yes
- name: "Enable feature BGP"
nxos_feature:
feature: bgp
provider: "{{ connection }}"
state: enabled
ignore_errors: yes
@ -33,6 +35,7 @@
graceful_restart_helper: true
log_neighbor_changes: true
maxas_limit: 50
provider: "{{ connection }}"
with_items: "{{ vrfs }}"
register: result
@ -64,6 +67,7 @@
log_neighbor_changes: false
maxas_limit: default
router_id: default
provider: "{{ connection }}"
with_items: "{{ vrfs }}"
register: result
@ -81,6 +85,7 @@
asn: 65535
vrf: "{{ item }}"
cluster_id: 10.0.0.1
provider: "{{ connection }}"
with_items: "{{ vrfs }}"
register: result
@ -98,6 +103,7 @@
asn: 65535
vrf: "{{ item }}"
cluster_id: default
provider: "{{ connection }}"
with_items: "{{ vrfs }}"
register: result
@ -118,6 +124,7 @@
- 16
- 22
- 18
provider: "{{ connection }}"
register: result
- assert: *true
@ -133,6 +140,7 @@
asn: 65535
confederation_id: default
confederation_peers: default
provider: "{{ connection }}"
register: result
- assert: *true
@ -153,6 +161,7 @@
- 16
- 22
- 18
provider: "{{ connection }}"
register: result
- assert: *true
@ -170,6 +179,7 @@
local_as: default
confederation_id: default
confederation_peers: default
provider: "{{ connection }}"
register: result
- assert: *true
@ -186,6 +196,7 @@
vrf: myvrf
local_as: 33
confederation_id: 99
provider: "{{ connection }}"
register: result
- assert: *true
@ -202,6 +213,7 @@
vrf: myvrf
confederation_id: default
local_as: default
provider: "{{ connection }}"
register: result
- assert: *true
@ -223,6 +235,7 @@
fast_external_fallover: false
flush_routes: true
shutdown: true
provider: "{{ connection }}"
register: result
- assert: *true
@ -241,6 +254,7 @@
fast_external_fallover: true
flush_routes: false
shutdown: false
provider: "{{ connection }}"
register: result
- assert: *true
@ -255,6 +269,7 @@
- name: "Disable feature bgp"
nxos_feature:
feature: bgp
provider: "{{ connection }}"
state: disabled
ignore_errors: yes

View file

@ -15,12 +15,14 @@
- name: "Enable feature BGP"
nxos_feature:
feature: bgp
provider: "{{ connection }}"
state: enabled
ignore_errors: yes
- name: "Setup"
nxos_bgp: &remove
asn: 65535
provider: "{{ connection }}"
state: absent
ignore_errors: yes
register: result
@ -30,6 +32,7 @@
nxos_bgp: &configure_default
asn: 65535
router_id: 192.0.2.1
provider: "{{ connection }}"
state: present
register: result
@ -91,6 +94,7 @@
event_history_events: size_medium
event_history_periodic: size_small
suppress_fib_pending: true
provider: "{{ connection }}"
state: present
register: result
@ -117,6 +121,7 @@
- name: "Disable feature bgp"
nxos_feature:
feature: bgp
provider: "{{ connection }}"
state: disabled
rescue:
@ -127,6 +132,7 @@
- name: "Disable feature bgp"
nxos_feature:
feature: bgp
provider: "{{ connection }}"
state: disabled
ignore_errors: yes

View file

@ -14,12 +14,14 @@
- name: "Disable feature BGP"
nxos_feature:
feature: bgp
provider: "{{ connection }}"
state: disabled
ignore_errors: yes
- name: "Enable feature BGP"
nxos_feature:
feature: bgp
provider: "{{ connection }}"
state: enabled
ignore_errors: yes
@ -31,6 +33,7 @@
asn: 65535
vrf: "{{ item }}"
timer_bestpath_limit: 255
provider: "{{ connection }}"
with_items: "{{ vrfs }}"
register: result
@ -52,6 +55,7 @@
asn: 65535
vrf: "{{ item }}"
timer_bestpath_limit: default
provider: "{{ connection }}"
with_items: "{{ vrfs }}"
register: result
@ -72,6 +76,7 @@
nxos_bgp: &set2
asn: 65535
suppress_fib_pending: false
provider: "{{ connection }}"
register: result
- assert: *true
@ -89,6 +94,7 @@
nxos_bgp: &reset2
asn: 65535
suppress_fib_pending: true
provider: "{{ connection }}"
register: result
- assert: *true
@ -109,6 +115,7 @@
- name: "Disable feature bgp"
nxos_feature:
feature: bgp
provider: "{{ connection }}"
state: disabled
ignore_errors: yes