nxos_lacp_interfaces: Updating the tests to handle platforms that don't support - lacp mode delay (#64123)

* nxos_lacp_interfaces: Updating the tests to handle platforms that dont support - lacp mode delay

* nxos_lacp_interfaces: Updating search string to include all 9500 series switches

* nxos_lacp_interfaces: Adding a comment about chassis_type
pull/64645/head
nkshrishail 5 years ago committed by Nilashish Chakraborty
parent d5e30be686
commit 964da2f442

@ -2,9 +2,15 @@
- debug: - debug:
msg: "Start nxos_lacp_interfaces deleted integration tests connection={{ ansible_connection }}" msg: "Start nxos_lacp_interfaces deleted integration tests connection={{ ansible_connection }}"
#
# "lacp mode delay" is not supported on Nexus 9500 series switches.
# Three models of Nexus 9500 switches have chassis types C9504, C9508 and C9516.
#
- set_fact: - set_fact:
mode: delay mode: delay
when: platform is not search('N5K|N6K|N7K') and ((imagetag != 'I2')) when: platform is not search('N3K|N5K|N6K|N7K') and imagetag is not search('A8|I2') and
image_version is not search ('9.2') and chassis_type is not search('C95')
- name: setup1 - name: setup1
cli_config: &cleanup cli_config: &cleanup

@ -2,9 +2,15 @@
- debug: - debug:
msg: "Start nxos_lacp_interfaces merged integration tests connection={{ ansible_connection }}" msg: "Start nxos_lacp_interfaces merged integration tests connection={{ ansible_connection }}"
#
# "lacp mode delay" is not supported on Nexus 9500 series switches.
# Three models of Nexus 9500 switches have chassis types C9504, C9508 and C9516.
#
- set_fact: - set_fact:
mode: delay mode: delay
when: platform is not search('N5K|N6K|N7K') and ((imagetag != 'I2')) when: platform is not search('N3K|N5K|N6K|N7K') and imagetag is not search('A8|I2') and
image_version is not search ('9.2') and chassis_type is not search('C95')
- name: setup1 - name: setup1
cli_config: &cleanup cli_config: &cleanup

@ -2,9 +2,15 @@
- debug: - debug:
msg: "Start nxos_lacp_interfaces overridden integration tests connection={{ ansible_connection }}" msg: "Start nxos_lacp_interfaces overridden integration tests connection={{ ansible_connection }}"
#
# "lacp mode delay" is not supported on Nexus 9500 series switches.
# Three models of Nexus 9500 switches have chassis types C9504, C9508 and C9516.
#
- set_fact: - set_fact:
mode: delay mode: delay
when: platform is not search('N5K|N6K|N7K') and ((imagetag != 'I2')) when: platform is not search('N3K|N5K|N6K|N7K') and imagetag is not search('A8|I2') and
image_version is not search ('9.2') and chassis_type is not search('C95')
- name: setup1 - name: setup1
cli_config: &cleanup cli_config: &cleanup

@ -2,9 +2,15 @@
- debug: - debug:
msg: "Start nxos_lacp_interfaces replaced integration tests connection={{ ansible_connection }}" msg: "Start nxos_lacp_interfaces replaced integration tests connection={{ ansible_connection }}"
#
# "lacp mode delay" is not supported on Nexus 9500 series switches.
# Three models of Nexus 9500 switches have chassis types C9504, C9508 and C9516.
#
- set_fact: - set_fact:
mode: delay mode: delay
when: platform is not search('N5K|N6K|N7K') and ((imagetag != 'I2')) when: platform is not search('N3K|N5K|N6K|N7K') and imagetag is not search('A8|I2') and
image_version is not search ('9.2') and chassis_type is not search('C95')
- name: setup1 - name: setup1
cli_config: &cleanup cli_config: &cleanup

Loading…
Cancel
Save