[aclorch]: add support for acl rule to match out port#810
[aclorch]: add support for acl rule to match out port#810lguohan merged 7 commits intosonic-net:masterfrom
Conversation
pull from origin
orchagent/aclorch.cpp
Outdated
| } | ||
| else if (port.m_type == Port::LAG) | ||
| { | ||
| m_outPorts.push_back(port.m_lag_id); |
There was a problem hiding this comment.
does not match SAI spec.
https://github.com/opencomputeproject/SAI/blob/master/inc/saiacl.h#L1260
same as above.
* Aclorch can be the consumer of the APP_ACL_TABLE_NAME and APP_ACL_RULE_TABLE_NAME tables in APP_DB * ACL rule can match out port Signed-off-by: shine.chen <shine.chen@nephosinc.com>
Signed-off-by: leo.li <leo.li@nephosinc.com>
|
The corresponding VS test case has been added, please review. |
Signed-off-by: shine.chen <shine.chen@nephosinc.com>
|
could you resolve the conflicts? |
Signed-off-by: shine.chen <shine.chen@nephosinc.com>
|
@stcheng we have fixed the conflicts. |
|
where is the mclag design spec? since out_ports match are not supported in various asic vendor. we need a more generic approach to address this need. |
|
@lguohan we have discuss it with BRCM folks in sonic-mclag-subgroup. There is a workaround in SAI layer by combination of ingress acl and egress acl. With this workaround most vendors can support out-ports. The following is the isolation logic description copied from MCLAG-HLD
|
|
unless Broadcom SAI as well as other vendor SAI has implemented outPorts, merging this PR will immediately break the image. |
|
isolation group is much more generic and different ASIC can choose different way to implement. Not all ASIC verdors have the same workaround as broadcom. I do not see a reason why we cannot add LAG into isolation group, it is a simple metadata change. |
|
@lguohan Thanks for the feedback. The following is my answer for your concern.
|
|
BRCM will implement an isolation group solution for ingress filtering instead of outPorts, pkts will be dropped at the ingress instead of queueing for egress drop. Design proposal along with other MCLAG improvements will be shared in the upcoming BRCM enhancement HLD. |
adyeung
left a comment
There was a problem hiding this comment.
BRCM team has completed the review, we have no further request or comment to add, please proceed to the next steps.
|
retest this please |
1 similar comment
|
retest this please |
merge azure/sonic-swss to aclorch branch
Signed-off-by: shine.chen <shine.chen@mediatek.com>
|
retest this please |
3 similar comments
|
retest this please |
|
retest this please |
|
retest this please |
ACL rule can match out port. Out port could be port intf , lag or vlan. Signed-off-by: shine.chen <shine.chen@nephosinc.com>
…b-cli/sonic-db-dump (sonic-net#810) * [MultiDB] sonic-utilities - replace redis-cli/redis-dump with sonic-db-cli/sonic-db-dump * only accept upper and underscore to prevent injection * quotation on db_name
ACL rule can match out port. Out port could be port intf , lag or vlan. Signed-off-by: shine.chen <shine.chen@nephosinc.com>
…sonic-net#810) Fix binary serializer can't deserialize protopuf buffer content issue. #### Work item tracking Microsoft ADO (number only): 17753804 #### Why I did it Fix binary serializer can't deserialize protopuf buffer content issue. #### How I did it Fix code but when deserialize binary string. #### How to verify it Add UT. Pass all UT. #### Which release branch to backport (provide reason below if selected) <!-- - Note we only backport fixes to a release branch, *not* features! - Please also provide a reason for the backporting below. - e.g. - [x] 202006 --> - [ ] 201811 - [ ] 201911 - [ ] 202006 - [ ] 202012 - [ ] 202106 - [ ] 202111 #### Description for the changelog Fix binary serializer can't deserialize protopuf buffer content issue. #### Link to config_db schema for YANG module changes <!-- Provide a link to config_db schema for the table for which YANG model is defined Link should point to correct section on https://github.com/Azure/SONiC/wiki/Configuration. --> #### A picture of a cute animal (not mandatory but encouraged)
What I did
ACL rule can match out port. Out port could be port intf , lag or vlan.
Why I did it
mclag need acl rule can bind to LAG and acl rule can match out port.
How I verified it
test it on nephos lab
Details if related