diff options
author | Ted Trask <ttrask01@yahoo.com> | 2008-07-11 20:46:35 +0000 |
---|---|---|
committer | Ted Trask <ttrask01@yahoo.com> | 2008-07-11 20:46:35 +0000 |
commit | aff09ec85031849e3f626f19e776e42953310363 (patch) | |
tree | 8b0425b636749fdc5f5e1e52f054b20aafb197eb /quagga-bgpexpert-html.lsp | |
parent | 21412c6fc93671faf917f3c4fefba915a39f9fac (diff) | |
download | acf-quagga-aff09ec85031849e3f626f19e776e42953310363.tar.bz2 acf-quagga-aff09ec85031849e3f626f19e776e42953310363.tar.xz |
Updated quagga to separate quagga functions from bgp functions. Implemented status, startstop, and expert.
git-svn-id: svn://svn.alpinelinux.org/acf/quagga/trunk@1296 ab2d0c66-481e-0410-8bed-d214d4d58bed
Diffstat (limited to 'quagga-bgpexpert-html.lsp')
-rw-r--r-- | quagga-bgpexpert-html.lsp | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/quagga-bgpexpert-html.lsp b/quagga-bgpexpert-html.lsp new file mode 100644 index 0000000..9a2abe2 --- /dev/null +++ b/quagga-bgpexpert-html.lsp @@ -0,0 +1,16 @@ +<? local form, viewlibrary, page_info, session = ... ?> +<? require("viewfunctions") ?> + +<? if viewlibrary and viewlibrary.dispatch_component then + viewlibrary.dispatch_component("bgpstatus") +end ?> + +<? +local pattern = string.gsub(page_info.prefix..page_info.controller, "[%(%)%.%%%+%-%*%?%[%]%^%$]", "%%%1") +local func = haserl.loadfile(page_info.viewfile:gsub(pattern..".*$", "/") .. "filedetails-html.lsp") +func(form, viewlibrary, page_info, session) +?> + +<? if viewlibrary and viewlibrary.dispatch_component and session.permissions[page_info.controller].startstop then + viewlibrary.dispatch_component("bgpstartstop") +end ?> |