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

N6K should be present wherever N5K is included/excluded.
This commit is contained in:
Chris Van Heuveln 2019-04-24 05:38:04 -04:00 committed by Trishna Guha
parent 8de2acb819
commit 91d187f780
4 changed files with 47 additions and 45 deletions

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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