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: 5 additions & 0 deletions ansible/roles/test/files/ptftests/advanced-reboot.py
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,7 @@ def __init__(self):
self.check_param('dut_stabilize_secs', 30, required=False)
self.check_param('preboot_files', None, required = False)
self.check_param('preboot_oper', None, required = False)
self.check_param('allow_vlan_flooding', False, required = False)
if not self.test_params['preboot_oper'] or self.test_params['preboot_oper'] == 'None':
self.test_params['preboot_oper'] = None

Expand Down Expand Up @@ -191,6 +192,8 @@ def __init__(self):
# second is the fast send_in_background
self.dataplane_io_lock = threading.Lock()

self.allow_vlan_flooding = bool(self.test_params['allow_vlan_flooding'])

return

def read_json(self, name):
Expand Down Expand Up @@ -1139,6 +1142,8 @@ def wait_dut_to_warm_up(self):
if not self.asic_state.is_flooding() and elapsed > dut_stabilize_secs:
break
if elapsed > warm_up_timeout_secs:
if self.allow_vlan_flooding:
break
raise Exception("Data plane didn't stop flooding within warm up timeout")
time.sleep(1)

Expand Down
Loading