[freeside-commits] freeside/FS/FS/NetworkMonitoringSystem Torrus_Internal.pm, 1.10, 1.11
Ivan,,,
ivan at wavetail.420.am
Sun Feb 27 11:20:39 PST 2011
Update of /home/cvs/cvsroot/freeside/FS/FS/NetworkMonitoringSystem
In directory wavetail.420.am:/tmp/cvs-serv17734/FS/FS/NetworkMonitoringSystem
Modified Files:
Torrus_Internal.pm
Log Message:
torrus virtual ports, RT#10574
Index: Torrus_Internal.pm
===================================================================
RCS file: /home/cvs/cvsroot/freeside/FS/FS/NetworkMonitoringSystem/Torrus_Internal.pm,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -w -d -r1.10 -r1.11
--- Torrus_Internal.pm 27 Feb 2011 00:51:43 -0000 1.10
+++ Torrus_Internal.pm 27 Feb 2011 19:20:37 -0000 1.11
@@ -7,8 +7,9 @@
use File::Slurp qw(slurp);
use Date::Format;
use XML::Simple;
+use FS::Record qw(qsearch qsearchs dbh);
use FS::svc_port;
-use FS::Record qw(qsearch dbh);
+use FS::torrus_srvderive_component;
use Torrus::ConfigTree;
#$DEBUG = 0;
@@ -94,6 +95,14 @@
return $svc_port[0];
}
+sub find_torrus_srvderive_component {
+ my $self = shift;
+ my $serviceid = shift;
+ return '' unless $serviceid =~ /^[0-9A-Za-z_\-.\\\/ ]+$/;
+
+ qsearchs('torrus_srvderive_component', { 'serviceid' => $serviceid });
+}
+
sub report {
my $self = shift;
More information about the freeside-commits
mailing list