Developing lightweight computation at the DSG edge

Commit 4769f1eb authored by Pau Escrich's avatar Pau Escrich
Browse files

Add the MDNS service into the web interface (configuration -> services)

Enable it by default
parent 8ea10a3c
......@@ -47,7 +47,7 @@ config 'qmp' 'services'
option altermap 1
option gwck 1
option auto_upgrade 0
option mesh_dns 0
option mesh_dns 1
option bwtest 1
# -----------------------------
......
......@@ -7,7 +7,7 @@ if ! uci -q get qmp.services >/dev/null; then
uci set qmp.services.altermap=1
uci set qmp.services.gwck=1
uci set qmp.services.auto_upgrade=0
uci set qmp.services.mesh_dns=0
uci set qmp.services.mesh_dns=1
uci set qmp.services.bwtest=1
uci commit qmp
fi
......@@ -57,6 +57,11 @@ local bwt = section:option(Flag, "bwtest", translate("Bandwidth test"),
translate("If enabled, the node will be available to perform bandwidth test from other locations"))
bwt.default=0
-- Option: mdns
local mdns = section:option(Flag, "mesh_dns", translate("Mesh distributed DNS"),
translate("A distributed DNS system to publish and get domain names (i.e myNode01.qmp)"))
mdns.default=0
function m.on_commit(self,map)
luci.sys.call('/etc/qmp/qmp_control.sh apply_services > /tmp/qmp_apply_services.log &')
http.redirect("/luci-static/resources/qmp/wait_short.html")
......
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