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

[Vlan]: Added SWSS support to handle new vlan cli OPTIONAL command #1329

Closed
wants to merge 2 commits into from
Closed

Conversation

rajkumar38
Copy link
Contributor

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

…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>
* 2 = control
* Change this code once attribute and enums introduced in saivlan.h
* */
if(vlan_type != "")
Copy link
Collaborator

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.

Copy link
Contributor Author

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;
Copy link
Collaborator

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.

Copy link
Contributor Author

@rajkumar38 rajkumar38 Jun 23, 2020

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>
@rajkumar38 rajkumar38 requested a review from prsunny June 23, 2020 14:55
@rajkumar38 rajkumar38 closed this by deleting the head repository Feb 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants