Developing lightweight computation at the DSG edge

Commit 3f98e8dd authored by Pau Escrich's avatar Pau Escrich
Browse files

Improve the current domains view of bmx6-mdns

Add the bmx6-mdns LUCI entry in the qMp LUCI controller
parent aaa02770
......@@ -36,7 +36,7 @@ include $(INCLUDE_DIR)/package.mk
define Package/bmx6-mdns
TITLE:=bmx6 distributed DNS
SECTION:=net
CATEGORY:=Network
CATEGORY:=qMp
URL:=http://qmp.cat
DEPENDS:=+bmx6-sms
endef
......
......@@ -59,8 +59,9 @@ function f.handle(self, state, data)
end
hosts = fs.readfile(hostfile) or ""
h = f:field(DummyValue, "hosts", translate("Current obtained domains"), "<pre>"..hosts.."</pre>")
h = f:field(DummyValue, "hosts", translate("Current obtained domains"))
h.rawhtml = true
h.default = "<pre>"..hosts.."</pre>"
h.rmempty = false
h.rows = 20
return f
......@@ -22,7 +22,7 @@
module("luci.controller.qmp", package.seeall)
function index()
local fs = require "luci.fs"
-- Making qmp as default
local root = node()
root.target = alias("qmp")
......@@ -47,7 +47,10 @@ function index()
entry({"qmp","configuration","gateways"}, cbi("qmp/gateways"), "qMp gateways", 6).dependent=false
entry({"qmp","tools"}, call("action_tools"), "Tools", 5).dependent=false
entry({"qmp","tools","tools"}, call("action_tools"), "Network testing", 1).dependent=false
entry({"qmp","tools","tools"}, call("action_tools"), "Network testing", 1).dependent=false
if luci.fs.isfile("/usr/lib/lua/luci/model/cbi/qmp/mdns.lua") then
entry({"qmp","tools","mDNS"}, cbi("qmp/mdns"), "DNS mesh", 1).dependent=false
end
-- entry({"qmp","tools","splash"}, call("action_splash"), "Splash", 2).dependent=false
-- entry({"qmp","tools","map"}, call("action_map"), "Map", 3).dependent=false
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment