26a92b550f546c7a1ccdd5e0c2b66528c1ebe040
1 L
.NetworkModel
.Protocol
.extend({
3 description
: L
.tr('Dual-Stack Lite (RFC6333)'),
7 populateForm: function(section
, iface
)
9 var wan6
= L
.NetworkModel
.findWAN6();
11 section
.taboption('general', L
.cbi
.InputValue
, 'peeraddr', {
12 caption
: L
.tr('DS-Lite AFTR address'),
17 section
.taboption('general', L
.cbi
.InputValue
, 'ip6addr', {
18 caption
: L
.tr('Local IPv6 address'),
19 description
: L
.tr('Leave empty to use the current WAN address'),
21 placeholder
: wan6
? wan6
.getIPv6Addrs()[0] : undefined,
25 section
.taboption('advanced', L
.cbi
.NetworkList
, 'tunlink', {
26 caption
: L
.tr('Tunnel Link'),
27 initial
: wan6
? wan6
.name() : undefined,
31 section
.taboption('advanced', L
.cbi
.CheckboxValue
, 'defaultroute', {
32 caption
: L
.tr('Default route'),
33 description
: L
.tr('Create IPv4 default route via tunnel'),
38 section
.taboption('advanced', L
.cbi
.InputValue
, 'ttl', {
39 caption
: L
.tr('Override TTL'),
40 description
: L
.tr('Specifies the Time-to-Live on the tunnel interface'),
41 datatype
: 'range(1,255)',