-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Support both port name and alias in ACL table AttachTo
attribute
#13444
Merged
yxieca
merged 5 commits into
sonic-net:master
from
bingwang-ms:acl_bind_to_port_name_enhance
Jan 20, 2023
Merged
Support both port name and alias in ACL table AttachTo
attribute
#13444
yxieca
merged 5 commits into
sonic-net:master
from
bingwang-ms:acl_bind_to_port_name_enhance
Jan 20, 2023
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
yxieca
approved these changes
Jan 19, 2023
Blueve
approved these changes
Jan 20, 2023
bingwang-ms
force-pushed
the
acl_bind_to_port_name_enhance
branch
from
January 20, 2023 06:44
822cf42
to
b10bf97
Compare
mssonicbld
pushed a commit
to mssonicbld/sonic-buildimage
that referenced
this pull request
Jan 20, 2023
…onic-net#13444) Why I did it This PR is an enhancement of PR sonic-net#13105 Because the input string of AttachTo for ACL table can appear in both port name group and port alias group, I added a logic to determine whether the string should be port name or port alias If all the input strings belong to port name group, then we treat all of them as port name If all the input strings belong to port alias, then we treat all of them as port alias If all the input string belongs to both port alias group and port name group, we prefer port alias. The behavior is as before. How I did it Walk through all port names/alias in the input to make a decision. How to verify it Verified by adding UT.
Cherry-pick PR to 202205: #13451 |
bingwang-ms
added a commit
to bingwang-ms/sonic-buildimage
that referenced
this pull request
Jan 20, 2023
…onic-net#13444) Why I did it This PR is an enhancement of PR sonic-net#13105 Because the input string of AttachTo for ACL table can appear in both port name group and port alias group, I added a logic to determine whether the string should be port name or port alias If all the input strings belong to port name group, then we treat all of them as port name If all the input strings belong to port alias, then we treat all of them as port alias If all the input string belongs to both port alias group and port name group, we prefer port alias. The behavior is as before. How I did it Walk through all port names/alias in the input to make a decision. How to verify it Verified by adding UT.
mssonicbld
added a commit
that referenced
this pull request
Jan 20, 2023
8 tasks
mlok-nokia
pushed a commit
to mlok-nokia/sonic-buildimage
that referenced
this pull request
Jan 26, 2023
…onic-net#13444) Why I did it This PR is an enhancement of PR sonic-net#13105 Because the input string of AttachTo for ACL table can appear in both port name group and port alias group, I added a logic to determine whether the string should be port name or port alias If all the input strings belong to port name group, then we treat all of them as port name If all the input strings belong to port alias, then we treat all of them as port alias If all the input string belongs to both port alias group and port name group, we prefer port alias. The behavior is as before. How I did it Walk through all port names/alias in the input to make a decision. How to verify it Verified by adding UT.
mssonicbld
pushed a commit
to mssonicbld/sonic-buildimage
that referenced
this pull request
Feb 6, 2023
…onic-net#13444) Why I did it This PR is an enhancement of PR sonic-net#13105 Because the input string of AttachTo for ACL table can appear in both port name group and port alias group, I added a logic to determine whether the string should be port name or port alias If all the input strings belong to port name group, then we treat all of them as port name If all the input strings belong to port alias, then we treat all of them as port alias If all the input string belongs to both port alias group and port name group, we prefer port alias. The behavior is as before. How I did it Walk through all port names/alias in the input to make a decision. How to verify it Verified by adding UT.
Cherry-pick PR to 202211: #13678 |
mssonicbld
pushed a commit
that referenced
this pull request
Feb 7, 2023
…13444) Why I did it This PR is an enhancement of PR #13105 Because the input string of AttachTo for ACL table can appear in both port name group and port alias group, I added a logic to determine whether the string should be port name or port alias If all the input strings belong to port name group, then we treat all of them as port name If all the input strings belong to port alias, then we treat all of them as port alias If all the input string belongs to both port alias group and port name group, we prefer port alias. The behavior is as before. How I did it Walk through all port names/alias in the input to make a decision. How to verify it Verified by adding UT.
mssonicbld
added
Included in 202211 Branch
and removed
Approved for 202211 Branch
labels
Feb 7, 2023
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Why I did it
This PR is an enhancement of PR #13105
Because the input string of
AttachTo
for ACL table can appear in both port name group and port alias group, I added a logic to determine whether the string should be port name or port aliasHow I did it
Walk through all port names/alias in the input to make a decision.
How to verify it
Verified by adding UT.
Which release branch to backport (provide reason below if selected)
Description for the changelog
Support both port name and alias in ACL table
AttachTo
attribute.Ensure to add label/tag for the feature raised. example - PR#2174 under sonic-utilities repo. where, Generic Config and Update feature has been labelled as GCU.
Link to config_db schema for YANG module changes
A picture of a cute animal (not mandatory but encouraged)