watchdog: Support setting an action
The IPMI spec defines actions which can be set at runtime that define
what action the watchdog will take when it expires. With this change our
watchdog daemon can be dynamically reconfigured to execute a target that
maps to the defined action.
The current list of actions maps directly from the IPMI spec. We don't
require that the list strictly adheres to the list in the spec, but this
is a good starting point since they are generic host actions. A commit
to phosphor-watchog will accompany this change in order to respect the
actions defined in this interface. This change defaults the action to
HardReset, which will ensure the behavior is consistent with previous
behavior regardless of updating the phosphor-host-ipmid.
Change-Id: I7b293394326652b292b4bd23950a7f947ece8306
Signed-off-by: William A. Kennington III <wak@google.com>
1 file changed