-
Notifications
You must be signed in to change notification settings - Fork 662
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
[CRM][DASH] Extend CRM utility to support DASH resources. #2800
Conversation
Signed-off-by: Oleksandr Ivantsiv <[email protected]>
@prsunny kindly reminder to review PR. |
@oleksandrivantsiv , can you please update description with old and new command? Any change to existing command on non-dash platforms by introducing this? |
@prsunny description is updated. The existing commands are not affected. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
Update sonic-utilities submodule pointer to include the following: * 5c9b2177 Fix issue: out of range sflow polling interval is accepted and stored in config_db ([sonic-net#2847](sonic-net/sonic-utilities#2847)) * 72ca4848 Add CLI configuration options for teamd retry count feature ([sonic-net#2642](sonic-net/sonic-utilities#2642)) * 359dfc0c [Clock] Implement clock CLI ([sonic-net#2793](sonic-net/sonic-utilities#2793)) * b316fc27 Add transceiver status CLI to show output from TRANSCEIVER_STATUS table ([sonic-net#2772](sonic-net/sonic-utilities#2772)) * dc59dbd2 Replace pickle by json ([sonic-net#2849](sonic-net/sonic-utilities#2849)) * a66f41c4 [show] replace shell=True, replace xml by lxml, replace exit by sys.exit ([sonic-net#2666](sonic-net/sonic-utilities#2666)) * 57500572 [utilities_common] replace shell=True ([sonic-net#2718](sonic-net/sonic-utilities#2718)) * 6e0ee3e7 [CRM][DASH] Extend CRM utility to support DASH resources. ([sonic-net#2800](sonic-net/sonic-utilities#2800)) * b2c29b0b [config] Generate sysinfo in single asic ([sonic-net#2856](sonic-net/sonic-utilities#2856)) Signed-off-by: dprital <[email protected]>
…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 72ca4848 (HEAD -> master, upstream/master, upstream/HEAD) Add CLI configuration options for teamd retry count feature (sonic-net/sonic-utilities#2642) 359dfc0c [Clock] Implement clock CLI (sonic-net/sonic-utilities#2793) b316fc27 Add transceiver status CLI to show output from TRANSCEIVER_STATUS table (sonic-net/sonic-utilities#2772) dc59dbd2 Replace pickle by json (sonic-net/sonic-utilities#2849) a66f41c4 [show] replace shell=True, replace xml by lxml, replace exit by sys.exit (sonic-net/sonic-utilities#2666) 57500572 [utilities_common] replace shell=True (sonic-net/sonic-utilities#2718) 6e0ee3e7 [CRM][DASH] Extend CRM utility to support DASH resources. (sonic-net/sonic-utilities#2800) b2c29b0b [config] Generate sysinfo in single asic (sonic-net/sonic-utilities#2856)
…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]>
…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 72ca4848 (HEAD -> master, upstream/master, upstream/HEAD) Add CLI configuration options for teamd retry count feature (sonic-net/sonic-utilities#2642) 359dfc0c [Clock] Implement clock CLI (sonic-net/sonic-utilities#2793) b316fc27 Add transceiver status CLI to show output from TRANSCEIVER_STATUS table (sonic-net/sonic-utilities#2772) dc59dbd2 Replace pickle by json (sonic-net/sonic-utilities#2849) a66f41c4 [show] replace shell=True, replace xml by lxml, replace exit by sys.exit (sonic-net/sonic-utilities#2666) 57500572 [utilities_common] replace shell=True (sonic-net/sonic-utilities#2718) 6e0ee3e7 [CRM][DASH] Extend CRM utility to support DASH resources. (sonic-net/sonic-utilities#2800) b2c29b0b [config] Generate sysinfo in single asic (sonic-net/sonic-utilities#2856)
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
crm show
show thresholds all
show resources all