diff options
| author | Ivan Kohler <ivan-debian@420.am> | 2012-03-15 13:56:48 -0700 |
|---|---|---|
| committer | Ivan Kohler <ivan-debian@420.am> | 2012-03-15 13:56:48 -0700 |
| commit | 7d68066ea33f9f85fe14ce663372642d7ec2ad20 (patch) | |
| tree | f659173a23d541da3032f8a8156f888810d7efda /FS/FS/router.pm | |
| parent | d622dc369cc0856fb791658b35f889470a7da605 (diff) | |
| parent | a69299c596de60f4b26db7431165f7f3ffe928e2 (diff) | |
Merge branch 'master' of git.freeside.biz:/home/git/freeside
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 99373e5d1..6fa44b408 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 => '' }); } |
