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("network", translate("interfaces", "Schnittstellen"), translate("a_n_ifaces1"))
16 s = m:section(TypedSection, "interface", "")
19 s:depends("proto", "static")
20 s:depends("proto", "dhcp")
22 p = s:option(ListValue, "proto", translate("protocol", "Protokoll"))
23 p:value("static", translate("static", "statisch"))
24 p:value("dhcp", "DHCP")
27 br = s:option(Flag, "type", translate("a_n_i_bridge"), translate("a_n_i_bridge1"))
31 s:option(Value, "ifname", translate("interface", "Schnittstelle"))
33 s:option(Value, "ipaddr", translate("ipaddress", "IP-Adresse"))
35 s:option(Value, "netmask", translate("netmask", "Netzmaske")):depends("proto", "static")
37 gw = s:option(Value, "gateway", translate("gateway", "Gateway"))
38 gw:depends("proto", "static")
41 dns = s:option(Value, "dns", translate("dnsserver", "DNS-Server"))
42 dns:depends("proto", "static")
45 mtu = s:option(Value, "mtu", "MTU")
49 mac = s:option(Value, "macaddr", translate("macaddress", "MAC-Adresse"))