summaryrefslogtreecommitdiffhomepage
path: root/protocols/luci-proto-vxlan/htdocs/luci-static/resources
diff options
context:
space:
mode:
authorElbert Mai <code@elbertmai.com>2023-11-18 19:02:46 -0800
committerElbert Mai <code@elbertmai.com>2023-11-18 19:02:46 -0800
commit3d5d77fe13adab33f05be45dc8e324e228338493 (patch)
tree6b395c67486d4e71e493211528402357c71d5208 /protocols/luci-proto-vxlan/htdocs/luci-static/resources
parenta9849edf23a2993737c9d5f2f6a95d79b03a2eda (diff)
luci-proto-vxlan: Enable IPv6 address and port settings
Fix VXLAN6 settings form to allow configuration of IPv6 addresses and destination port in LuCI. Signed-off-by: Elbert Mai <code@elbertmai.com>
Diffstat (limited to 'protocols/luci-proto-vxlan/htdocs/luci-static/resources')
-rw-r--r--protocols/luci-proto-vxlan/htdocs/luci-static/resources/protocol/vxlan6.js9
1 files changed, 7 insertions, 2 deletions
diff --git a/protocols/luci-proto-vxlan/htdocs/luci-static/resources/protocol/vxlan6.js b/protocols/luci-proto-vxlan/htdocs/luci-static/resources/protocol/vxlan6.js
index 30250cdcfa..04e702897b 100644
--- a/protocols/luci-proto-vxlan/htdocs/luci-static/resources/protocol/vxlan6.js
+++ b/protocols/luci-proto-vxlan/htdocs/luci-static/resources/protocol/vxlan6.js
@@ -39,11 +39,16 @@ return network.registerProtocol('vxlan6', {
o = s.taboption('general', form.Value, 'peer6addr', _('Remote IPv6 address'), _('The IPv6 address or the fully-qualified domain name of the remote end.'));
o.optional = false;
- o.datatype = 'or(hostname,cidr6)';
+ o.datatype = 'or(hostname,ip6addr("nomask"))';
o = s.taboption('general', form.Value, 'ip6addr', _('Local IPv6 address'), _('The local IPv6 address over which the tunnel is created (optional).'));
o.optional = true;
- o.datatype = 'cidr6';
+ o.datatype = 'ip6addr("nomask")';
+
+ o = s.taboption('general', form.Value, 'port', _('Destination port'));
+ o.optional = true;
+ o.placeholder = 4789;
+ o.datatype = 'port';
o = s.taboption('general', form.Value, 'vid', _('VXLAN network identifier'), _('ID used to uniquely identify the VXLAN'));
o.optional = true;