Changeset 887 for trunk


Ignore:
Timestamp:
08/29/16 17:58:16 (8 years ago)
Author:
Kris Deugau
Message:

/trunk

Subtle refinement of error strings so we don't get funny-looking
error/warning strings visible or in the log. See #31, maybe.

File:
1 edited

Legend:

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

    r882 r887  
    18331833
    18341834  # IPv6 does not lend itself to IP pools as supported
    1835   return ('FAIL',"Refusing to create IPv6 static IP pool") if $pool->{isv6};
     1835  return ('FAIL',"Refusing to create IPv6 static IP pool\n") if $pool->{isv6};
    18361836  # IPv4 pools don't make much sense beyond even /24.  Allow up to 4096-host footshooting anyway.
    18371837  # NetAddr::IP won't allow more than a /16 (65k hosts).
    1838   return ('FAIL',"Refusing to create oversized static IP pool") if $pool->masklen <= 20;
     1838  return ('FAIL',"Refusing to create oversized static IP pool\n") if $pool->masklen <= 20;
    18391839
    18401840  # Retrieve some odds and ends for defaults on the IPs
Note: See TracChangeset for help on using the changeset viewer.