Fix power operations as per DMTF redfish spec
[Problem Description]:
1) Power Operations page uses "Orderly" and "Immediate" strings
for "Graceful reboot/shutdown" and "Force reboot/shutdown".
These names do not align according to redfish spec and causes
user confusion.
2) For boot settings, if "BootSourceOverrideEnabled" flag is false,
WebUI allows to modify boot options.
[Changes]:
1) Changed reboot/shutdown naming convention as per DMTF redfish spec
to view correct names on WebUI.
2) Added info-tooltip to give detailed information on Reboot/Shutdown
options.
Information is referenced from:
https://redfish.dmtf.org/schemas/v1/Resource.json#/definitions/ResetType
3) Added "oneTimeBootEnabled" condition check to render BootSettings if
condition is true. "oneTimeBootEnabled" checks BootSourceOverrideEnabled
flag, if true then BootSettings will be able to modify boot options.
[Testing]:
1) Load WebUI with the changes and go to Power operations page.
2) Check reboot shutdown names have changes to Graceful
reboot/shutdown" and "Force reboot/shutdown".
3) Check if BootSettings template renders as expected.
Change-Id: I5a86e05ee03167ebb93ffd381af3a47c277990fd
Signed-off-by: Shubhi Garg <shgarg@nvidia.com>
diff --git a/src/locales/en-US.json b/src/locales/en-US.json
index bd82066..52e04e4 100644
--- a/src/locales/en-US.json
+++ b/src/locales/en-US.json
@@ -883,14 +883,18 @@
"currentStatus": "Current status",
"serverBootSettings": "Boot settings",
"serverStatus": "Server status",
- "immediateReboot": "Immediate – Server reboots without operating system shutting down; may cause data corruption",
- "immediateShutdown": "Immediate - Server shuts down without operating system shutting down; may cause data corruption",
"lastPowerOperation": "Last power operation",
"oneTimeBootWarning": "Pending one time boot. Next boot will be performed with the specified one time boot settings. Subsequent boots will be performed with the default settings.",
"operationInProgress": "There are no options to display while a power operation is in progress. When complete, power operations will be displayed here.",
"operations": "Operations",
- "orderlyReboot": "Orderly – operating system shuts down, then server reboots",
- "orderlyShutdown": "Orderly - operating system shuts down, then server shuts down",
+ "forceRestart": "Force Restart",
+ "forceRestartInfo": "Shut down immediately and non-gracefully and restart the unit",
+ "forceOff": "Force Off",
+ "forceOffInfo": "Turn off the unit immediately (non-graceful shutdown)",
+ "gracefulRestart": "Graceful Restart",
+ "gracefulRestartInfo": "Shut down gracefully and restart the unit",
+ "gracefulShutdown": "Graceful Shutdown",
+ "gracefulShutdownInfo": "Shut down gracefully and power off",
"powerOn": "Power on",
"reboot": "Reboot",
"rebootServer": "Reboot server",