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

Changes to support acl-loader and mirror-session config commands for multi-npu platforms. #908

Merged
merged 2 commits into from
May 13, 2020

Conversation

abdosi
Copy link
Contributor

@abdosi abdosi commented May 7, 2020

- What I did
Changes to support acl-loader and mirror session config commands for multi-npu platforms.
Also moved some of utility functions form config/main.py to sonic_device_util.py.
This PR is needed with:
sonic-net/sonic-buildimage#4559
- How I did it
updated the commands to check if multi-npu platform present then program per asic namespace also
- How to verify it
Verified for multi-npu platform

@abdosi abdosi requested review from jleveque, lguohan and daall May 7, 2020 00:29
acl_loader/main.py Show resolved Hide resolved
acl_loader/main.py Show resolved Hide resolved
acl_loader/main.py Show resolved Hide resolved
@abdosi abdosi force-pushed the multinpu-acl-uploader branch 2 times, most recently from 05dc81b to eba8329 Compare May 8, 2020 15:55
@abdosi abdosi requested a review from judyjoseph May 8, 2020 16:03
@abdosi abdosi marked this pull request as ready for review May 8, 2020 16:04
@abdosi abdosi changed the title Changes to support acl-loader command for multi-npu platforms. Changes to support acl-loader and mirror-session config commands for multi-npu platforms. May 8, 2020
jleveque
jleveque previously approved these changes May 8, 2020
@jleveque
Copy link
Contributor

jleveque commented May 8, 2020

Retest this please

judyjoseph
judyjoseph previously approved these changes May 10, 2020
Move multi-npu related utility functions from config/main.py
to sonic-device-util.py so that it can be used by acl-loader/any other
module.

Updated Mirror Session add/remove for multi-npu platforms.
Needed for Everflow ACL rule programming.
acl_loader/main.py Outdated Show resolved Hide resolved
@abdosi abdosi dismissed stale reviews from judyjoseph and jleveque via 727e9e7 May 11, 2020 23:35
@daall
Copy link
Contributor

daall commented May 12, 2020

@abdosi I would assume the CLI tests are failing because sonic-net/sonic-buildimage#4559 isn't merged yet, let's make sure that gets approved and merged first so we can confirm the utilities tests are working before merging this PR.

@abdosi
Copy link
Contributor Author

abdosi commented May 12, 2020

@abdosi I would assume the CLI tests are failing because Azure/sonic-buildimage#4559 isn't merged yet, let's make sure that gets approved and merged first so we can confirm the utilities tests are working before merging this PR.

@daall Yes this is dependent on sonic-net/sonic-buildimage#4559 and we will merge sonic-buildimage PR first and then this PR.

After this will have another PR for sonic-utilities submodule update in sonic-buildimage

@jleveque
Copy link
Contributor

Retest this please

@abdosi
Copy link
Contributor Author

abdosi commented May 13, 2020

retest this please

1 similar comment
@abdosi
Copy link
Contributor Author

abdosi commented May 13, 2020

retest this please

@abdosi abdosi merged commit ffd0bd1 into sonic-net:master May 13, 2020
@abdosi abdosi deleted the multinpu-acl-uploader branch May 13, 2020 23:32
abdosi added a commit that referenced this pull request May 20, 2020
…multi-npu platforms. (#908)

* Changes to support acl-loader command for multi-npu platforms.

Move multi-npu related utility functions from config/main.py
to sonic-device-util.py so that it can be used by acl-loader/any other
module.

Updated Mirror Session add/remove for multi-npu platforms.
Needed for Everflow ACL rule programming.

* Address review comment to change comment from """ to #
except for doc string
abdosi added a commit to abdosi/sonic-utilities that referenced this pull request Aug 4, 2020
…multi-npu platforms. (sonic-net#908)

* Changes to support acl-loader command for multi-npu platforms.

Move multi-npu related utility functions from config/main.py
to sonic-device-util.py so that it can be used by acl-loader/any other
module.

Updated Mirror Session add/remove for multi-npu platforms.
Needed for Everflow ACL rule programming.

* Address review comment to change comment from """ to #
except for doc string
stepanblyschak pushed a commit to stepanblyschak/sonic-utilities that referenced this pull request Apr 18, 2022
Update submodule sonic-sairedis that contains the following commit:

Change the log severity leve from ERROR to NOTICE if getStatus is not supported by vendor (sonic-net#908) (sonic-net#991)
stepanblyschak pushed a commit to stepanblyschak/sonic-utilities that referenced this pull request Apr 28, 2022
[201911][show] Fix abbreviations for 'show ip bgp ...' commands (sonic-net#909)
Changes to support acl-loader and mirror-session config commands for
multi-npu platforms. (sonic-net#908)
Changes to commands  config reload/load-minigraph (sonic-net#919)
Stop/Start restapi server upon config reload (sonic-net#911)
[config] Add 'interface transceiver' subgroup with 'lpmode' and
'reset' subcommands (sonic-net#904)
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.

4 participants