% local data, viewlibrary, page_info = ...
require("viewfunctions")
%>
<% if viewlibrary and viewlibrary.dispatch_component then
viewlibrary.dispatch_component("status")
end %>
<%= data.label %>
<%
displayitem(data.value.status)
%>
- <%= data.value.peers_list.label %>
-
<%
local found
for intf,addresses in pairs(data.value.peers_list.value) do
found = true
%>
<%= intf %> | |
<% for i,entries in ipairs(addresses) do
io.write(" " .. entries["Protocol-Address"].value .. " | |
\n")
for j,entry in pairs(entries) do
if j ~= "Protocol-Address" then
io.write(""..entry.label.." | "..entry.value)
if entry.descr then
io.write(" (" .. entry.descr .. ")")
end
io.write(" |
\n")
end
end
end
io.write("\t\t\t
")
end
if not found then io.write("No peers found\n") end
%>