summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTed Trask <ttrask01@yahoo.com>2010-03-10 15:38:11 +0000
committerTed Trask <ttrask01@yahoo.com>2010-03-10 15:38:11 +0000
commite742c7f03085ccb24993360d534d54a2f4110f16 (patch)
tree8fcd628d7ab1203398a7e1822e354bd0d3bd2a9e
parent01acf92e551a75dd2122df6e27b57dc94d393fa8 (diff)
downloadacf-alpine-baselayout-e742c7f03085ccb24993360d534d54a2f4110f16.tar.bz2
acf-alpine-baselayout-e742c7f03085ccb24993360d534d54a2f4110f16.tar.xz
Added 'ip tunnel' result to health network status.
-rw-r--r--health-model.lua1
-rw-r--r--health-network-html.lsp7
2 files changed, 8 insertions, 0 deletions
diff --git a/health-model.lua b/health-model.lua
index 0389346..f5c0ee1 100644
--- a/health-model.lua
+++ b/health-model.lua
@@ -90,6 +90,7 @@ get_network = function (self)
local network = {}
network.interfaces = cfe({ value=querycmd("ip addr"), label="Interfaces" })
network.routes = cfe({ value=querycmd("ip route"), label="Routes" })
+ network.tunnel = cfe({ value=querycmd("ip tunnel"), label="Tunnels" })
return cfe({ type="group", value=network })
end
diff --git a/health-network-html.lsp b/health-network-html.lsp
index 5f9463d..b94707f 100644
--- a/health-network-html.lsp
+++ b/health-network-html.lsp
@@ -11,3 +11,10 @@
<DL>
<pre><%= html.html_escape(view.value.routes.value) %></pre>
</DL>
+
+<% if view.value.tunnel.value ~= "" then %>
+<h2>Tunnels</h2>
+<DL>
+<pre><%= html.html_escape(view.value.tunnel.value) %></pre>
+</DL>
+<% end %>