Changeset 734
- Timestamp:
- 05/27/15 14:26:30 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/cgi-bin/IPDB.pm
r733 r734 1537 1537 my $msg; 1538 1538 1539 # Trap errors so we can pass them back to the caller. Even if the1540 # caller is only ever supposed to be local, and therefore already1541 # trapping errors. >:(1542 local $dbh->{AutoCommit} = 0; # These need to be local so we don't1543 local $dbh->{RaiseError} = 1; # step on our toes by accident.1544 1545 1539 eval { 1546 1540 # have to insert all pool IPs into poolips table as "unallocated". … … 1589 1583 if ($class eq 'all') { # (DSL-ish block - *all* IPs available 1590 1584 if ($pool->addr !~ /\.0$/) { # .0 causes weirdness. 1591 $sth->execute($pool->addr, $pcustid, $city, $type, $parent, $master) unless $foundips{$pool->addr };1585 $sth->execute($pool->addr, $pcustid, $city, $type, $parent, $master) unless $foundips{$pool->addr."/32"}; 1592 1586 } 1593 1587 $sth->execute($poolip_list[0]->addr, $pcustid, $city, $type, $parent, $master) unless $foundips{$poolip_list[0]}; 1594 1588 $pool--; 1595 1589 if ($pool->addr !~ /\.255$/) { # .255 can cause weirdness. 1596 $sth->execute($pool->addr, $pcustid, $city, $type, $parent, $master) unless $foundips{$pool->addr };1590 $sth->execute($pool->addr, $pcustid, $city, $type, $parent, $master) unless $foundips{$pool->addr."/32"}; 1597 1591 } 1598 1592 }
Note:
See TracChangeset
for help on using the changeset viewer.