Developing lightweight computation at the DSG edge

Commit f43b6b87 authored by Roger Pueyo Centelles's avatar Roger Pueyo Centelles
Browse files

[qmp-system] Mind #428 (LuCI datatype "ip4prefix" is now called "cidr4"),...

[qmp-system] Mind #428 (LuCI datatype "ip4prefix" is now called "cidr4"), which does not apply to testing yet
parent eb801ed1
......@@ -145,7 +145,7 @@ roaming_ipaddress_help.default = translate("In <em>natted</em> mode, all qMp dev
local nodeip_roaming = m:field(Value, "_nodeip_roaming", " ", translate("Write the mesh-wide public IPv4 address for this device with a /32 netmask, or leave it blank to get a random one."))
nodeip_roaming:depends("_nodemode","roaming")
nodeip_roaming.datatype="cidr4"
nodeip_roaming.datatype="ip4prefix"
local rip = uciout:get("qmp","networks","bmx6_ipv4_address")
if rip == nil or #rip < 7 then
......
......@@ -105,7 +105,7 @@ if uciout:get("qmp","roaming","ignore") == "0" then
if uciout:get("qmp","networks","bmx6_ipv4_prefix24") ~= nil then
meshaddress.default = uciout:get("qmp","networks","bmx6_ipv4_prefix24") .. '.' .. util.trim(util.exec("echo $((($(date +%M)*$(date +%S)%254)+1))")) .. '/32'
end
meshaddress.datatype = "cidr4"
meshaddress.datatype = "ip4prefix"
meshaddress.optional = false
meshaddress.rmempty = 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