Athena safepower_agent: Add tray_power_cycle action
This uses the same command as S4 for powercycling the entire tray.
PiperOrigin-RevId: 741258404
Change-Id: I6544e7d20a97b9a0e0adb4e640027947abb828a2
diff --git a/bmc/machine_configs/athena.textproto b/bmc/machine_configs/athena.textproto
index 7ab88a2..3139d4f 100644
--- a/bmc/machine_configs/athena.textproto
+++ b/bmc/machine_configs/athena.textproto
@@ -123,3 +123,17 @@
port: 80
}
}
+
+action_configs {
+ action_name: "tray_power_cycle"
+ action {
+ action_type: ACTION_TYPE_CYCLE
+ action_severity: ACTION_SEVERITY_FORCE
+ }
+ redfish {
+ uri: "/redfish/v1/Chassis/Athena/Actions/Chassis.Reset"
+ json_body: "{\"ResetType\" : \"PowerCycle\"}"
+ ip: "127.0.0.1"
+ port: 80
+ }
+}