projects
/
freeside.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
add ping tool to svc_acct IP address, RT#15537
[freeside.git]
/
FS
/
FS
/
svc_broadband.pm
diff --git
a/FS/FS/svc_broadband.pm
b/FS/FS/svc_broadband.pm
index
576684c
..
a0cd090
100755
(executable)
--- a/
FS/FS/svc_broadband.pm
+++ b/
FS/FS/svc_broadband.pm
@@
-9,7
+9,7
@@
use FS::addr_block;
use FS::part_svc_router;
use NetAddr::IP;
use FS::part_svc_router;
use NetAddr::IP;
-@ISA = qw( FS::svc_Common );
+@ISA = qw( FS::svc_
Radius_Mixin FS::svc_
Common );
$FS::UID::callback{'FS::svc_broadband'} = sub {
$conf = new FS::Conf;
$FS::UID::callback{'FS::svc_broadband'} = sub {
$conf = new FS::Conf;
@@
-90,9
+90,9
@@
points to. You can ask the object for a copy with the I<hash> method.
sub table_info {
{
sub table_info {
{
- 'name' => '
B
roadband',
- 'name_plural' => '
B
roadband services',
- 'longname_plural' => 'Fixed
(username-less)
broadband services',
+ 'name' => '
Wireless b
roadband',
+ 'name_plural' => '
Wireless b
roadband services',
+ 'longname_plural' => 'Fixed
wireless
broadband services',
'display_weight' => 50,
'cancel_weight' => 70,
'fields' => {
'display_weight' => 50,
'cancel_weight' => 70,
'fields' => {
@@
-115,6
+115,15
@@
sub table_info {
'longitude' => 'Longitude',
'altitude' => 'Altitude',
'vlan_profile' => 'VLAN profile',
'longitude' => 'Longitude',
'altitude' => 'Altitude',
'vlan_profile' => 'VLAN profile',
+ 'usergroup' => {
+ label => 'RADIUS groups',
+ type => 'select-radius_group.html',
+ #select_table => 'radius_group',
+ #select_key => 'groupnum',
+ #select_label => 'groupname',
+ disable_inventory => 1,
+ multiple => 1,
+ },
},
};
}
},
};
}
@@
-338,12
+347,17
@@
sub check {
my $lat_lower = $nw_coords ? 1 : -90;
my $lon_upper = $nw_coords ? -1 : 180;
my $lat_lower = $nw_coords ? 1 : -90;
my $lon_upper = $nw_coords ? -1 : 180;
+ # remove delimiters
+ my $mac_addr = uc($self->get('mac_addr'));
+ $mac_addr =~ s/[-: ]//g;
+ $self->set('mac_addr', $mac_addr);
+
my $error =
$self->ut_numbern('svcnum')
|| $self->ut_numbern('blocknum')
|| $self->ut_textn('description')
my $error =
$self->ut_numbern('svcnum')
|| $self->ut_numbern('blocknum')
|| $self->ut_textn('description')
- || $self->ut_number('speed_up')
- || $self->ut_number('speed_down')
+ || $self->ut_number
n
('speed_up')
+ || $self->ut_number
n
('speed_down')
|| $self->ut_ipn('ip_addr')
|| $self->ut_hexn('mac_addr')
|| $self->ut_hexn('auth_key')
|| $self->ut_ipn('ip_addr')
|| $self->ut_hexn('mac_addr')
|| $self->ut_hexn('auth_key')