summaryrefslogtreecommitdiffstats
path: root/quagga-status-html.lsp
diff options
context:
space:
mode:
Diffstat (limited to 'quagga-status-html.lsp')
-rw-r--r--quagga-status-html.lsp21
1 files changed, 13 insertions, 8 deletions
diff --git a/quagga-status-html.lsp b/quagga-status-html.lsp
index b8d58f9..00f95b5 100644
--- a/quagga-status-html.lsp
+++ b/quagga-status-html.lsp
@@ -37,15 +37,20 @@ informationform(myform,tags)
<H2>PROGRAM SPECIFIC OPTIONS/INFORMATION</H2>
<DL>
<?
-
-local myform = form.status.stats
-io.write("\t<DT")
-if (#myform.errtxt > 0) then io.write(" class='error'") end
-io.write(">" .. myform.label .. "</DT>\n")
-io.write("\t\t<DD>\n")
-io.write("\t\t<PRE>"..myform.value.."</PRE>\n")
-io.write("\t\t</DD>\n")
+local tags ={"routes", "iproute", "bgpstats", }
+for k,v in pairs(tags) do
+ local myform = form.status[v]
+ if (myform) then
+ io.write("\t<DT")
+ if (#myform.errtxt > 0) then io.write(" class='error'") end
+ io.write(">" .. myform.label .. "</DT>\n")
+ io.write("\t\t<DD>\n")
+ io.write("\t\t<PRE>"..myform.value.."</PRE>\n")
+ io.write("\t\t</DD>\n")
+ end
+end
?>
+
</DL>
<?