Commit fea2559a authored by Wim Van de Meerssche's avatar Wim Van de Meerssche

support for racktivity PDU

parent f44e39c1
......@@ -53,6 +53,7 @@ use power_whol;
use power_ilo;
use power_icebox;
use power_apc;
use power_racktivity;
use libtestbed;
use User;
use Node;
......@@ -433,6 +434,20 @@ foreach my $power_id (keys %outlets) {
$errors++;
}
}
} elsif ($type eq "RACKTIVITY") {
my $device = new power_racktivity($IP,$verbose);
if (!defined $device) {
warn "Unable to contact controller for $nodestr. Skipping...\n";
next;
} else {
print "Calling device->power($op,@outlets)\n"
if $verbose > 1;
if ($device->power($op,@outlets)) {
print "Control of $nodestr failed.\n";
$errors++;
}
}
} elsif ($type =~ "RPC") {
if (rpc27ctrl($op,$power_id,@outlets)) {
print "Control of $nodestr failed.\n"; $exitval++;
......
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