Commit 8522de5b authored by Christopher Alfeld's avatar Christopher Alfeld

Fixed problem with blank line when no lans.

parent 56251994
......@@ -214,6 +214,8 @@ foreach (@links) {
$s = "$t[0]\"$t[1]\" $t2[1] $t2[2] $lanloss{$info[0]} " . join(" ",@t2[3..$#t2]);
push(@newlans,$s);
}
&ir_set("/topology/lans",join("\n",@newlans) . "\n");
if ($#newlans != -1) {
&ir_set("/topology/lans",join("\n",@newlans) . "\n");
}
&ir_write($irfile);
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