Commit 1f08e066 authored by Robert Ricci's avatar Robert Ricci

Check in a hack from Chris to just ignore nodes that have their

'rebootable' flag set to 0.
parent cf89bd50
......@@ -141,6 +141,20 @@ sub nodereboot($$)
my %pids = ();
my $failed = 0;
# XXX - Wisconsin hack to avoid rebooting routers - this needs to be
# replaced with the node_capabilities stuff or similar.
my @temp = ();
foreach my $node (@nodes) {
my $qr = DBQueryFatal("select nt.isrebootable from " .
"nodes as n, node_types as nt " .
"where n.node_id=\"$node\" and " .
"n.type = nt.type");
my ($rebootable) = $qr->fetchrow_array();
push(@temp,$node) if $rebootable;
}
@nodes = @temp;
# END XXX
#
# VIRTNODE HACK: Virtual nodes are special. We can reboot jailed
# vnodes, but not old style (non-jail). Also, if we are going to
......
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