Merge pull request #4126 from wjowsa/vxlan-port
authorJo-Philipp Wich <jo@mein.io>
Wed, 3 Jun 2020 08:32:42 +0000 (10:32 +0200)
committerGitHub <noreply@github.com>
Wed, 3 Jun 2020 08:32:42 +0000 (10:32 +0200)
luci-proto-vxlan: add destination port option

protocols/luci-proto-vxlan/htdocs/luci-static/resources/protocol/vxlan.js

index 8afd476a533a45a31577c3b805089cfd37509db1..9927f0bc655357bc9a15ecdd63fc710d4ff19061 100644 (file)
@@ -45,6 +45,11 @@ return network.registerProtocol('vxlan', {
                o.optional = true;
                o.datatype = 'ip4addr("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;
                o.datatype = 'range(1, 16777216)';