-
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
[SmartSwitch] Extend reboot script for rebooting SmartSwitch #3566
base: master
Are you sure you want to change the base?
Conversation
460146c
to
c72fbc0
Compare
8746356
to
d6fc624
Compare
For reboot, is it also possible to check the CONFIG_DB entry for the admin state for the DPUs? if the CONFIG_DB entry is missing or set to down, then we do not need to reboot the DPUs at all |
Co-authored-by: Gagan Punathil Ellath <[email protected]>
Co-authored-by: Gagan Punathil Ellath <[email protected]>
Instantiate ModuleHelper() before calling its functions
General question, When we perform |
Increase code coverage as well.
@gpunathilell, Yes, this is a good catch. we should not proceed with other steps, if only a single DPU reboot is requested. Modified the code. Thank you! |
- Use SysLogger instead of Logger - Fix the return type of get_num_dpus() and get_dpu_list()
@prgeor please help review and merge, if no other changes needed. |
What I did
Extended reboot script for SmartSwitch cases to reboot entire SmartSwitch or a specific DPU
How I did it
Implemented changes according to https://github.com/sonic-net/SONiC/blob/605c3a56ac2717dbbb638433e7bb13054fc05a31/doc/smart-switch/reboot/reboot-hld.md
How to verify it
Previous command output (if the output of a command-line utility has changed)
New command output (if the output of a command-line utility has changed)