Commit c29cc790 authored by Mike Hibler's avatar Mike Hibler

Add a node/node_type "cyclewhenoff" attribute.

This will be used by the power command to tell it to try to power on a
machine that fails to "cycle". ipmitool (or IPMI) seems to fail by default
if you try to cycle a powered-off node.
parent 4379f04a
......@@ -1690,6 +1690,16 @@ sub bootdisk_unit($;$) {
return NodeTypeInfo($self)->bootdisk_unit($stuff);
sub cyclewhenoff($;$) {
my ($self,$stuff) = @_;
my $val = undef;
if (NodeAttribute($self, "cyclewhenoff", \$val) == 0 && defined($val)) {
return $val;
return NodeTypeInfo($self)->cyclewhenoff($stuff);
sub root_password($) {
my ($self) = @_;
my $val = undef;
......@@ -346,6 +346,7 @@ sub adminmfs_osid($;$) {return GetAttribute($_[0], "adminmfs_osid",$_[1]);}
sub rebootable($;$) {return GetAttribute($_[0], "rebootable",$_[1]);}
sub power_delay($;$) {return GetAttribute($_[0], "power_delay",$_[1]);}
sub shared($;$) {return GetAttribute($_[0], "shared",$_[1]);}
sub cyclewhenoff($;$) {return GetAttribute($_[0], "cyclewhenoff",$_[1]);}
sub initial_experiment($;$) {
return GetAttribute($_[0], "initial_experiment",$_[1]);
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment