modules/admin-full: Added a cross-references from network interface config to firewall zone config
This commit is contained in:
parent
2c09564d76
commit
09145378c8
1 changed files with 36 additions and 30 deletions
|
@ -39,7 +39,8 @@ for i,d in ipairs(luci.sys.net.devices()) do
|
||||||
end
|
end
|
||||||
|
|
||||||
local zones = luci.tools.webadmin.network_get_zones(arg[1])
|
local zones = luci.tools.webadmin.network_get_zones(arg[1])
|
||||||
if zones and #zones == 0 then
|
if zones then
|
||||||
|
if #zones == 0 then
|
||||||
m:chain("firewall")
|
m:chain("firewall")
|
||||||
|
|
||||||
fwzone = s:option(Value, "_fwzone",
|
fwzone = s:option(Value, "_fwzone",
|
||||||
|
@ -73,6 +74,11 @@ if zones and #zones == 0 then
|
||||||
self.render = function() end
|
self.render = function() end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
else
|
||||||
|
fwzone = s:option(DummyValue, "_fwzone", translate("zone"))
|
||||||
|
fwzone.value = table.concat(zones, ", ")
|
||||||
|
end
|
||||||
|
fwzone.titleref = luci.dispatcher.build_url("admin", "network", "firewall", "zones")
|
||||||
end
|
end
|
||||||
|
|
||||||
ipaddr = s:option(Value, "ipaddr", translate("ipaddress"))
|
ipaddr = s:option(Value, "ipaddr", translate("ipaddress"))
|
||||||
|
|
Loading…
Reference in a new issue