Ignore:
Timestamp:
04/05/05 14:24:52 (19 years ago)
Author:
Kris Deugau
Message:

/trunk

Port bugfixes from /branches/stable r203-206 and r209-213 forward.
Clean merge.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/cgi-bin/consistency-check.pl

    r190 r214  
    1414use NetAddr::IP;
    1515
     16print "Content-type: text/plain\n\n";
     17
    1618($dbh,$errstr) = connectDB_My;
    1719
     
    141143    print "    Gap from $cur to end of master at $master\n";
    142144  }
     145  $master++;
    143146  print "  done $master.\n";
    144147}
     
    176179        "from allocations where cidr <<= '$container' and type like '_r') ".
    177180        "union (select network(cidr) as net, broadcast(cidr) as bcast ".
    178         "from freeblocks where cidr <<= '$container' and routed='w') order by net");
     181        "from freeblocks where cidr <<= '$container' and not (routed='y' or routed='n')) ".
     182        "order by net");
    179183    $sth->execute;
    180184
     
    207211    print "      Gap from $cur to end of container at $container\n";
    208212  }
     213  $container++;
    209214  print "    done $container.\n";
    210215
     
    215220print "Checking for correctness on 'defined' CustIDs:\n";
    216221# New check:  Make sure "defined" CustIDs are correct.
    217 $sth = $dbh->prepare("select cidr,type,custid from allocations where not type='cn' order by cidr");
     222$sth = $dbh->prepare("select cidr,type,custid from allocations where not (type='cn' or type like '_r') order by cidr");
    218223$sth->execute;
    219224while (@data = $sth->fetchrow_array) {
Note: See TracChangeset for help on using the changeset viewer.