Skip to content

Commit

Permalink
[swss-common] Add additional tables to support PoE
Browse files Browse the repository at this point in the history
Signed-off-by: Serhiy Boiko <[email protected]>
  • Loading branch information
SerhiyBoikoPLV committed Nov 27, 2024
1 parent 6bac82b commit 428556c
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 0 deletions.
15 changes: 15 additions & 0 deletions common/database_config.json
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,21 @@
"id" : 14,
"separator": ":",
"instance" : "redis"
},
"POE_ASIC_DB" : {
"id" : 21,
"separator": ":",
"instance" : "redis"
},
"POE_COUNTERS_DB" : {
"id" : 22,
"separator": ":",
"instance" : "redis"
},
"POE_FLEX_COUNTER_DB" : {
"id" : 23,
"separator": ":",
"instance" : "redis"
}
},
"VERSION" : "1.0"
Expand Down
9 changes: 9 additions & 0 deletions common/schema.h
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,9 @@ namespace swss {
#define DPU_COUNTERS_DB 18
#define EVENT_DB 19
#define BMP_STATE_DB 20
#define POE_ASIC_DB 21
#define POE_COUNTERS_DB 22
#define POE_FLEX_COUNTER_DB 23

/***** APPLICATION DATABASE *****/

Expand Down Expand Up @@ -116,6 +119,7 @@ namespace swss {
#define APP_ISOLATION_GROUP_TABLE_NAME "ISOLATION_GROUP_TABLE"
#define APP_BFD_SESSION_TABLE_NAME "BFD_SESSION_TABLE"

#define APP_POE_TABLE_NAME "POE_TABLE"

#define APP_SAG_TABLE_NAME "SAG_TABLE"

Expand Down Expand Up @@ -309,6 +313,7 @@ namespace swss {
#define CFG_SEND_TO_INGRESS_PORT_TABLE_NAME "SEND_TO_INGRESS_PORT"

#define CFG_GEARBOX_TABLE_NAME "GEARBOX"
#define CFG_POE_TABLE_NAME "POE_PORT"

#define CFG_INTF_TABLE_NAME "INTERFACE"
#define CFG_LOOPBACK_INTERFACE_TABLE_NAME "LOOPBACK_INTERFACE"
Expand Down Expand Up @@ -561,6 +566,10 @@ namespace swss {

#define STATE_ASIC_SDK_HEALTH_EVENT_TABLE_NAME "ASIC_SDK_HEALTH_EVENT_TABLE"

#define STATE_POE_DEVICE_TABLE_NAME "POE_DEVICE_TABLE"
#define STATE_POE_PSE_TABLE_NAME "POE_PSE_TABLE"
#define STATE_POE_PORT_TABLE_NAME "POE_PORT_TABLE"

// ACL table and ACL rule table
#define STATE_ACL_TABLE_TABLE_NAME "ACL_TABLE_TABLE"
#define STATE_ACL_RULE_TABLE_NAME "ACL_RULE_TABLE"
Expand Down

0 comments on commit 428556c

Please sign in to comment.