Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[swss-common] Add additional tables to support PoE feature #894

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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"

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I dont see this used in swss code, are these defined for future usage?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is used inside PoeOrch daemon for updating the state of the devices/pse/ports

#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