Add `FullPowerCycle` to Power commands (#9729)
* Add `FullPowerCycle` to Power commands * Add changelog fragment * Rename command * Fix line length for redfish_command optionspull/9733/head
parent
d756aeb6ce
commit
7af5e158b8
|
@ -0,0 +1,2 @@
|
||||||
|
minor_changes:
|
||||||
|
- redfish_command - add ``PowerFullPowerCycle`` to power command options (https://github.com/ansible-collections/community.general/pull/9729).
|
|
@ -1119,7 +1119,8 @@ class RedfishUtils(object):
|
||||||
key = "Actions"
|
key = "Actions"
|
||||||
reset_type_values = ['On', 'ForceOff', 'GracefulShutdown',
|
reset_type_values = ['On', 'ForceOff', 'GracefulShutdown',
|
||||||
'GracefulRestart', 'ForceRestart', 'Nmi',
|
'GracefulRestart', 'ForceRestart', 'Nmi',
|
||||||
'ForceOn', 'PushPowerButton', 'PowerCycle']
|
'ForceOn', 'PushPowerButton', 'PowerCycle',
|
||||||
|
'FullPowerCycle']
|
||||||
|
|
||||||
# command should be PowerOn, PowerForceOff, etc.
|
# command should be PowerOn, PowerForceOff, etc.
|
||||||
if not command.startswith('Power'):
|
if not command.startswith('Power'):
|
||||||
|
|
|
@ -853,8 +853,10 @@ from ansible.module_utils.common.text.converters import to_native
|
||||||
# More will be added as module features are expanded
|
# More will be added as module features are expanded
|
||||||
CATEGORY_COMMANDS_ALL = {
|
CATEGORY_COMMANDS_ALL = {
|
||||||
"Systems": ["PowerOn", "PowerForceOff", "PowerForceRestart", "PowerGracefulRestart",
|
"Systems": ["PowerOn", "PowerForceOff", "PowerForceRestart", "PowerGracefulRestart",
|
||||||
"PowerGracefulShutdown", "PowerReboot", "PowerCycle", "SetOneTimeBoot", "EnableContinuousBootOverride", "DisableBootOverride",
|
"PowerGracefulShutdown", "PowerReboot", "PowerCycle", "PowerFullPowerCycle",
|
||||||
"IndicatorLedOn", "IndicatorLedOff", "IndicatorLedBlink", "VirtualMediaInsert", "VirtualMediaEject", "VerifyBiosAttributes"],
|
"SetOneTimeBoot", "EnableContinuousBootOverride", "DisableBootOverride",
|
||||||
|
"IndicatorLedOn", "IndicatorLedOff", "IndicatorLedBlink", "VirtualMediaInsert",
|
||||||
|
"VirtualMediaEject", "VerifyBiosAttributes"],
|
||||||
"Chassis": ["IndicatorLedOn", "IndicatorLedOff", "IndicatorLedBlink"],
|
"Chassis": ["IndicatorLedOn", "IndicatorLedOff", "IndicatorLedBlink"],
|
||||||
"Accounts": ["AddUser", "EnableUser", "DeleteUser", "DisableUser",
|
"Accounts": ["AddUser", "EnableUser", "DeleteUser", "DisableUser",
|
||||||
"UpdateUserRole", "UpdateUserPassword", "UpdateUserName",
|
"UpdateUserRole", "UpdateUserPassword", "UpdateUserName",
|
||||||
|
|
Loading…
Reference in New Issue