projects
/
freeside.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
1b523e6
)
add MAC address and description to svc_broadband label, RT#19115
author
Ivan Kohler
<ivan@freeside.biz>
Fri, 8 Feb 2013 07:11:25 +0000
(23:11 -0800)
committer
Ivan Kohler
<ivan@freeside.biz>
Fri, 8 Feb 2013 07:11:25 +0000
(23:11 -0800)
FS/FS/svc_broadband.pm
patch
|
blob
|
history
diff --git
a/FS/FS/svc_broadband.pm
b/FS/FS/svc_broadband.pm
index
1a3adf4
..
3b0b015
100755
(executable)
--- a/
FS/FS/svc_broadband.pm
+++ b/
FS/FS/svc_broadband.pm
@@
-313,7
+313,12
@@
Returns the IP address.
sub label {
my $self = shift;
- $self->ip_addr;
+ my $label = 'IP:'. ($self->ip_addr || 'Unknown');
+ $label .= '", MAC:'. $self->mac_addr
+ if $self->mac_addr;
+ $label .= ' ('. $self->description. ')'
+ if $self->description;
+ return $label;
}
=item insert [ , OPTION => VALUE ... ]