-
Notifications
You must be signed in to change notification settings - Fork 558
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
[Vlan]: Added SWSS support to handle new vlan cli OPTIONAL command #1329
Conversation
…lan type - data/mananagement/control). PR : sonic-net/sonic-utilities#956 Purpose is to identify the vlan type. This is optional configuration. If not set, it will be treated as regular ("data") vlan (current behavior). Note: SAI PR is separately raised and not merged. Meanwhile, we have hard-coded the values. This can be fixed once SAI PR is merged. Signed-off-by: Rajkumar Pennadam Ramamoorthy <rpennadamram@marvell.com>
orchagent/portsorch.cpp
Outdated
* 2 = control | ||
* Change this code once attribute and enums introduced in saivlan.h | ||
* */ | ||
if(vlan_type != "") |
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.
Add a space after if
and all cases down.
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.
Done
* */ | ||
if(vlan_type != "") | ||
{ | ||
attr.id = SAI_VLAN_ATTR_META_DATA; |
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.
What are the attributes here? Do you have a pointer to SAI proposal?. If it is not yet approved in SAI community, it will be too early for this changes.
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.
SAI proposal can be found in PR, opencomputeproject/SAI#1097
Note these changes will not impact current behavior and the new commands introduced are OPTIONAL.
…lan type - data/mananagement/control). PR : sonic-net/sonic-utilities#956 Purpose is to identify the vlan type. This is optional configuration. If not set, it will be treated as regular ("data") vlan (current behavior). Note: SAI PR is separately raised and not merged. Meanwhile, we have hard-coded the values. This can be fixed once SAI PR is merged. Signed-off-by: Rajkumar Pennadam Ramamoorthy <rpennadamram@marvell.com>
vlan type - data/mananagement/control
PR : sonic-net/sonic-utilities#956
Purpose is to identify the vlan type. This is optional configuration.
If not set, it will be treated as regular ("data") vlan (current behavior).
Note: SAI PR is separately raised and not merged.
Meanwhile, we have hard-coded the values. This can be fixed once SAI PR is merged.
Signed-off-by: Rajkumar Pennadam Ramamoorthy rpennadamram@marvell.com
What I did
Added SWSS support for new vlan enhancement. type - management/control
Why I did it
We have a use-case to differentiate managament and control traffic from regular data-traffic in data path.
How I verified it
configure the command from cli. Check CONFIG_DB,APP_DB and ASIC_DB for "vlan_type" value.
Details if related
Details of CLI command can be found in PR, sonic-net/sonic-utilities#956