From a5b36e06b03a4d98758c3af16bb230667119a48a Mon Sep 17 00:00:00 2001 From: Ivan Kohler Date: Thu, 7 Feb 2013 23:11:25 -0800 Subject: [PATCH] add MAC address and description to svc_broadband label, RT#19115 --- FS/FS/svc_broadband.pm | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/FS/FS/svc_broadband.pm b/FS/FS/svc_broadband.pm index 1a3adf414..3b0b01534 100755 --- 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 ... ] -- 2.11.0