Changeset 101 for branches


Ignore:
Timestamp:
12/07/04 16:06:13 (20 years ago)
Author:
Kris Deugau
Message:

/branches/stable

Fixed allocation bug that put the wrong city on free blocks
Fixed minor display bug that indicated the customer location
instead of the POP location.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/stable/cgi-bin/main.cgi

    r100 r101  
    918918          $city = $webvar{pop};
    919919          $failmsg = "No suitable free block found.<br>\nYou will have to route another".
    920             " superblock to $webvar{city}<br>\nfrom one of the master blocks in Sudbury or".
     920            " superblock to $webvar{pop}<br>\nfrom one of the master blocks in Sudbury or".
    921921            " chose a smaller blocksize.";
    922922        }
     
    11291129
    11301130          # Insert the new freeblocks entries
    1131           $sth = $ip_dbh->prepare("insert into freeblocks values (?, ?, ?,'y')");
     1131          $sth = $ip_dbh->prepare("insert into freeblocks values (?, ?, (select city from routed where cidr >> '$cidr'),'y')");
    11321132          foreach my $block (@newfreeblocks) {
    1133             $sth->execute("$block", $block->masklen, $webvar{city});
     1133            $sth->execute("$block", $block->masklen);
    11341134          }
    11351135          # Insert the allocations entry
Note: See TracChangeset for help on using the changeset viewer.