Changeset 150 for branches/sql-cleanup


Ignore:
Timestamp:
02/03/05 14:25:01 (20 years ago)
Author:
Kris Deugau
Message:

/branches/sql-cleanup

Oops, missed some code updates required for change in pool alloctypes.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/sql-cleanup/cgi-bin/IPDB.pm

    r149 r150  
    340340
    341341          # And initialize the pool, if necessary
     342          # PPPoE pools (currently dialup, DSL, and WiFi) get all IPs made available
     343          # "DHCP" or "real-subnet" pools have the net, gw, and bcast IPs removed.
    342344          if ($type =~ /^.p$/) {
    343345            $msg = "Could not initialize IPs in new $disp_alloctypes{$type} $cidr";
    344             initPool($dbh,$cidr,$type,$city,($type eq 'dp' ? "all" : "normal"));
     346            my ($code,$rmsg) = initPool($dbh,$cidr,$type,$city,"all");
     347            die $rmsg if $code eq 'FAIL';
     348          } elsif ($type =~ /^.d$/) {
     349            $msg = "Could not initialize IPs in new $disp_alloctypes{$type} $cidr";
     350            my ($code,$rmsg) = initPool($dbh,$cidr,$type,$city,"normal");
     351            die $rmsg if $code eq 'FAIL';
    345352          }
    346353
Note: See TracChangeset for help on using the changeset viewer.