From da6cf3615ad46b0dbfbe1c1a1da1b54a509b20a1 Mon Sep 17 00:00:00 2001 From: "vivekverma@arista.com" Date: Wed, 28 Aug 2024 09:14:55 -0700 Subject: [PATCH] Add support for CHASSIS_COUNTERS_DB and schema for aggregate VOQ stats --- common/database_config.json | 5 +++++ common/schema.h | 3 +++ 2 files changed, 8 insertions(+) diff --git a/common/database_config.json b/common/database_config.json index 67b5cda8..d0ec476e 100644 --- a/common/database_config.json +++ b/common/database_config.json @@ -91,6 +91,11 @@ "id" : 14, "separator": ":", "instance" : "redis" + }, + "CHASSIS_COUNTERS_DB" : { + "id" : 21, + "separator": ":", + "instance" : "redis_chassis" } }, "VERSION" : "1.0" diff --git a/common/schema.h b/common/schema.h index 4007967a..48a25cea 100644 --- a/common/schema.h +++ b/common/schema.h @@ -25,6 +25,7 @@ namespace swss { #define APPL_STATE_DB 14 #define EVENT_DB 19 #define BMP_STATE_DB 20 +#define CHASSIS_COUNTERS_DB 21 /***** APPLICATION DATABASE *****/ @@ -233,6 +234,8 @@ namespace swss { #define RATES_TABLE "RATES" +#define CHASSIS_COUNTERS_VOQ "COUNTERS_VOQ" + /***** EVENTS COUNTER KEYS *****/ #define COUNTERS_EVENTS_PUBLISHED "published" #define COUNTERS_EVENTS_MISSED_SLOW_RCVR "missed_by_slow_receiver"