diff --git a/scripts/fast-reboot b/scripts/fast-reboot index 97e8dc6c141f..2abdb985b062 100755 --- a/scripts/fast-reboot +++ b/scripts/fast-reboot @@ -36,7 +36,6 @@ EXIT_ORCHAGENT_SHUTDOWN=10 EXIT_SYNCD_SHUTDOWN=11 EXIT_FAST_REBOOT_DUMP_FAILURE=12 EXIT_FILTER_FDB_ENTRIES_FAILURE=13 -EXIT_COUNTERPOLL_DISABLE_FAILURE=14 EXIT_NO_CONTROL_PLANE_ASSISTANT=20 EXIT_SONIC_INSTALLER_VERIFY_REBOOT=21 @@ -671,19 +670,6 @@ then systemctl stop "$service_name" fi -if [[ "$REBOOT_TYPE" = "fast-reboot" ]]; then - CONFIG_DB_FILE=/etc/sonic/config_db.json - COUNTERPOLL_DISABLE_RC=0 - # Disable counters in config_db.json - /usr/local/bin/counterpoll config-db disable $CONFIG_DB_FILE || COUNTERPOLL_DISABLE_RC=$? - if [[ COUNTERPOLL_DISABLE_RC -ne 0 ]]; then - error "Failed to disable counterpoll. Exit code: $COUNTERPOLL_DISABLE_RC" - /usr/local/bin/counterpoll config-db enable $CONFIG_DB_FILE || COUNTERPOLL_DISABLE_RC=$? - unload_kernel - exit "${EXIT_COUNTERPOLL_DISABLE_FAILURE}" - fi -fi - # Update the reboot cause file to reflect that user issued this script # Upon next boot, the contents of this file will be used to determine the # cause of the previous reboot