Skip to content

Commit 150e2fa

Browse files
[swss-common] Add additional tables to support PoE
Signed-off-by: Serhiy Boiko <[email protected]>
1 parent e37bfea commit 150e2fa

File tree

2 files changed

+24
-0
lines changed

2 files changed

+24
-0
lines changed

common/database_config.json

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,21 @@
9191
"id" : 14,
9292
"separator": ":",
9393
"instance" : "redis"
94+
},
95+
"POE_ASIC_DB" : {
96+
"id" : 21,
97+
"separator": ":",
98+
"instance" : "redis"
99+
},
100+
"POE_COUNTERS_DB" : {
101+
"id" : 22,
102+
"separator": ":",
103+
"instance" : "redis"
104+
},
105+
"POE_FLEX_COUNTER_DB" : {
106+
"id" : 23,
107+
"separator": ":",
108+
"instance" : "redis"
94109
}
95110
},
96111
"VERSION" : "1.0"

common/schema.h

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,9 @@ namespace swss {
2525
#define APPL_STATE_DB 14
2626
#define EVENT_DB 19
2727
#define BMP_STATE_DB 20
28+
#define POE_ASIC_DB 21
29+
#define POE_COUNTERS_DB 22
30+
#define POE_FLEX_COUNTER_DB 23
2831

2932
/***** APPLICATION DATABASE *****/
3033

@@ -110,6 +113,7 @@ namespace swss {
110113
#define APP_ISOLATION_GROUP_TABLE_NAME "ISOLATION_GROUP_TABLE"
111114
#define APP_BFD_SESSION_TABLE_NAME "BFD_SESSION_TABLE"
112115

116+
#define APP_POE_TABLE_NAME "POE_TABLE"
113117

114118
#define APP_SAG_TABLE_NAME "SAG_TABLE"
115119

@@ -290,6 +294,7 @@ namespace swss {
290294
#define CFG_SEND_TO_INGRESS_PORT_TABLE_NAME "SEND_TO_INGRESS_PORT"
291295

292296
#define CFG_GEARBOX_TABLE_NAME "GEARBOX"
297+
#define CFG_POE_TABLE_NAME "POE_PORT"
293298

294299
#define CFG_INTF_TABLE_NAME "INTERFACE"
295300
#define CFG_LOOPBACK_INTERFACE_TABLE_NAME "LOOPBACK_INTERFACE"
@@ -534,6 +539,10 @@ namespace swss {
534539

535540
#define STATE_ASIC_SDK_HEALTH_EVENT_TABLE_NAME "ASIC_SDK_HEALTH_EVENT_TABLE"
536541

542+
#define STATE_POE_DEVICE_TABLE_NAME "POE_DEVICE_TABLE"
543+
#define STATE_POE_PSE_TABLE_NAME "POE_PSE_TABLE"
544+
#define STATE_POE_PORT_TABLE_NAME "POE_PORT_TABLE"
545+
537546
// ACL table and ACL rule table
538547
#define STATE_ACL_TABLE_TABLE_NAME "ACL_TABLE_TABLE"
539548
#define STATE_ACL_RULE_TABLE_NAME "ACL_RULE_TABLE"

0 commit comments

Comments
 (0)