Changeset 695 for trunk/cgi-bin/main.cgi


Ignore:
Timestamp:
02/13/15 12:26:44 (10 years ago)
Author:
Kris Deugau
Message:

/trunk

Mostly fix up edge case of extending an IP pool allocation. See #24.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/cgi-bin/main.cgi

    r692 r695  
    904904  $page->param(vlan     => $blockinfo->{vlan});
    905905
     906  # Reserved-for-expansion
     907  $page->param(reserve  => $blockinfo->{reserve});
     908  $page->param(reserve_id => $blockinfo->{reserve_id});
     909  my $newblock = NetAddr::IP->new($cidr->addr, $cidr->masklen - 1)->network;
     910  $page->param(newblock => $newblock);
     911
    906912  # not happy with the upside-down logic, but...
    907913  $page->param(swipable => $blockinfo->{type} !~ /.i/);
     
    961967  }
    962968
     969  # Merge with reserved freeblock
     970  $updargs{fbmerge} = $webvar{expandme} if $webvar{expandme};
     971
    963972  my ($code,$msg) = updateBlock($ip_dbh, %updargs, iprev => \%iprev);
    964973
Note: See TracChangeset for help on using the changeset viewer.