diff options
author | Mark Wells <mark@freeside.biz> | 2012-03-11 20:57:40 -0700 |
---|---|---|
committer | Mark Wells <mark@freeside.biz> | 2012-03-11 20:57:40 -0700 |
commit | e5fcc68aab310814b0ba5444bc97ef504e6e16da (patch) | |
tree | 27b2ce0492bc0772e21f812b14be76c4e5d6c206 /FS/FS/router.pm | |
parent | 0c4d2f8b768b5eb6ed51c27c5f9c482c2c2e96aa (diff) |
cleanup for svc_broadband manual router feature, #14698
Diffstat (limited to 'FS/FS/router.pm')
-rwxr-xr-x | FS/FS/router.pm | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/FS/FS/router.pm b/FS/FS/router.pm index 99373e5..6fa44b4 100755 --- a/FS/FS/router.pm +++ b/FS/FS/router.pm @@ -40,8 +40,9 @@ fields are currently supported: =item svcnum - svcnum of the owning FS::svc_broadband, if appropriate -=item auto_addr - flag to automatically assign IP addresses to services -linked to this router ('Y' or null). +=item manual_addr - set to 'Y' to allow services linked to this router +to have any IP address, rather than one in an address block belonging +to the router. =back @@ -86,7 +87,7 @@ sub check { my $error = $self->ut_numbern('routernum') || $self->ut_text('routername') - || $self->ut_enum('auto_addr', [ '', 'Y' ]) + || $self->ut_enum('manual_addr', [ '', 'Y' ]) || $self->ut_agentnum_acl('agentnum', 'Broadband global configuration') ; return $error if $error; @@ -146,7 +147,7 @@ sub addr_block { sub auto_addr_block { my $self = shift; - return () if !$self->auto_addr; + return () if $self->manual_addr; return qsearch('addr_block', { routernum => $self->routernum, manual_flag => '' }); } |