Changeset 214 for trunk/cgi-bin/consistency-check.pl
- Timestamp:
- 04/05/05 14:24:52 (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/cgi-bin/consistency-check.pl
r190 r214 14 14 use NetAddr::IP; 15 15 16 print "Content-type: text/plain\n\n"; 17 16 18 ($dbh,$errstr) = connectDB_My; 17 19 … … 141 143 print " Gap from $cur to end of master at $master\n"; 142 144 } 145 $master++; 143 146 print " done $master.\n"; 144 147 } … … 176 179 "from allocations where cidr <<= '$container' and type like '_r') ". 177 180 "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"); 179 183 $sth->execute; 180 184 … … 207 211 print " Gap from $cur to end of container at $container\n"; 208 212 } 213 $container++; 209 214 print " done $container.\n"; 210 215 … … 215 220 print "Checking for correctness on 'defined' CustIDs:\n"; 216 221 # 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"); 218 223 $sth->execute; 219 224 while (@data = $sth->fetchrow_array) {
Note:
See TracChangeset
for help on using the changeset viewer.