summaryrefslogtreecommitdiff
path: root/test/integration/targets/nxos_vlan/tests/common/sanity.yaml
diff options
context:
space:
mode:
Diffstat (limited to 'test/integration/targets/nxos_vlan/tests/common/sanity.yaml')
-rw-r--r--test/integration/targets/nxos_vlan/tests/common/sanity.yaml14
1 files changed, 14 insertions, 0 deletions
diff --git a/test/integration/targets/nxos_vlan/tests/common/sanity.yaml b/test/integration/targets/nxos_vlan/tests/common/sanity.yaml
index 54351275d6..01b208e001 100644
--- a/test/integration/targets/nxos_vlan/tests/common/sanity.yaml
+++ b/test/integration/targets/nxos_vlan/tests/common/sanity.yaml
@@ -12,6 +12,7 @@
lines:
- install feature-set fabricpath
- feature-set fabricpath
+ provider: "{{ connection }}"
when: platform is search('N5K|N7K')
- name: "Enable feature vn segment"
@@ -19,11 +20,13 @@
commands:
- feature vn-segment-vlan-based
match: none
+ provider: "{{ connection }}"
when: platform is search('N9K')
- name: Ensure a range of VLANs are present on the switch
nxos_vlan: &conf_vlan
vlan_range: "2-10,20,50,55-60,100-150"
+ provider: "{{ connection }}"
register: result
- assert: &true
@@ -45,6 +48,7 @@
admin_state: down
name: WEB
mapped_vni: 5555
+ provider: "{{ connection }}"
register: result
when: platform is search('N9K')
@@ -66,6 +70,7 @@
admin_state: up
name: default
mapped_vni: default
+ provider: "{{ connection }}"
register: result
when: platform is search('N9K')
@@ -86,6 +91,7 @@
vlan_state: suspend
admin_state: down
name: WEB
+ provider: "{{ connection }}"
register: result
when: platform is search('N3K|N7K')
@@ -106,6 +112,7 @@
vlan_state: active
admin_state: up
name: default
+ provider: "{{ connection }}"
register: result
when: platform is search('N3K|N7K')
@@ -125,6 +132,7 @@
nxos_vlan: &mode1
vlan_id: 50
mode: fabricpath
+ provider: "{{ connection }}"
register: result
when: platform is search('N5K|N7K')
@@ -143,6 +151,7 @@
nxos_vlan: &mode2
vlan_id: 50
mode: ce
+ provider: "{{ connection }}"
register: result
when: platform is search('N5K|N7K')
@@ -160,6 +169,7 @@
- name: Ensure VLAN is NOT on the device
nxos_vlan: &no_vlan
vlan_id: 50
+ provider: "{{ connection }}"
state: absent
register: result
@@ -178,6 +188,7 @@
interfaces:
- "{{ testint1 }}"
- "{{ testint2 }}"
+ provider: "{{ connection }}"
register: result
- assert: *true
@@ -192,6 +203,7 @@
nxos_vlan: &remint
vlan_id: 101
interfaces: default
+ provider: "{{ connection }}"
register: result
- assert: *true
@@ -210,12 +222,14 @@
- name: remove vlans
nxos_vlan:
vlan_range: "2-10,20,50,55-60,100-150"
+ provider: "{{ connection }}"
state: absent
ignore_errors: yes
- name: "Disable feature vn segement"
nxos_feature:
feature: vn-segment-vlan-based
+ provider: "{{ connection }}"
state: disabled
ignore_errors: yes
when: platform is search('N9K')