-
Notifications
You must be signed in to change notification settings - Fork 666
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
[multi-ASIC] CRM show/config commands changes for multi-asic #1127
Conversation
please add unit test accordingly. |
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.
add unit test accordingly.
@lguohan, Have added the unit tests for both single asic and multi-aisc scenarios , Could you take a look ?
retest this please |
1 similar comment
retest this please |
Thanks Joe , @prsunny please take a look ! |
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, please provide a sample output of single ASIC
Thanks Prince, updated the output of single ASIC device as well in the PR description.
crm/main.py 310 39 0 87% i can still see some function not covered. can you cover those? improve to 95%+? |
Added more unit tests, the coverage now stands at |
retest this please |
49cd91d (HEAD -> 201911, origin/201911) Feature table cli command update (sonic-net#1271) 167d67a [201911] CRM show/config commands changes for multi-asic (sonic-net#1127) (sonic-net#1236) Signed-off-by: Abhishek Dosi <[email protected]>
- What I did
Updated the CRM show/config commands to handle the multi-ASIC platforms.
- How I did it
The threshold setting configured by user is programmed in the CONFIG_DB in all the namespaces. While displaying the thresholds, it is retrieved from the database docker in case of single asic, and from the first namespace docker eg: database0 in case of multi-asic platforms.
The other resources are retrieved from the databases in the respective namespaces and displayed with the additional ASIC name header.
- How to verify it
Verified on the single and multi-asic devices.
- Previous command output (if the output of a command-line utility has changed)
There is no change to the earlier commands in single ASIC. In multi ASIC there will be multiple rows with ASIC name as part of the header.
- New command output (if the output of a command-line utility has changed)