From 56cc06290d3db34745424143328a3e2f07e10da6 Mon Sep 17 00:00:00 2001 From: Mihir Patel Date: Thu, 2 Nov 2023 01:17:36 +0000 Subject: [PATCH 1/2] Issuing DEL command to remove APPL_DB:PORT_TABLE --- files/scripts/swss.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/files/scripts/swss.sh b/files/scripts/swss.sh index 728f36f4bb6c..9aad9d55a65b 100755 --- a/files/scripts/swss.sh +++ b/files/scripts/swss.sh @@ -292,6 +292,7 @@ start() { # Don't flush DB during warm boot if [[ x"$WARM_BOOT" != x"true" ]]; then debug "Flushing APP, ASIC, COUNTER, CONFIG, and partial STATE databases ..." + clean_up_tables APPL_DB "'PORT_TABLE:E*'" $SONIC_DB_CLI APPL_DB FLUSHDB $SONIC_DB_CLI ASIC_DB FLUSHDB $SONIC_DB_CLI COUNTERS_DB FLUSHDB From 280e268df3fceda8e1b689e4a2471b347918b215 Mon Sep 17 00:00:00 2001 From: Mihir Patel Date: Thu, 30 Nov 2023 19:06:28 +0000 Subject: [PATCH 2/2] Added regex for Ethernet* --- files/scripts/swss.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/files/scripts/swss.sh b/files/scripts/swss.sh index 9aad9d55a65b..b331e422d50d 100755 --- a/files/scripts/swss.sh +++ b/files/scripts/swss.sh @@ -292,7 +292,7 @@ start() { # Don't flush DB during warm boot if [[ x"$WARM_BOOT" != x"true" ]]; then debug "Flushing APP, ASIC, COUNTER, CONFIG, and partial STATE databases ..." - clean_up_tables APPL_DB "'PORT_TABLE:E*'" + clean_up_tables APPL_DB "'PORT_TABLE:Ethernet*'" $SONIC_DB_CLI APPL_DB FLUSHDB $SONIC_DB_CLI ASIC_DB FLUSHDB $SONIC_DB_CLI COUNTERS_DB FLUSHDB