% local data, viewlibrary = ...
require("viewfunctions")
--[[ DEBUG INFORMATION
io.write("
DEBUGGING
DEBUG INFO: CFE
")
io.write(html.cfe_unpack(data))
io.write("")
--]]
%>
<% viewlibrary.dispatch_component("status") %>
<%= data.label %>
<%
if not data.value.show_isakmp or #data.value.show_isakmp.value == 0 then
io.write("No status details available")
else
for i,entry in pairs(data.value.show_isakmp.value) do
if (type(entry) == "table") and (entry.Destination) and (entry.Destination.value) and (#entry.Destination.value > 0) then
io.write(" ".. entry.Destination.value .. "
")
io.write("\n")
local tags = {"Created","Source","Destination", "St", "Phase2details"}
for j,tag in pairs(tags) do
io.write("" ..
(entry[tag].label or "") .. " | "..(entry[tag].value or ""))
if (entry[tag].descr) and (#entry[tag].descr > 0) then io.write(" (".. entry[tag].descr .. ")") end
io.write(" |
")
end
io.write("
")
end
end
end
--displayitem(data.value.ip_xfrm_policy)
%>