list depends 'proto=static, ipaddr, netmask'
list depends 'proto=static, ip6addr'
list depends 'proto=pppoe, username, password'
+ list depends 'proto=pppoa, username, password, encaps, vpi, vci'
list depends 'proto=ppp, device'
list depends 'proto=3g, device'
list depends 'proto=pptp, username, password, server'
list depends 'proto=pptp'
list depends 'proto=ppp'
list depends 'proto=3g'
+ list depends 'proto=pppoa'
config variable
option name 'demand'
option section 'network.interface'
option datatype 'uint'
list depends 'proto=pppoe'
+ list depends 'proto=pppoa'
list depends 'proto=pptp'
list depends 'proto=ppp'
list depends 'proto=3g'
option title 'Username'
option section 'network.interface'
option datatype 'string'
+ list depends 'proto=pppoa'
list depends 'proto=pppoe'
list depends 'proto=pptp'
list depends 'proto=ppp'
option section 'network.interface'
option datatype 'string'
list depends 'proto=pppoe'
+ list depends 'proto=pppoa'
list depends 'proto=pptp'
list depends 'proto=ppp'
list depends 'proto=3g'
+config variable
+ option name 'encaps'
+ option title 'PPPoA encapsulation mode'
+ option section 'network.interface'
+ option type 'enum'
+ list depends 'proto=pppoa'
+
+config enum
+ option variable 'network.interface.encaps'
+ option value 'vc'
+ option title 'VC'
+
+config enum
+ option variable 'network.interface.encaps'
+ option value 'llc'
+ option title 'LLC'
+
+config variable
+ option name 'vpi'
+ option title 'PPPoA VPI'
+ option section 'network.interface'
+ option datatype 'uint'
+ list depends 'proto=pppoa'
+
+config variable
+ option name 'vci'
+ option title 'PPPoA VCI'
+ option section 'network.interface'
+ option datatype 'uint'
+ list depends 'proto=pppoa'
+
config variable
option name 'server'
option title 'PPTP server'
option section 'network.interface'
option datatype 'boolean'
list depends 'proto=ppp'
+ list depends 'proto=pppoa'
+ list depends 'proto=pppoe'
+ list depends 'proto=pptp'
list depends 'proto=3g'
config variable
option section 'network.interface'
option datatype 'boolean'
list depends 'proto=ppp'
+ list depends 'proto=pppoe'
+ list depends 'proto=pppoa'
+ list depends 'proto=pptp'
list depends 'proto=3g'
config variable
option section 'network.interface'
option datatype 'boolean'
list depends 'proto=ppp'
+ list depends 'proto=pppoe'
+ list depends 'proto=pppoa'
+ list depends 'proto=pptp'
list depends 'proto=3g'
config variable
option section 'network.interface'
option datatype 'file'
list depends 'proto=ppp'
+ list depends 'proto=pppoe'
+ list depends 'proto=pppoa'
+ list depends 'proto=pptp'
list depends 'proto=3g'
config variable
option section 'network.interface'
option datatype 'file'
list depends 'proto=ppp'
+ list depends 'proto=pppoe'
+ list depends 'proto=pppoa'
+ list depends 'proto=pptp'
list depends 'proto=3g'
config variable
option section 'network.interface'
option datatype 'string'
list depends 'proto=ppp'
+ list depends 'proto=pppoe'
+ list depends 'proto=pppoa'
+ list depends 'proto=pptp'
list depends 'proto=3g'
config variable
option value 'pppoe'
option title 'Interface is a PPPoE connection'
+config enum
+ option variable 'network.interface.proto'
+ option value 'pppoa'
+ option title 'Interface is a PPPoA connection'
+
config enum
option variable 'network.interface.proto'
option value 'ppp'
pincode:depends("proto", "3g")
end
-if has_pppd or has_pppoe or has_3g or has_pptp then
+if has_pppd or has_pppoe or has_pppoa or has_3g or has_pptp then
user = s:option(Value, "username", translate("username"))
user.rmempty = true
user:depends("proto", "pptp")
user:depends("proto", "pppoe")
+ user:depends("proto", "pppoa")
user:depends("proto", "ppp")
user:depends("proto", "3g")
pass.password = true
pass:depends("proto", "pptp")
pass:depends("proto", "pppoe")
+ pass:depends("proto", "pppoa")
pass:depends("proto", "ppp")
pass:depends("proto", "3g")
ka.optional = true
ka:depends("proto", "pptp")
ka:depends("proto", "pppoe")
+ ka:depends("proto", "pppoa")
ka:depends("proto", "ppp")
ka:depends("proto", "3g")
demand.optional = true
demand:depends("proto", "pptp")
demand:depends("proto", "pppoe")
+ demand:depends("proto", "pppoa")
demand:depends("proto", "ppp")
demand:depends("proto", "3g")
end
-if has_pppd or has_3g then
+if has_pppoa then
+ encaps = s:option(ListValue, "encaps", translate("network_interface_encaps"))
+ encaps.optional = false
+ encaps:depends("proto", "pppoa")
+ encaps:value("", translate("cbi_select"))
+ encaps:value("vc", "VC")
+ encaps:value("llc", "LLC")
+
+ vpi = s:option(Value, "vpi", "VPI")
+ vpi.optional = false
+ vpi:depends("proto", "pppoa")
+
+ vci = s:option(Value, "vci", "VCI")
+ vci.optional = false
+ vci:depends("proto", "pppoa")
+end
+
+if has_pptp or has_pppd or has_pppoe or has_pppoa or has_3g then
device = s:option(Value, "device",
translate("network_interface_device"),
translate("network_interface_device_desc")
translate("network_interface_defaultroute_desc")
)
defaultroute:depends("proto", "ppp")
+ defaultroute:depends("proto", "pppoa")
+ defaultroute:depends("proto", "pppoe")
+ defaultroute:depends("proto", "pptp")
defaultroute:depends("proto", "3g")
defaultroute.rmempty = false
function defaultroute.cfgvalue(...)
translate("network_interface_peerdns_desc")
)
peerdns:depends("proto", "ppp")
+ peerdns:depends("proto", "pppoa")
+ peerdns:depends("proto", "pppoe")
+ peerdns:depends("proto", "pptp")
+ peerdns:depends("proto", "3g")
peerdns.rmempty = false
function peerdns.cfgvalue(...)
return ( AbstractValue.cfgvalue(...) or '1' )
ipv6 = s:option(Flag, "ipv6", translate("network_interface_ipv6") )
ipv6:depends("proto", "ppp")
- --ipv6:depends("proto", "3g")
+ ipv6:depends("proto", "pppoa")
+ ipv6:depends("proto", "pppoe")
+ ipv6:depends("proto", "pptp")
+ ipv6:depends("proto", "3g")
connect = s:option(Value, "connect",
translate("network_interface_connect"),
)
connect.optional = true
connect:depends("proto", "ppp")
+ connect:depends("proto", "pppoe")
+ connect:depends("proto", "pppoa")
+ connect:depends("proto", "pptp")
connect:depends("proto", "3g")
disconnect = s:option(Value, "disconnect",
)
disconnect.optional = true
disconnect:depends("proto", "ppp")
+ disconnect:depends("proto", "pppoe")
+ disconnect:depends("proto", "pppoa")
+ disconnect:depends("proto", "pptp")
disconnect:depends("proto", "3g")
pppd_options = s:option(Value, "pppd_options",
)
pppd_options.optional = true
pppd_options:depends("proto", "ppp")
+ pppd_options:depends("proto", "pppoa")
+ pppd_options:depends("proto", "pppoe")
+ pppd_options:depends("proto", "pptp")
pppd_options:depends("proto", "3g")
maxwait = s:option(Value, "maxwait",