From e9c5ec8f691fe61e8226e94d53f61a83639a21d5 Mon Sep 17 00:00:00 2001 From: Perumal Venkatesh Date: Tue, 26 Nov 2024 21:49:29 -0800 Subject: [PATCH] Adding support to get safe_reload and check_intf_up_ports --- tests/common/reboot.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/common/reboot.py b/tests/common/reboot.py index d6956646177..f58e678dbb7 100644 --- a/tests/common/reboot.py +++ b/tests/common/reboot.py @@ -254,6 +254,8 @@ def reboot(duthost, localhost, reboot_type='cold', delay=10, # get 'wait' and 'timeout' from inventory if they are specified, otherwise use current values wait = plt_reboot_ctrl.get('wait', wait) timeout = plt_reboot_ctrl.get('timeout', timeout) + safe_reboot = plt_reboot_ctrl.get('safe_reboot', safe_reboot) + check_intf_up_ports = plt_reboot_ctrl.get('check_intf_up_ports', check_intf_up_ports) if warmboot_finalizer_timeout == 0 and 'warmboot_finalizer_timeout' in reboot_ctrl: warmboot_finalizer_timeout = reboot_ctrl['warmboot_finalizer_timeout'] if duthost.get_facts().get("modular_chassis") and safe_reboot: