[freeside-commits] freeside/httemplate/misc/process nms-add_iface.html, NONE, 1.1
Erik Levinson
levinse at wavetail.420.am
Fri Feb 4 22:04:34 PST 2011
Update of /home/cvs/cvsroot/freeside/httemplate/misc/process
In directory wavetail.420.am:/tmp/cvs-serv24753/httemplate/misc/process
Added Files:
nms-add_iface.html
Log Message:
torrus, add interface UI, RT10574
--- NEW FILE: nms-add_iface.html ---
<% header('Interface added') %>
</BODY></HTML>
<%init>
# XXX: access rights
my $host = $cgi->param('host');
die 'invalid host' unless $host =~ /^[0-9.a-zA-Z\-]+$/;
my $iface = $cgi->param('iface');
die 'invalid iface' unless $iface =~ /^[0-9A-Za-z_\-.\\\/ ]+$/;
my $serviceid = $cgi->param('serviceid');
die 'invalid serviceid' unless $serviceid =~ /^[0-9A-Za-z_\-.\\\/ ]+$/;
my $conf = new FS::Conf;
my $system = $conf->config('network_monitoring_system');
my $nms = new FS::NetworkMonitoringSystem;
$nms->add_interface($host,$iface,$serviceid);
</%init>
More information about the freeside-commits
mailing list