From 2acea3b4c25f843f4292da4fe9eea78cf97ca736 Mon Sep 17 00:00:00 2001 From: skel Date: Thu, 30 Jun 2011 15:13:54 -0400 Subject: Interface for OSPF --- ospf-status-html.lsp | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100755 ospf-status-html.lsp (limited to 'ospf-status-html.lsp') diff --git a/ospf-status-html.lsp b/ospf-status-html.lsp new file mode 100755 index 0000000..1f5e1f8 --- /dev/null +++ b/ospf-status-html.lsp @@ -0,0 +1,33 @@ +<% local data, viewlibrary, page_info, session = ... +require("viewfunctions") +%> + +<% displaycommandresults({"install","edit"}, session) %> +<% displaycommandresults({"startstop"}, session) %> + +

System Info

+
+<% +displayitem(data.value.status) + +displayitem(data.value.version) +if data.value.version and data.value.version.errtxt and viewlibrary.check_permission("apk-tools/apk/install") then +%> +
Install package
+
+
+<% +end + +displayitem(data.value.autostart) +if not (data.value.version and data.value.version.errtxt) and data.value.autostart and data.value.autostart.errtxt and viewlibrary.check_permission("alpine-baselayout/rc/edit") then +%> +
Enable autostart
+
+
+<% end %> +
+ +<% if viewlibrary and viewlibrary.dispatch_component and viewlibrary.check_permission("startstop") then + viewlibrary.dispatch_component("startstop") +end %> -- cgit v1.2.3