From 3cd9625d8ca3f0e25b072c5a8c4984714a1ccd04 Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Sun, 19 Nov 2023 12:54:52 +0100 Subject: [PATCH] Merge pull request #6707 from ElbertMai/fix_vxlan6_ui (cherry picked from commit 41cee29f3bc832bbadc24786f082fddfb78c009d) --- .../htdocs/luci-static/resources/protocol/vxlan6.js | 9 +++++++-- 1 file 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; -- 2.30.2