2 LuCI - Lua Configuration Interface
4 Copyright 2008 Steven Barth <steven@midlink.org>
6 Licensed under the Apache License, Version 2.0 (the "License");
7 you may not use this file except in compliance with the License.
8 You may obtain a copy of the License at
10 http://www.apache.org/licenses/LICENSE-2.0
14 m = Map("firewall", translate("fw_forwarding"), translate("fw_forwarding1"))
16 s = m:section(TypedSection, "forwarding", "")
17 s.template = "cbi/tblsection"
21 iface = s:option(ListValue, "src")
22 oface = s:option(ListValue, "dest")
24 luci.model.uci.cursor():foreach("firewall", "zone",
26 iface:value(section.name)
27 oface:value(section.name)