[freeside-commits] freeside/FS/FS svc_dsl.pm,1.11,1.12

Ivan,,, ivan at wavetail.420.am
Thu Oct 6 00:00:44 PDT 2011


Update of /home/cvs/cvsroot/freeside/FS/FS
In directory wavetail.420.am:/tmp/cvs-serv12439/FS/FS

Modified Files:
	svc_dsl.pm 
Log Message:
add dsl_device to track mac addresses, RT#13656

Index: svc_dsl.pm
===================================================================
RCS file: /home/cvs/cvsroot/freeside/FS/FS/svc_dsl.pm,v
retrieving revision 1.11
retrieving revision 1.12
diff -u -w -d -r1.11 -r1.12
--- svc_dsl.pm	22 Sep 2011 21:42:14 -0000	1.11
+++ svc_dsl.pm	6 Oct 2011 07:00:42 -0000	1.12
@@ -4,6 +4,7 @@
 use vars qw( @ISA $conf $DEBUG $me );
 use FS::Record qw( qsearch qsearchs );
 use FS::svc_Common;
+use FS::dsl_device;
 use FS::dsl_note;
 use FS::qual;
 
@@ -273,6 +274,18 @@
   $self->SUPER::check;
 }
 
+=item dsl_device
+
+Returns the MAC addresses associated with this DSL service, as FS::dsl_device
+objects.
+
+=cut
+
+sub dsl_device {
+  my $self = shift;
+  qsearch('dsl_device', { 'svcnum' => $self->svcnum });
+}
+
 sub predelete_hook_first {
     my $self = shift;
     my @exports = $self->part_svc->part_export_dsl_pull;



More information about the freeside-commits mailing list