1 L
.network
.Protocol
.extend({
3 description
: L
.tr('IPv6-over-IPv4 (6rd)'),
7 populateForm: function(section
, iface
)
9 var wan
= L
.network
.findWAN();
11 section
.taboption('general', L
.cbi
.InputValue
, 'peeraddr', {
12 caption
: L
.tr('6RD Gateway'),
17 section
.taboption('general', L
.cbi
.InputValue
, 'ipaddr', {
18 caption
: L
.tr('Local IPv4 address'),
19 description
: L
.tr('Leave empty to use the current WAN address'),
21 placeholder
: wan
? wan
.getIPv4Addrs()[0] : undefined,
25 section
.taboption('general', L
.cbi
.InputValue
, 'ip4prefixlen', {
26 caption
: L
.tr('IPv4 prefix length'),
27 description
: L
.tr('The length of the IPv4 prefix in bits, the remainder is used in the IPv6 addresses'),
28 datatype
: 'range(0, 32)',
33 section
.taboption('general', L
.cbi
.InputValue
, 'ip6prefix', {
34 caption
: L
.tr('IPv6 prefix'),
35 description
: L
.tr('The IPv6 prefix assigned to the provider, usually ends with "::"'),
40 section
.taboption('general', L
.cbi
.InputValue
, 'ip6prefixlen', {
41 caption
: L
.tr('IPv6 prefix length'),
42 description
: L
.tr('The length of the IPv6 prefix in bits'),
43 datatype
: 'range(0, 128)',
48 section
.taboption('advanced', L
.cbi
.CheckboxValue
, 'defaultroute', {
49 caption
: L
.tr('Default route'),
50 description
: L
.tr('Create IPv6 default route via tunnel'),
55 section
.taboption('advanced', L
.cbi
.InputValue
, 'ttl', {
56 caption
: L
.tr('Override TTL'),
57 description
: L
.tr('Specifies the Time-to-Live on the tunnel interface'),
58 datatype
: 'range(1,255)',