Add power restore policy page
- This page will show how the system boots once power
is restored after a power disturbance.
- API used to fetch the JSON:
/redfish/v1/JsonSchemas/ComputerSystem/ComputerSystem.json
- API used to fetch the current policy and to save updated policy:
/redfish/v1/Systems/system/
Signed-off-by: Sukanya Pandey <sukapan1@in.ibm.com>
Change-Id: I203bd3c5d26071b882cce6b9950cdb3fb1deb212
diff --git a/src/locales/en-US.json b/src/locales/en-US.json
index 1f68d5c..ed2495c 100644
--- a/src/locales/en-US.json
+++ b/src/locales/en-US.json
@@ -111,6 +111,7 @@
"networkSettings": "@:appPageTitle.networkSettings",
"overview": "@:appPageTitle.overview",
"primaryNavigation": "Primary navigation",
+ "powerRestorePolicy": "@:appPageTitle.powerRestorePolicy",
"rebootBmc": "@:appPageTitle.rebootBmc",
"securitySettings": "@:appPageTitle.securitySettings",
"sensors": "@:appPageTitle.sensors",
@@ -137,6 +138,7 @@
"networkSettings": "Network settings",
"overview": "Overview",
"pageNotFound": "Page not found",
+ "powerRestorePolicy": "Power restore policy",
"profileSettings": "Profile settings",
"rebootBmc": "Reboot BMC",
"securitySettings": "Security settings",
@@ -592,6 +594,20 @@
"pagePageNotFound": {
"description": "The requested resource could not be found."
},
+ "pagePowerRestorePolicy": {
+ "currentPolicy": "Current Policy",
+ "description": "Configure power policy to determine how the system starts after a power disturbance.",
+ "powerPoliciesLabel": "Power restore policies",
+ "policies" :{
+ "AlwaysOn": "Always on",
+ "AlwaysOff": "Always off",
+ "LastState": "Last state"
+ },
+ "toast": {
+ "errorSaveSettings": "Error saving settings.",
+ "successSaveSettings": "Power restore policy updated successfully."
+ }
+ },
"pageRebootBmc": {
"lastReboot": "Last BMC reboot",
"rebootBmc": "Reboot BMC",