modules/admin-full: Added support for interface aliases
[project/luci.git] / modules / admin-full / luasrc / model / cbi / admin_network / dhcp.lua
index f85eb52..b50b05c 100644 (file)
@@ -31,6 +31,12 @@ luci.model.uci.foreach("network", "interface",
                end
        end)
 
+luci.model.uci.foreach("network", "alias",
+       function (section)
+               iface:value(section[".name"])
+               s:depends("interface", section[".name"])
+       end)
+
 s:option(Value, "start", translate("start")).rmempty = true
 
 s:option(Value, "limit", translate("limit")).rmempty = true