Commit 8337e897 authored by Jonathon Duerig's avatar Jonathon Duerig

Minor fixes.

parent 89971250
......@@ -490,10 +490,10 @@ NODE: foreach my $node_id (@node_ids) {
"current_speed='$max_speed', duplex=$duplex, role='$iface_role'");
DBQueryFatal("INSERT INTO interface_state SET node_id='$node_id', " .
"card=$card, port=1, iface='$iface'");
"card=$card, port='$port', iface='$iface'");
if (!$switch_id) {
print "No switch found for ${node_id}:$iface - skipping\n";
print "No switch found for ${node_id}:$iface - skipping wire\n";
next;
}
......@@ -531,7 +531,7 @@ NODE: foreach my $node_id (@node_ids) {
#
# Only reboot regular nodes, not ops nodes
#
if ($role ne "ctrlnode") {
if ($role ne "ctrlnode" && defined($tempIP)) {
push @reboot_IPs, $tempIP;
}
}
......
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