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("a_n_ptp"), translate("a_n_ptp1"))
16 s = m:section(TypedSection, "interface", "")
18 s:depends("proto", "pppoe")
19 s:depends("proto", "pptp")
21 p = s:option(ListValue, "proto", translate("protocol"))
22 p:value("pppoe", "PPPoE")
23 p:value("pptp", "PPTP")
26 s:option(Value, "ifname", translate("interface"))
28 s:option(Value, "username", translate("username"))
29 s:option(Value, "password", translate("password"))
31 s:option(Value, "keepalive").optional = true
33 s:option(Value, "demand").optional = true
35 srv = s:option(Value, "server")
36 srv:depends("proto", "pptp")
39 mtu = s:option(Value, "mtu", "MTU")