[freeside-commits] branch FREESIDE_3_BRANCH updated. a1c29e7275ec9b555667d982395c2403d67e81fb
Ivan
ivan at 420.am
Mon Apr 4 18:58:15 PDT 2016
The branch, FREESIDE_3_BRANCH has been updated
via a1c29e7275ec9b555667d982395c2403d67e81fb (commit)
from 709bd7a384bd8dbde3a15185708a7598e91130d5 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit a1c29e7275ec9b555667d982395c2403d67e81fb
Author: Ivan Kohler <ivan at freeside.biz>
Date: Mon Apr 4 18:58:14 2016 -0700
set Motorola-Canopy-Gateway, RT#41261
diff --git a/FS/FS/svc_IP_Mixin.pm b/FS/FS/svc_IP_Mixin.pm
index abafe86..8b2b5f1 100644
--- a/FS/FS/svc_IP_Mixin.pm
+++ b/FS/FS/svc_IP_Mixin.pm
@@ -186,7 +186,9 @@ means "Framed-Route" if there's an attached router.
sub radius_reply {
my $self = shift;
+
my %reply = ();
+
if ( my $block = $self->attached_block ) {
# block routed over dynamic IP: "192.168.100.0/29 0.0.0.0 1"
# or
@@ -196,21 +198,9 @@ sub radius_reply {
($self->ip_addr || '0.0.0.0') . ' 1';
}
- if ( $self->router_routernum && FS::Conf->new->exists('radius-canopy') ) {
-
- my @addr_block =
- qsearch('addr_block', { routernum => $self->router_routernum } );
- if ( @addr_block ) {
-
- #?
- warn "Multiple address blocks attached to this service's router; using first"
- if scalar(@addr_block) > 1;
+ $reply{'Motorola-Canopy-Gateway'} = $self->addr_block->ip_gateway
+ if FS::Conf->new->exists('radius-canopy') && $self->addr_block;
- $reply{'Motorola-Canopy-Gateway'} = $addr_block[0]->ip_gateway
-
- }
-
- }
%reply;
}
-----------------------------------------------------------------------
Summary of changes:
FS/FS/svc_IP_Mixin.pm | 18 ++++--------------
1 file changed, 4 insertions(+), 14 deletions(-)
More information about the freeside-commits
mailing list