From 6715c733dd033d719173b61cc5d99471af322ab6 Mon Sep 17 00:00:00 2001 From: abdosi <58047199+abdosi@users.noreply.github.com> Date: Tue, 23 Jun 2020 10:37:18 -0700 Subject: [PATCH] After this PR https://github.com/Azure/sonic-utilities/pull/838 (#1803) there is check pfc_wd poll_time <= pfc_wd_detection/restoration_time. So make sure in testscript before setting poll interval stop pfc wd if enable by default because default detection/restoration time can be < poll time interval making script failure. --- ansible/roles/test/tasks/pfc_wd.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ansible/roles/test/tasks/pfc_wd.yml b/ansible/roles/test/tasks/pfc_wd.yml index 8aa879be2ec..188fb962b29 100644 --- a/ansible/roles/test/tasks/pfc_wd.yml +++ b/ansible/roles/test/tasks/pfc_wd.yml @@ -144,6 +144,10 @@ pfc_wd_restore_time_large: 3000 pfc_wd_poll_time: 400 + - name: Stop PFC watchdog if enable by default before setting poll interval. + shell: "pfcwd stop" + become: yes + - name: Set polling interval {{ pfc_wd_poll_time }}. shell: "pfcwd interval {{ pfc_wd_poll_time }}" become: yes