<%- local ubus = require "ubus" local sys = require "luci.sys" local utl = require "luci.util" function connect_ubus(methods) local result local conn = ubus.connect() if not conn then error("Failed to connect to ubusd") end result = conn:call("otbr", methods, {}) return result end function threadget(action) local result = connect_ubus(action) return result end local state = threadget("state").State function addrlist() local k, v local l = { } local addrlist = connect_ubus("macfilteraddr").addrlist for k, v in pairs(addrlist) do l[#l+1] = v end return l end -%> <%+header%>

<%:Thread Network: %><%=threadget("networkname").NetworkName%><%: (wpan0)%>

The Network Configuration section covers physical settings of the Thread Network such as channel, PAN ID. Per interface related settings like networkkey or MAC-filter are grouped in the Interface Configuration.

<%:Network Configuration%>


" style="width:30%;"/>
PAN ID: <%=threadget("panid").PanId%>
Extended PAN ID: <%=threadget("extpanid").ExtPanId%>
State: <%=state%>
Channel: <%=threadget("channel").Channel%>
<% if state == "disabled" then %>
<% else %>
<% end %>

<%:Interface Configuration%>



" style="width:60%;"/>
" style="width:60%;"/>
<%+footer%>