summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIvan Kohler <ivan@freeside.biz>2013-02-07 23:11:26 -0800
committerIvan Kohler <ivan@freeside.biz>2013-02-07 23:11:26 -0800
commit47f7a3e61064184284833ba0e9c59e34e16d1678 (patch)
tree9a9d9717ae33bfa238714d015b5814e0ee385fb5
parent56138a845f0928d8c189ef962b430b3466bd3fc2 (diff)
add MAC address and description to svc_broadband label, RT#19115
-rwxr-xr-xFS/FS/svc_broadband.pm7
1 files changed, 6 insertions, 1 deletions
diff --git a/FS/FS/svc_broadband.pm b/FS/FS/svc_broadband.pm
index c791dc4a4..46d046c0b 100755
--- a/FS/FS/svc_broadband.pm
+++ b/FS/FS/svc_broadband.pm
@@ -309,7 +309,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 ... ]