-
Notifications
You must be signed in to change notification settings - Fork 265
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
Schema.h Changes to support PAC functionality. #871
Schema.h Changes to support PAC functionality. #871
Conversation
@jeff-yin @ridahanif96 pls help review |
/azpw run Azure |
/AzurePipelines run Azure |
No pipelines are associated with this pull request. |
/azpw run Azure |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changes looks good. Please re-push these changes or make a latest push to rerun pipelines to pass swss checkes.
f9f748d
to
8f5058f
Compare
/azpw run Azure |
/AzurePipelines run Azure |
No pipelines are associated with this pull request. |
I see below error, Which is not related to my changes, Any help on this is highly appreciated. Making all in orchagent |
/azpw run Azure |
/AzurePipelines run Azure |
No pipelines are associated with this pull request. |
/azpw run Azure |
/AzurePipelines run Azure |
No pipelines are associated with this pull request. |
/azpw run Azure |
/AzurePipelines run Azure |
No pipelines are associated with this pull request. |
/azpw run Azure |
/AzurePipelines run Azure |
No pipelines are associated with this pull request. |
/azpw run Azure.sonic-swss-common |
/AzurePipelines run Azure.sonic-swss-common |
Azure Pipelines successfully started running 1 pipeline(s). |
/azpw run Azure.sonic-swss-common |
/AzurePipelines run Azure.sonic-swss-common |
Azure Pipelines successfully started running 1 pipeline(s). |
#define STATE_PAC_PORT_OPER_TABLE "PAC_PORT_OPER_TABLE" | ||
#define STATE_PAC_AUTHENTICATED_CLIENT_OPER_TABLE "PAC_AUTHENTICATED_CLIENT_OPER_TABLE" | ||
#define STATE_OPER_VLAN_TABLE_NAME "OPER_VLAN" | ||
#define STATE_OPER_VLAN_MEMBER_TABLE_NAME "OPER_VLAN_MEMBER" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Wouldn't it be better to name it STATE_PAC_OPER_VLAN_TABLE_NAME? to allow for easier identification. same of actual name, something like PAC_OPER_VLAN
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
#define STATE_OPER_VLAN_TABLE_NAME "OPER_VLAN"
#define STATE_OPER_VLAN_MEMBER_TABLE_NAME "OPER_VLAN_MEMBER"
The purpose of these two tables is to create VLANs and VLAN memberships dynamically. As of now the PAC is only one, which is creating dynamic VLAN memberships. But in future any other component can use these tables and create the dynamic VLANs and dynamic membership functionality. Hence the PAC key word is not present , for these tables.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for your response, good to know
To all sonic-swss-common repo maintainer @qiluo-msft @liuh-80 @msosyak @marian-pritsak @mint570, code PR has been approved by PENS WG members, please help merge. The feature is targeted for 202411 |
@@ -465,6 +467,11 @@ namespace swss { | |||
|
|||
#define CFG_SUPPRESS_ASIC_SDK_HEALTH_EVENT_NAME "SUPPRESS_ASIC_SDK_HEALTH_EVENT" | |||
|
|||
#define CFG_PAC_PORT_CONFIG_TABLE "PAC_PORT_CONFIG_TABLE" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why I did it
Added below tables to support PAC functionality.
#define APP_PAC_PORT_TABLE_NAME "PAC_PORT_TABLE"
#define CFG_PAC_PORT_CONFIG_TABLE "PAC_PORT_CONFIG_TABLE"
#define CFG_PAC_GLOBAL_CONFIG_TABLE "PAC_GLOBAL_CONFIG_TABLE"
#define CFG_PAC_HOSTAPD_GLOBAL_CONFIG_TABLE "HOSTAPD_GLOBAL_CONFIG_TABLE"
#define STATE_PAC_GLOBAL_OPER_TABLE "PAC_GLOBAL_OPER_TABLE"
#define STATE_PAC_PORT_OPER_TABLE "PAC_PORT_OPER_TABLE"
#define STATE_PAC_AUTHENTICATED_CLIENT_OPER_TABLE "PAC_AUTHENTICATED_CLIENT_OPER_TABLE"
#define STATE_OPER_VLAN_TABLE_NAME "OPER_VLAN"
#define STATE_OPER_VLAN_MEMBER_TABLE_NAME "OPER_VLAN_MEMBER"
#define STATE_OPER_FDB_TABLE_NAME "OPER_FDB"
#define STATE_OPER_PORT_TABLE_NAME "OPER_PORT"
How I did it
How to verify it