|
|
@ -2,6 +2,10 @@
|
|
|
|
- debug:
|
|
|
|
- debug:
|
|
|
|
msg: "Start nxos_lacp_interfaces overridden integration tests connection={{ ansible_connection }}"
|
|
|
|
msg: "Start nxos_lacp_interfaces overridden integration tests connection={{ ansible_connection }}"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
- set_fact:
|
|
|
|
|
|
|
|
mode: delay
|
|
|
|
|
|
|
|
when: platform is not search('N5K|N6K|N7K') and ((imagetag != 'I2'))
|
|
|
|
|
|
|
|
|
|
|
|
- name: setup1
|
|
|
|
- name: setup1
|
|
|
|
cli_config: &cleanup
|
|
|
|
cli_config: &cleanup
|
|
|
|
config: |
|
|
|
|
config: |
|
|
|
@ -16,9 +20,16 @@
|
|
|
|
config: |
|
|
|
|
config: |
|
|
|
|
feature lacp
|
|
|
|
feature lacp
|
|
|
|
interface port-channel10
|
|
|
|
interface port-channel10
|
|
|
|
lacp min-links 5
|
|
|
|
lacp min-links 5
|
|
|
|
interface port-channel5
|
|
|
|
interface port-channel5
|
|
|
|
lacp max-bundle 10
|
|
|
|
lacp max-bundle 10
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
- name: setup3 - L2 for mode command
|
|
|
|
|
|
|
|
cli_config:
|
|
|
|
|
|
|
|
config: |
|
|
|
|
|
|
|
|
interface port-channel11
|
|
|
|
|
|
|
|
switchport
|
|
|
|
|
|
|
|
when: mode is defined
|
|
|
|
|
|
|
|
|
|
|
|
- name: Gather lacp_interfaces facts
|
|
|
|
- name: Gather lacp_interfaces facts
|
|
|
|
nxos_facts: &facts
|
|
|
|
nxos_facts: &facts
|
|
|
@ -31,7 +42,9 @@
|
|
|
|
nxos_lacp_interfaces: &overridden
|
|
|
|
nxos_lacp_interfaces: &overridden
|
|
|
|
config:
|
|
|
|
config:
|
|
|
|
- name: port-channel11
|
|
|
|
- name: port-channel11
|
|
|
|
mode: delay
|
|
|
|
links:
|
|
|
|
|
|
|
|
min: 4
|
|
|
|
|
|
|
|
mode: "{{ mode | default(omit) }}"
|
|
|
|
state: overridden
|
|
|
|
state: overridden
|
|
|
|
register: result
|
|
|
|
register: result
|
|
|
|
|
|
|
|
|
|
|
@ -44,8 +57,12 @@
|
|
|
|
- "'interface port-channel5' in result.commands"
|
|
|
|
- "'interface port-channel5' in result.commands"
|
|
|
|
- "'no lacp max-bundle' in result.commands"
|
|
|
|
- "'no lacp max-bundle' in result.commands"
|
|
|
|
- "'interface port-channel11' in result.commands"
|
|
|
|
- "'interface port-channel11' in result.commands"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
- assert:
|
|
|
|
|
|
|
|
that:
|
|
|
|
- "'lacp mode delay' in result.commands"
|
|
|
|
- "'lacp mode delay' in result.commands"
|
|
|
|
- "result.commands|length == 6"
|
|
|
|
- "result.commands|length == 7"
|
|
|
|
|
|
|
|
when: mode is defined
|
|
|
|
|
|
|
|
|
|
|
|
- name: Gather lacp_interfaces post facts
|
|
|
|
- name: Gather lacp_interfaces post facts
|
|
|
|
nxos_facts: *facts
|
|
|
|
nxos_facts: *facts
|
|
|
|