From 7f9ebd2c5f1d14edfd921c40760ee157c7241a5d Mon Sep 17 00:00:00 2001 From: aviramd Date: Thu, 22 Aug 2024 12:51:42 +0000 Subject: [PATCH] add support for debug generate dump tables --- common/consumer_table_pops.lua | 4 +++- common/schema.h | 3 +++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/common/consumer_table_pops.lua b/common/consumer_table_pops.lua index 959bcd0fa..5e4cafd9f 100644 --- a/common/consumer_table_pops.lua +++ b/common/consumer_table_pops.lua @@ -90,7 +90,9 @@ for i = n, 1, -3 do op == 'object_type_get_availability_query' or op == 'object_type_get_availability_response' or op == 'stats_capability_query' or - op == 'stats_capability_response' then + op == 'stats_capability_response' or + op == 'dbg_gen_dump' or + op == 'dbg_gen_dumpresponse' then -- do not modify db entries when spotted those commands, they are used to -- trigger actions or get data synchronously from database diff --git a/common/schema.h b/common/schema.h index 4007967ae..c15a93653 100644 --- a/common/schema.h +++ b/common/schema.h @@ -509,6 +509,9 @@ namespace swss { #define STATE_TWAMP_SESSION_TABLE_NAME "TWAMP_SESSION_TABLE" +#define STATE_DBG_GEN_DUMP_TABLE_NAME "DBG_GEN_DUMP_TABLE" +#define STATE_DBG_GEN_DUMP_STATS_TABLE_NAME "DBG_GEN_DUMP_STATS_TABLE" + #define STATE_MACSEC_PORT_TABLE_NAME "MACSEC_PORT_TABLE" #define STATE_MACSEC_INGRESS_SC_TABLE_NAME "MACSEC_INGRESS_SC_TABLE" #define STATE_MACSEC_INGRESS_SA_TABLE_NAME "MACSEC_INGRESS_SA_TABLE"