nxos_snmp_host:sanity:6k: Add platform excludes for sanity tests (#55664)

N6K should be present wherever N5K is included/excluded.
pull/55745/head
Chris Van Heuveln 5 years ago committed by Trishna Guha
parent 8de2acb819
commit 91d187f780

@ -8,7 +8,8 @@
# Select interface for test
- set_fact: intname="{{ nxos_int1 }}"
when: not (platform is match("N5K"))
when: platform is not search('N5K|N6K')
- name: Setup - Remove snmp_host if configured
nxos_snmp_host: &remove
@ -69,7 +70,7 @@
register: result
- assert: *false
when: not (platform is match('N35|N5K'))
when: platform is not search('N35|N5K|N6K')
- name: remove some configuration
nxos_snmp_host: &rem1
@ -107,7 +108,7 @@
register: result
- assert: *false
when: not (platform is match('N35|N5K'))
when: platform is not search('N35|N5K|N6K')
- name: Cleanup

@ -8,7 +8,7 @@
# Select interface for test
- set_fact: intname="{{ nxos_int1 }}"
when: not (platform is match("N5K"))
when: platform is not search('N5K|N6K')
- name: Setup - Remove snmp_host if configured
nxos_snmp_host: &remove
@ -69,7 +69,7 @@
register: result
- assert: *false
when: not (platform is match('N35|N5K'))
when: platform is not search('N35|N5K|N6K')
- name: remove some configuration
nxos_snmp_host: &rem1
@ -107,7 +107,7 @@
register: result
- assert: *false
when: not (platform is match('N35|N5K'))
when: platform is not search('N35|N5K|N6K')
- name: Cleanup
nxos_snmp_host: *remove

@ -9,7 +9,8 @@
# Select interface for test
- set_fact: intname="{{ nxos_int1 }}"
when: not (platform is match("N5K"))
when: platform is not search('N5K|N6K')
- set_fact: run="true"
- set_fact: run="false"
@ -73,7 +74,7 @@
register: result
- assert: *false
when: not (platform is match('N35|N5K'))
when: platform is not search('N35|N5K|N6K')
- name: remove some configuration
nxos_snmp_host: &rem1
@ -109,7 +110,7 @@
register: result
- assert: *false
when: not (platform is match('N35|N5K'))
when: platform is not search('N35|N5K|N6K')
- name: Cleanup
nxos_snmp_host: *remove

@ -9,7 +9,7 @@
# Select interface for test
- set_fact: intname="{{ nxos_int1 }}"
when: not (platform is match("N5K"))
when: platform is not search('N5K|N6K')
- name: Setup - Remove snmp_host if configured
nxos_snmp_host: &remove
@ -72,7 +72,7 @@
register: result
- assert: *false
when: not (platform is match('N35|N5K'))
when: platform is not search('N35|N5K|N6K')
- name: remove some configuration
nxos_snmp_host: &rem1
@ -110,7 +110,7 @@
register: result
- assert: *false
when: not (platform is match('N35|N5K'))
when: platform is not search('N35|N5K|N6K')
- name: Cleanup
nxos_snmp_host: *remove

Loading…
Cancel
Save