+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