-
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 stacking implementation #2372
base: master
Are you sure you want to change the base?
Conversation
@venkatmahalingam , please review |
@@ -0,0 +1,199 @@ | |||
import pytest |
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.
@prabhataravind , please review the test/cleanup
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.
Test/cleanup Looks good to me!
/easycla |
goto vlan_stacking_parse_failed; | ||
} | ||
|
||
if (s_vlan_priority < 0 || s_vlan_priority > 7) |
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.
s_vlan_priority is unsigned int. It cant be "< 0". Need to relook at this check?
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.
BTW 0xFF is a valid value right?
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.
no, 0xFF is not valid value
sai_object_id_t port_oid = port.m_type == Port::PHY ? port.m_port_id : port.m_lag_id; | ||
VlanStackKey stack_key = { port_oid, (uint16_t)to_uint<uint16_t>(s_vlanid) }; | ||
|
||
task_status = deleteVlanStackEntry(stack_key); |
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 a delete is issued before Adding the Stacking Entry?
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.
To make modify action easy, so use remove and add to support update
What I did
Implemented the VLAN stacking.
Why I did it
N/A
How I verified it
Verified using vs tests.
Details if related
No.