1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
m = Map("network", "Schnittstellen")
s = m:section(TypedSection, "interface")
s.addremove = true
p = s:option(ListValue, "proto", "Protokoll")
p:add_value("static", "statisch")
p:add_value("dhcp", "DHCP")
s:option(Value, "ipaddr", "IP-Adresse").optional = 1
s:option(Value, "netmask", "Netzmaske").optional = 1
s:option(Value, "gateway", "Gateway").optional = 1
s:option(Value, "dns", "DNS").optional = 1
s:option(Value, "mtu", "MTU").optional = 1
return m
|