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

[dvs] Refactor acl_ctrl and acl_egress to use dvslib #1416

Merged
merged 1 commit into from
Sep 8, 2020

Conversation

daall
Copy link
Contributor

@daall daall commented Aug 25, 2020

Signed-off-by: Danny Allen daall@microsoft.com

What I did
Refactored acl_cntrl and acl_egress to use dvslib.

Why I did it
Both test files were huge and contained a lot of duplicate code that has since been added to dvs_acl.

How I verified it
Re-ran tests locally.

Details if related
acl_mclag and acl_portchannel are a little trickier to refactor as 1) all of the ACL code is currently hard-coded to assume physical ports only and 2) dvs_acl doesn't really touch app DB at all. These will both require broader changes to be onboarded to dvslib, so better left for another PR.

Additionally, all of the MIRROR table tests are also huge, so those are being saved for another PR.

Signed-off-by: Danny Allen <daall@microsoft.com>
@lgtm-com
Copy link

lgtm-com bot commented Aug 25, 2020

This pull request fixes 2 alerts when merging 5af70df into e6fda33 - view on LGTM.com

fixed alerts:

  • 2 for Unused import

@daall daall merged commit 842f126 into sonic-net:master Sep 8, 2020
@daall daall deleted the acl_refactor branch September 8, 2020 23:22
EdenGri pushed a commit to EdenGri/sonic-swss that referenced this pull request Feb 28, 2022
sonic-net#1416)

- Enhance `psushow -s` output, adding columns to display PSU Model, Serial, Voltage, Current and Power
- Add `-j/--json` option to display output in JSON format
- Update mock State DB PSU_INFO table to provide values which we can ensure floats are padded to two decimal places in tabular display mode
- Add `--json` option to `show platform psustatus` which in turn adds the `-j` flag to the underlying `psushow` call
- Add unit tests for `psushow` in psushow_test.py
- Add more unit tests for `show platform psustatus` and move to show_platform_test.py
oleksandrivantsiv pushed a commit to oleksandrivantsiv/sonic-swss that referenced this pull request Mar 1, 2023
Update SAI submodule v1.9 with the following fixes

7594e53 (HEAD, origin/v1.9) Skip brcm teardown assertion (sonic-net#1423) (sonic-net#1428)
0c33f4a [FIX]Fix the circular reference issue when build sai header py (sonic-net#1427)
7e0fc24 Add support for building under Doxygen 1.9.1 (sonic-net#1414) (sonic-net#1424)
8ecf3ef [Fix]Correct enum check on branch 1.9 (sonic-net#1418)
e2b2f39 Add Thrift 0.14.1 compatibility (sonic-net#1403) (sonic-net#1416)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants