From d31ca94dcd773d01fceacb78ed228c958f0d95a3 Mon Sep 17 00:00:00 2001 From: Mika Havela Date: Wed, 2 Apr 2008 12:02:35 +0000 Subject: Showing some route information while waiting to solve howto fetch information from bgpd. git-svn-id: svn://svn.alpinelinux.org/acf/quagga/trunk@897 ab2d0c66-481e-0410-8bed-d214d4d58bed --- quagga-status-html.lsp | 21 +++++++++++++-------- 1 file changed, 13 insertions(+), 8 deletions(-) (limited to 'quagga-status-html.lsp') 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)

PROGRAM SPECIFIC OPTIONS/INFORMATION

0) then io.write(" class='error'") end -io.write(">" .. myform.label .. "\n") -io.write("\t\t
\n") -io.write("\t\t
"..myform.value.."
\n") -io.write("\t\t
\n") +local tags ={"routes", "iproute", "bgpstats", } +for k,v in pairs(tags) do + local myform = form.status[v] + if (myform) then + io.write("\t 0) then io.write(" class='error'") end + io.write(">" .. myform.label .. "\n") + io.write("\t\t
\n") + io.write("\t\t
"..myform.value.."
\n") + io.write("\t\t
\n") + end +end ?> +