summaryrefslogtreecommitdiffhomepage
path: root/modules/admin-full
diff options
context:
space:
mode:
Diffstat (limited to 'modules/admin-full')
-rw-r--r--modules/admin-full/luasrc/model/cbi/admin_network/network.lua9
1 files changed, 9 insertions, 0 deletions
diff --git a/modules/admin-full/luasrc/model/cbi/admin_network/network.lua b/modules/admin-full/luasrc/model/cbi/admin_network/network.lua
index 0fffd32b61..228efc42d9 100644
--- a/modules/admin-full/luasrc/model/cbi/admin_network/network.lua
+++ b/modules/admin-full/luasrc/model/cbi/admin_network/network.lua
@@ -53,6 +53,15 @@ end
ifname = s:option(DummyValue, "ifname", translate("device"))
ifname.stateful = true
+if luci.model.uci.load("firewall") then
+ zone = s:option(DummyValue, "_zone", translate("zone"))
+
+ function zone.cfgvalue(self, section)
+ local zones = luci.tools.webadmin.network_get_zones(section)
+ return zones and table.concat(zones, ", ") or "-"
+ end
+end
+
hwaddr = s:option(DummyValue, "_hwaddr")
function hwaddr.cfgvalue(self, section)
local ix = self.map:stateget(section, "ifname") or ""