From 3a4bf42c4385863ea83423b279b39ff6e650f79d Mon Sep 17 00:00:00 2001 From: levinse Date: Sat, 5 Feb 2011 06:32:36 +0000 Subject: torrus, add router UI, RT10574 --- httemplate/misc/process/nms-add_router.html | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 httemplate/misc/process/nms-add_router.html (limited to 'httemplate/misc/process/nms-add_router.html') diff --git a/httemplate/misc/process/nms-add_router.html b/httemplate/misc/process/nms-add_router.html new file mode 100644 index 000000000..bc437d2b3 --- /dev/null +++ b/httemplate/misc/process/nms-add_router.html @@ -0,0 +1,13 @@ +<% header('Router added') %> + +<%init> + +# XXX: access rights + +my $host = $cgi->param('host'); +die 'invalid host' unless $host =~ /^[0-9.a-zA-Z\-]+$/; + +my $nms = new FS::NetworkMonitoringSystem; +$nms->add_router($host); + + -- cgit v1.2.1