Commit 40c15782 authored by Christopher Alfeld's avatar Christopher Alfeld

Fixed to do the right thing when nodes are reserved.

parent c5ef5b96
......@@ -113,6 +113,7 @@ $sth = $dbh->prepare("SELECT type,node_id1,card1,port1,node_id2,card2,port2" .
$sth->execute;
while (($type,$node1,$card1,$port1,$node2,$card2,$port2) =
$sth->fetchrow_array) {
if (defined($nodes{$node1}) && defined($nodes{$node2})) {
$iface1 = get_iface($node1,$card1,$port1);
$iface2 = get_iface($node2,$card2,$port2);
$iface1bw = get_ifacebw($node1,$card1,$port1);
......@@ -125,7 +126,8 @@ while (($type,$node1,$card1,$port1,$node2,$card2,$port2) =
# !!! - Here we use our knowledge that in the wires table links
# to the switch always come as node2.
print "link link-$node1:$iface1-$node2:$iface2 $node1:$node1/$iface1" .
" $node2:$iface2 $bw 1\n"
" $node2:$iface2 $bw 1\n";
}
}
$sth->finish;
......
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