Skip to content

Local ARS (Adaptive Routing and Switching) #1002

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

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
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
72 changes: 44 additions & 28 deletions common/schema.h
Original file line number Diff line number Diff line change
Expand Up @@ -186,6 +186,10 @@ namespace swss {

#define APP_PAC_PORT_TABLE_NAME "PAC_PORT_TABLE"

#define APP_ARS_PROFILE_TABLE_NAME "ARS_PROFILE_TABLE"
#define APP_ARS_INTERFACE_TABLE_NAME "ARS_INTERFACE_TABLE"
#define APP_ARS_NEXTHOP_GROUP_TABLE_NAME "ARS_NEXTHOP_GROUP_TABLE"

/***** TO BE REMOVED *****/

#define APP_TC_TO_QUEUE_MAP_TABLE_NAME "TC_TO_QUEUE_MAP_TABLE"
Expand Down Expand Up @@ -259,34 +263,35 @@ namespace swss {

/***** FLEX COUNTER DATABASE *****/

#define PFC_WD_POLL_MSECS 100
#define FLEX_COUNTER_TABLE "FLEX_COUNTER_TABLE"
#define PORT_COUNTER_ID_LIST "PORT_COUNTER_ID_LIST"
#define PORT_DEBUG_COUNTER_ID_LIST "PORT_DEBUG_COUNTER_ID_LIST"
#define QUEUE_COUNTER_ID_LIST "QUEUE_COUNTER_ID_LIST"
#define QUEUE_ATTR_ID_LIST "QUEUE_ATTR_ID_LIST"
#define BUFFER_POOL_COUNTER_ID_LIST "BUFFER_POOL_COUNTER_ID_LIST"
#define ENI_COUNTER_ID_LIST "ENI_COUNTER_ID_LIST"
#define DASH_METER_COUNTER_ID_LIST "DASH_METER_COUNTER_ID_LIST"
#define PFC_WD_STATE_TABLE "PFC_WD_STATE_TABLE"
#define PFC_WD_PORT_COUNTER_ID_LIST "PORT_COUNTER_ID_LIST"
#define PFC_WD_QUEUE_COUNTER_ID_LIST "QUEUE_COUNTER_ID_LIST"
#define PFC_WD_QUEUE_ATTR_ID_LIST "QUEUE_ATTR_ID_LIST"
#define PG_COUNTER_ID_LIST "PG_COUNTER_ID_LIST"
#define PG_ATTR_ID_LIST "PG_ATTR_ID_LIST"
#define RIF_COUNTER_ID_LIST "RIF_COUNTER_ID_LIST"
#define TUNNEL_COUNTER_ID_LIST "TUNNEL_COUNTER_ID_LIST"
#define SWITCH_DEBUG_COUNTER_ID_LIST "SWITCH_DEBUG_COUNTER_ID_LIST"
#define MACSEC_FLOW_COUNTER_ID_LIST "MACSEC_FLOW_COUNTER_ID_LIST"
#define MACSEC_SA_COUNTER_ID_LIST "MACSEC_SA_COUNTER_ID_LIST"
#define MACSEC_SA_ATTR_ID_LIST "MACSEC_SA_ATTR_ID_LIST"
#define TUNNEL_ATTR_ID_LIST "TUNNEL_ATTR_ID_LIST"
#define ACL_COUNTER_ATTR_ID_LIST "ACL_COUNTER_ATTR_ID_LIST"
#define FLOW_COUNTER_ID_LIST "FLOW_COUNTER_ID_LIST"
#define POLICER_COUNTER_ID_LIST "POLICER_COUNTER_ID_LIST"
#define PLUGIN_TABLE "PLUGIN_TABLE"
#define LUA_PLUGIN_TYPE "LUA_PLUGIN_TYPE"
#define SAI_OBJECT_TYPE "SAI_OBJECT_TYPE"
#define PFC_WD_POLL_MSECS 100
#define FLEX_COUNTER_TABLE "FLEX_COUNTER_TABLE"
#define PORT_COUNTER_ID_LIST "PORT_COUNTER_ID_LIST"
#define PORT_DEBUG_COUNTER_ID_LIST "PORT_DEBUG_COUNTER_ID_LIST"
#define QUEUE_COUNTER_ID_LIST "QUEUE_COUNTER_ID_LIST"
#define QUEUE_ATTR_ID_LIST "QUEUE_ATTR_ID_LIST"
#define BUFFER_POOL_COUNTER_ID_LIST "BUFFER_POOL_COUNTER_ID_LIST"
#define ENI_COUNTER_ID_LIST "ENI_COUNTER_ID_LIST"
#define DASH_METER_COUNTER_ID_LIST "DASH_METER_COUNTER_ID_LIST"
#define PFC_WD_STATE_TABLE "PFC_WD_STATE_TABLE"
#define PFC_WD_PORT_COUNTER_ID_LIST "PORT_COUNTER_ID_LIST"
#define PFC_WD_QUEUE_COUNTER_ID_LIST "QUEUE_COUNTER_ID_LIST"
#define PFC_WD_QUEUE_ATTR_ID_LIST "QUEUE_ATTR_ID_LIST"
#define PG_COUNTER_ID_LIST "PG_COUNTER_ID_LIST"
#define PG_ATTR_ID_LIST "PG_ATTR_ID_LIST"
#define RIF_COUNTER_ID_LIST "RIF_COUNTER_ID_LIST"
#define TUNNEL_COUNTER_ID_LIST "TUNNEL_COUNTER_ID_LIST"
#define SWITCH_DEBUG_COUNTER_ID_LIST "SWITCH_DEBUG_COUNTER_ID_LIST"
#define MACSEC_FLOW_COUNTER_ID_LIST "MACSEC_FLOW_COUNTER_ID_LIST"
#define MACSEC_SA_COUNTER_ID_LIST "MACSEC_SA_COUNTER_ID_LIST"
#define MACSEC_SA_ATTR_ID_LIST "MACSEC_SA_ATTR_ID_LIST"
#define TUNNEL_ATTR_ID_LIST "TUNNEL_ATTR_ID_LIST"
#define ACL_COUNTER_ATTR_ID_LIST "ACL_COUNTER_ATTR_ID_LIST"
#define FLOW_COUNTER_ID_LIST "FLOW_COUNTER_ID_LIST"
#define POLICER_COUNTER_ID_LIST "POLICER_COUNTER_ID_LIST"

#define PLUGIN_TABLE "PLUGIN_TABLE"
#define LUA_PLUGIN_TYPE "LUA_PLUGIN_TYPE"
#define SAI_OBJECT_TYPE "SAI_OBJECT_TYPE"

#define BULK_CHUNK_SIZE_FIELD "BULK_CHUNK_SIZE"
#define BULK_CHUNK_SIZE_PER_PREFIX_FIELD "BULK_CHUNK_SIZE_PER_PREFIX"
Expand Down Expand Up @@ -445,6 +450,10 @@ namespace swss {
#define CFG_COPP_TRAP_TABLE_NAME "COPP_TRAP"
#define CFG_COPP_GROUP_TABLE_NAME "COPP_GROUP"

#define CFG_ARS_PROFILE "ARS_PROFILE"
#define CFG_ARS_INTERFACE "ARS_INTERFACE"
#define CFG_ARS_NEXTHOP_GROUP "ARS_NEXTHOP_GROUP"

#define CFG_FG_NHG "FG_NHG"
#define CFG_FG_NHG_PREFIX "FG_NHG_PREFIX"
#define CFG_FG_NHG_MEMBER "FG_NHG_MEMBER"
Expand Down Expand Up @@ -630,6 +639,13 @@ namespace swss {
#define BMP_STATE_BGP_RIB_IN_TABLE "BGP_RIB_IN_TABLE"
#define BMP_STATE_BGP_RIB_OUT_TABLE "BGP_RIB_OUT_TABLE"

/* ARS */
#define STATE_ARS_PROFILE_TABLE_NAME "ARS_PROFILE_TABLE"
#define STATE_ARS_INTERFACE_TABLE_NAME "ARS_INTERFACE_TABLE"
#define STATE_ARS_NEXTHOP_GROUP_TABLE_NAME "ARS_NEXTHOP_GROUP_TABLE"
#define STATE_ARS_CAPABILITY_TABLE_NAME "ARS_CAPABILITY_TABLE"


#ifdef __cplusplus
}
#endif
Expand Down