Changeset 745 for trunk/cgi-bin
- Timestamp:
- 06/16/15 17:47:30 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/cgi-bin/IPDB.pm
r744 r745 229 229 my $convblock = shift; # May be smaller than the block referenced by $poolparent 230 230 my $pooltype = shift; 231 my $retall = shift || 0; 231 232 232 233 # there is probably a way to avoid the temporary $foo here … … 283 284 $poolcounter{"$newip"}++; 284 285 } 285 } elsif ($old alloc[2]=~ /.[dp]/) {286 } elsif ($oldtype =~ /.[dp]/) { 286 287 # Reparent IPs in an existing pool, and rewrite their type 287 288 $updsth->execute($poolparent, $poolclass.'i', $oldid); … … 294 295 $delsth->execute($oldid) unless $oldid == $poolparent; 295 296 # Return the converted blocks, but only the immediate peers, not the entire tree 296 push @retlist, { block => $oldcidr, mtype => $disp_alloctypes{$oldtype} } 297 if $oldparent == $mainparent; 298 } 297 push @retlist, { block => $oldcidr, mdisp => $disp_alloctypes{$oldtype}, mtype => $oldtype } 298 if (($oldparent == $mainparent) || $retall) && $oldid != $poolparent; 299 } # while $asth->fetch 300 299 301 return \@retlist; 300 302 } # end _toPool()
Note:
See TracChangeset
for help on using the changeset viewer.