[CRM][DASH] Extend CRM utility to support DASH resources.#2800
Merged
liat-grozovik merged 1 commit intosonic-net:masterfrom May 31, 2023
Merged
[CRM][DASH] Extend CRM utility to support DASH resources.#2800liat-grozovik merged 1 commit intosonic-net:masterfrom
liat-grozovik merged 1 commit intosonic-net:masterfrom
Conversation
Signed-off-by: Oleksandr Ivantsiv <[email protected]>
Collaborator
Author
|
@prsunny kindly reminder to review PR. |
Yakiv-Huryk
approved these changes
May 30, 2023
Contributor
|
@oleksandrivantsiv , can you please update description with old and new command? Any change to existing command on non-dash platforms by introducing this? |
Collaborator
Author
@prsunny description is updated. The existing commands are not affected. |
dgsudharsan
approved these changes
May 30, 2023
10 tasks
dprital
added a commit
to dprital/sonic-buildimage
that referenced
this pull request
Jun 5, 2023
Update sonic-utilities submodule pointer to include the following: * 5c9b217 Fix issue: out of range sflow polling interval is accepted and stored in config_db ([sonic-net#2847](sonic-net/sonic-utilities#2847)) * 72ca484 Add CLI configuration options for teamd retry count feature ([sonic-net#2642](sonic-net/sonic-utilities#2642)) * 359dfc0 [Clock] Implement clock CLI ([sonic-net#2793](sonic-net/sonic-utilities#2793)) * b316fc2 Add transceiver status CLI to show output from TRANSCEIVER_STATUS table ([sonic-net#2772](sonic-net/sonic-utilities#2772)) * dc59dbd Replace pickle by json ([sonic-net#2849](sonic-net/sonic-utilities#2849)) * a66f41c [show] replace shell=True, replace xml by lxml, replace exit by sys.exit ([sonic-net#2666](sonic-net/sonic-utilities#2666)) * 5750057 [utilities_common] replace shell=True ([sonic-net#2718](sonic-net/sonic-utilities#2718)) * 6e0ee3e [CRM][DASH] Extend CRM utility to support DASH resources. ([sonic-net#2800](sonic-net/sonic-utilities#2800)) * b2c29b0 [config] Generate sysinfo in single asic ([sonic-net#2856](sonic-net/sonic-utilities#2856)) Signed-off-by: dprital <[email protected]>
10 tasks
StormLiangMS
pushed a commit
to sonic-net/sonic-buildimage
that referenced
this pull request
Jun 5, 2023
…nic-utilities submodule on master (#15193) Dependency: sonic-net/sonic-utilities#2718 Why I did it This PR sonic-net/sonic-utilities#2718 reduce shell=True usage in utilities_common.cli.run_command() function. Work item tracking Microsoft ADO (number only): 15022050 How I did it Replace strings commands using utilities_common.cli.run_command() function to list of strings due to circular dependency, advance sonic-utilities submodule 72ca484 (HEAD -> master, upstream/master, upstream/HEAD) Add CLI configuration options for teamd retry count feature (sonic-net/sonic-utilities#2642) 359dfc0 [Clock] Implement clock CLI (sonic-net/sonic-utilities#2793) b316fc2 Add transceiver status CLI to show output from TRANSCEIVER_STATUS table (sonic-net/sonic-utilities#2772) dc59dbd Replace pickle by json (sonic-net/sonic-utilities#2849) a66f41c [show] replace shell=True, replace xml by lxml, replace exit by sys.exit (sonic-net/sonic-utilities#2666) 5750057 [utilities_common] replace shell=True (sonic-net/sonic-utilities#2718) 6e0ee3e [CRM][DASH] Extend CRM utility to support DASH resources. (sonic-net/sonic-utilities#2800) b2c29b0 [config] Generate sysinfo in single asic (sonic-net/sonic-utilities#2856)
pdhruv-marvell
pushed a commit
to pdhruv-marvell/sonic-utilities
that referenced
this pull request
Aug 23, 2023
…2800) - What I did Extend CRM utility to support DASH resources. - How I did it Add "dash" sub-group to "crm config" and "crm show" commands. "dash" sub-group will be available for the user only if SONiC runs on the DPU. - How to verify it Compile sonic-utilities package. The tests will run automatically. To cover dash-related functionality new test tests/crm_dash_test.py was added. Code coverage is the following: crm/dash_config.py - 99% crm/dash_show.py - 98% crm/main.py - 92% - Previous command output (if the output of a command-line utility has changed) The existing commands are not affected. - New command output (if the output of a command-line utility has changed) crm config thresholds dash [vnet|eni|eni-ether-address] type [percentage|used|count] thresholds dash [vnet|eni|eni-ether-address] [low|high] thresholds dash [ipv4|ipv6] [inbound|outbound] routing type [percentage|used|count] thresholds dash [ipv4|ipv6] [inbound|outbound] routing [low|high] thresholds dash [ipv4|ipv6] pa-validation [percentage|used|count] thresholds dash [ipv4|ipv6] pa-validation [low|high] thresholds dash [ipv4|ipv6] outbound ca-to-pa [percentage|used|count] thresholds dash [ipv4|ipv6] outbound ca-to-pa [low|high] thresholds dash [ipv4|ipv6] acl group [percentage|used|count] thresholds dash [ipv4|ipv6] acl group [low|high] thresholds dash [ipv4|ipv6] acl rule [percentage|used|count] thresholds dash [ipv4|ipv6] acl rule [low|high] crm show [resources|thresholds] dash [vnet|eni|eni-ether-address] [resources|thresholds] dash [ipv4|ipv6] [inbound|outbound] routing [resources|thresholds] dash [ipv4|ipv6] pa-validation [resources|thresholds] dash [ipv4|ipv6] outbound ca-to-pa [resources|thresholds] dash [ipv4|ipv6] acl group [resources|thresholds] dash [ipv4|ipv6] acl rule show thresholds all show resources all Signed-off-by: Oleksandr Ivantsiv <[email protected]>
sonic-otn
pushed a commit
to sonic-otn/sonic-buildimage
that referenced
this pull request
Sep 20, 2023
…nic-utilities submodule on master (sonic-net#15193) Dependency: sonic-net/sonic-utilities#2718 Why I did it This PR sonic-net/sonic-utilities#2718 reduce shell=True usage in utilities_common.cli.run_command() function. Work item tracking Microsoft ADO (number only): 15022050 How I did it Replace strings commands using utilities_common.cli.run_command() function to list of strings due to circular dependency, advance sonic-utilities submodule 72ca484 (HEAD -> master, upstream/master, upstream/HEAD) Add CLI configuration options for teamd retry count feature (sonic-net/sonic-utilities#2642) 359dfc0 [Clock] Implement clock CLI (sonic-net/sonic-utilities#2793) b316fc2 Add transceiver status CLI to show output from TRANSCEIVER_STATUS table (sonic-net/sonic-utilities#2772) dc59dbd Replace pickle by json (sonic-net/sonic-utilities#2849) a66f41c [show] replace shell=True, replace xml by lxml, replace exit by sys.exit (sonic-net/sonic-utilities#2666) 5750057 [utilities_common] replace shell=True (sonic-net/sonic-utilities#2718) 6e0ee3e [CRM][DASH] Extend CRM utility to support DASH resources. (sonic-net/sonic-utilities#2800) b2c29b0 [config] Generate sysinfo in single asic (sonic-net/sonic-utilities#2856)
This file contains hidden or 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
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.
What I did
Extend CRM utility to support DASH resources.
How I did it
Add "dash" sub-group to "crm config" and "crm show" commands.
"dash" sub-group will be available for the user only if SONiC runs on the DPU.
How to verify it
Compile sonic-utilities package. The tests will run automatically.
To cover dash-related functionality new test
tests/crm_dash_test.pywas added.Code coverage is the following:
crm/dash_config.py - 99%
crm/dash_show.py - 98%
crm/main.py - 92%
Previous command output (if the output of a command-line utility has changed)
The existing commands are not affected.
New command output (if the output of a command-line utility has changed)
crm config
crm show
show thresholds all
show resources all