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
3 changes: 2 additions & 1 deletion ansible/roles/test/files/ptftests/advanced-reboot.py
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,7 @@ def __init__(self):
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)
self.check_param('sniff_time_incr', 60, 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 @@ -917,7 +918,7 @@ def sniff_in_background(self, wait = None):
The native scapy.snif() is used as a background thread, to allow delayed start for the send_in_background().
"""
if not wait:
wait = self.time_to_listen + 60
wait = self.time_to_listen + self.test_params['sniff_time_incr']
sniffer_start = datetime.datetime.now()
self.log("Sniffer started at %s" % str(sniffer_start))
sniff_filter = "tcp and tcp dst port 5000 and tcp src port 1234 and not icmp"
Expand Down
1 change: 1 addition & 0 deletions ansible/roles/test/tasks/advanced-reboot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,7 @@
stay_in_target_image: "{{ stay_in_target_image | default('false') | bool }}"
cleanup_old_sonic_images: "{{ cleanup_old_sonic_images | default('false') | bool }}"
allow_vlan_flooding: "{{ allow_vlan_flooding | default('false') | bool }}"
sniff_time_incr: "{{ sniff_time_incr | default(60) | int }}"

- include: advanced_reboot/reboot-image-handle.yml
when: new_sonic_image is defined
Expand Down
1 change: 1 addition & 0 deletions ansible/roles/test/tasks/ptf_runner_reboot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
- preboot_files='{{ preboot_files }}'
- preboot_oper='{{ item }}'
- allow_vlan_flooding='{{ allow_vlan_flooding }}'
- sniff_time_incr={{ sniff_time_incr }}

always:

Expand Down