# $ho->{PowerApproaches}[]{Name} see below
# $ho->{PowerApproaches}[]{MethObjs}[] each has ->pdu_power_state($on)
# `Name's are:
- # Only Host only supports one method and this is it
- # ILOM Try to use just the ILOM
- # PDU Try to use the PDU (but also turn off/on ILOM if provided)
+ # Only Host only supports one method and this is it
+ # ILOM Try to use just the ILOM
+ # PDU Try to use the PDU (no ILOM provided)
+ # Combined Try to use the PDU and ILOM tohether
my @approaches;
my $pdu_s = get_host_property($ho,'PowerPDU');
my $ilom_s = get_host_property($ho,'PowerILOM');
}
if ($pdu_s) {
my $pdu_m = power_cycle_parse_method($ho, $pdu_s);
+ my $pdu_name = 'PDU';
if ($ilom_m) {
require Osstest::PDU::try_off;
+ $pdu_name = 'Combined';
$pdu_m = [
@$pdu_m,
get_host_method_object($ho, 'PDU', 'pause'),
];
}
push @approaches, {
- Name => 'PDU',
+ Name => $pdu_name,
MethObjs => ['nest', @$pdu_m ],
};
}
# "1" or "off" : power off
# "c" or "r" : reboot
# APPROACH_RE is a regexp specifying which method to
-# use. Methods are: Only ILOM PDU SSH
+# use. Methods are: Only Combined ILOM PDU SSH
# and the lightest method which matches will be used.
# If not specified, the most reliable method will be used.
#