Changeset 231


Ignore:
Timestamp:
04/15/05 17:10:52 (20 years ago)
Author:
Kris Deugau
Message:

/trunk

Missing backport: update to fix display issue relating to
container netblocks from /branches/stable r194

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/cgi-bin/main.cgi

    r228 r231  
    420420
    421421  # Count the free blocks.
    422   $sth = $ip_dbh->prepare("select count(*) from freeblocks where cidr <<= ?");
     422  $sth = $ip_dbh->prepare("select count(*) from freeblocks where cidr <<= ? and ".
     423        "(routed='y' or routed='n')");
    423424  foreach my $master (@masterblocks) {
    424425    $sth->execute("$master");
     
    428429
    429430  # Find the largest free block in each master
    430   $sth = $ip_dbh->prepare("select maskbits from freeblocks where cidr <<= ? order by maskbits limit 1");
     431  $sth = $ip_dbh->prepare("select maskbits from freeblocks where cidr <<= ? and ".
     432        "(routed='y' or routed='n') order by maskbits limit 1");
    431433  foreach my $master (@masterblocks) {
    432434    $sth->execute("$master");
     
    502504
    503505    # Count the free blocks.
    504     $sth = $ip_dbh->prepare("select count(*) from freeblocks where cidr <<= ?");
     506    $sth = $ip_dbh->prepare("select count(*) from freeblocks where cidr <<= ? and ".
     507        "(routed='y' or routed='n')");
    505508    foreach my $master (@localmasters) {
    506509      $sth->execute("$master");
     
    510513
    511514    # Get the size of the largest free block
    512     $sth = $ip_dbh->prepare("select maskbits from freeblocks where cidr <<= ? order by maskbits limit 1");
     515    $sth = $ip_dbh->prepare("select maskbits from freeblocks where cidr <<= ? and ".
     516        "(routed='y' or routed='n') order by maskbits limit 1");
    513517    foreach my $master (@localmasters) {
    514518      $sth->execute("$master");
Note: See TracChangeset for help on using the changeset viewer.