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


Ignore:
Timestamp:
01/25/13 16:16:04 (11 years ago)
Author:
Kris Deugau
Message:

/trunk

File off rough edges doing DNS updates for deleting allocations. See #1.

  • pass back and handle more subtle variations on WARN
  • add a watch comment noting some bizarre behaviour that could not be duplicated later.
  • more fully handle large allocations spanning multiple reverse zones (eg, /23 dynamic DSL spans 2 /24 reverse zones)
  • retrieve the DNS pattern from the parent in case of zone-spanning block deletes; the records in the zone can't be relied on to rebuild an "unused"-ish record in this case.

Should use dnsadmin:trunk/@r460 or higher for proper behaviour.

File:
1 edited

Legend:

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

    r590 r591  
    895895  $page->param(delparent => $blockinfo->{parent}) if $webvar{rdepth};
    896896  $page->param(prdepth => $webvar{rdepth});
    897   if ($code =~ /^WARN/) {
     897  if ($code =~ /^WARN(POOL|MERGE)/) {
    898898    my ($bp,$bd) = split /,/, $msg;
    899899    $page->param(bparent => $bp);
     
    901901    $page->param(mergeip => $code eq 'WARNPOOL');
    902902  }
    903 
     903  if ($code eq 'WARN') {
     904    $msg =~ s/\n/<br>\n/g;
     905    $page->param(genwarn => $msg);
     906  }
    904907  if ($code eq 'OK' || $code =~ /^WARN/) {
    905908    syslog "notice", "$authuser deallocated '$webvar{alloctype}'-type netblock $webvar{block} ".
Note: See TracChangeset for help on using the changeset viewer.