Commit 624094c7 authored by Robert Ricci's avatar Robert Ricci

Sort both links lists, so that it's easier to compare them.

Suggested by Tim.
parent f36a714b
......@@ -226,7 +226,8 @@ if ($showlinks) {
my $result =
DBQueryFatal("select vname,member,delay,bandwidth,lossrate ".
"from virt_lans where pid='$pid' and eid='$eid'");
"from virt_lans where pid='$pid' and eid='$eid'".
"order by vname");
if ($result->numrows) {
print "Lan/Link Info:\n";
......@@ -297,7 +298,7 @@ if ($showlinks) {
print "--------------- --------------- --------------- --------- ".
"--------- ---------\n";
foreach my $link (keys %links) {
foreach my $link (sort keys %links) {
my ($node1, $node2) = @{$links{$link}};
my ($virt1,$pname1,$card1) = @$node1;
my ($virt2,$pname2,$card2) = @$node2;
......
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