Changeset 936


Ignore:
Timestamp:
12/09/22 13:38:37 (17 months ago)
Author:
Kris Deugau
Message:

/trunk

Fix bug with block selection for merge; if the expected resulting block is
the same size as the parent of the "starting" block for the merge, the parent
could be mistakenly included in the merge leaving the result orphaned.

Fix minor bug with listSubs() not tagging master blocks as having subblocks

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/cgi-bin/IPDB.pm

    r933 r936  
    288288  my %poolcounter;
    289289  while (my ($oldid, $oldcidr, $oldtype, $oldparent, @oldalloc) = $asth->fetchrow_array) {
     290    # don't merge the parent of the allocation selected for merge.
     291    # if you really want to go there, start the merge *from* that parent.
     292    next if $oldid == $mainparent;
    290293    if ($oldtype =~ /.[enr]/) {
    291294      # Convert leaf allocations to block of pool IP assignments
     
    10621065        custid => $custid,
    10631066        desc => $desc,
    1064         hassubs => ($type eq 'rm' || $type =~ /.c/ ? 1 : 0),
     1067        hassubs => ($type eq 'rm' || $type eq 'mm' || $type =~ /.c/ ? 1 : 0),
    10651068        id => $id,
    10661069        );
Note: See TracChangeset for help on using the changeset viewer.