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 Jul 18, 2024
1 parent e37bfea commit 2f81554
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 @@ -25,6 +25,9 @@ namespace swss {
#define APPL_STATE_DB 14
#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 @@ -110,6 +113,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 @@ -290,6 +294,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 @@ -534,6 +539,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 2f81554

Please sign in to comment.