summaryrefslogtreecommitdiff
path: root/httemplate/view/svc_broadband.cgi
diff options
context:
space:
mode:
Diffstat (limited to 'httemplate/view/svc_broadband.cgi')
-rw-r--r--httemplate/view/svc_broadband.cgi7
1 files changed, 6 insertions, 1 deletions
diff --git a/httemplate/view/svc_broadband.cgi b/httemplate/view/svc_broadband.cgi
index af2c575b9..131582f1c 100644
--- a/httemplate/view/svc_broadband.cgi
+++ b/httemplate/view/svc_broadband.cgi
@@ -31,7 +31,7 @@ my @fields = (
'speed_up',
{ field => 'ip_addr', value => \&ip_addr },
{ field => 'sectornum', value => \&sectornum },
- 'mac_addr',
+ { field => 'mac_addr', value => \&mac_addr },
#'latitude',
#'longitude',
{ field => 'coordinates', value => \&coordinates },
@@ -66,6 +66,11 @@ sub ip_addr {
$out;
}
+sub mac_addr {
+ my $svc = shift;
+ join(':', $svc->mac_addr =~ /../g);
+}
+
sub usergroup {
my $svc = shift;
my $usergroup = $svc->usergroup;