Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 1 addition & 4 deletions ansible/roles/test/tasks/lag_fanout_ports_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
msg: "Wait for configuration to be applied..."

- pause:
seconds: 30
seconds: 60

- include: lag_run_ptf.yml
vars:
Expand All @@ -58,6 +58,3 @@

- pause:
seconds: 100

# Invert PTF interface index
- include: roles/test/files/helpers/invert_iface_behind_lag_member.yml
2 changes: 1 addition & 1 deletion ansible/roles/test/tasks/lag_lacp_timing_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
- set_fact:
lacp_ether_type: '0x8809'
packet_timing: 30
packet_timeout: 10
packet_timeout: 35

- name: Check LACP timing on eth{{ iface_behind_lag_member_0 }} (interface behind {{ vm_name }}).
include: lag_run_ptf.yml
Expand Down
8 changes: 5 additions & 3 deletions ansible/roles/test/tasks/lag_vm_lacp_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
msg: "VM under test is {{ vm_name }}"

- set_fact:
expected_rate: 'slow'
expected_rate: 'normal'

# --- TEST FIRST LAG MEMBER ---
- name: Read first LAG member configuration to learn LACP rate.
Expand All @@ -34,8 +34,9 @@
shell: echo {{ cisco_script_res }} | grep lacp | sed -n "s/.*rate //p"
register: lacp_rate

# "normal" is default value for LACP rate on Arista VM so it may not be shown
- fail: msg="Wrong LACP rate for {{ lag_member_0 }} on {{ vm_name }}. The rate is \'{{ lacp_rate.stdout }}\', while the expected value is \'{{ expected_rate }}\'."
when: lacp_rate.stdout != "{{ expected_rate }}"
when: lacp_rate.stdout != "{{ expected_rate }}" and lacp_rate.stdout != ""

# --- TEST SECOND LAG MEMBER ---
- name: Read second LAG member configuration to learn LACP rate.
Expand All @@ -50,5 +51,6 @@
shell: echo {{ cisco_script_res }} | grep lacp | sed -n "s/.*rate //p"
register: lacp_rate

# "normal" is default value for LACP rate on Arista VM so it may not be shown
- fail: msg="Wrong LACP rate for {{ lag_member_1 }} on {{ vm_name }}. The rate is \'{{ lacp_rate.stdout }}\', while the expected value is \'{{ expected_rate }}\'."
when: lacp_rate.stdout != "{{ expected_rate }}"
when: lacp_rate.stdout != "{{ expected_rate }}" and lacp_rate.stdout != ""
2 changes: 1 addition & 1 deletion ansible/roles/test/tasks/lagall.yml
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@
when: dut_lags is defined

- set_fact:
iface_behind_lag_member_index: 1
iface_behind_lag_member_index: 0

- name: --TEST-- Fanout ports test.
include: lag_fanout_ports_test.yml
Expand Down