luci-proto-vxlan: add destination port option 4126/head
authorWojciech Jowsa <wojciech.jowsa@gmail.com>
Mon, 1 Jun 2020 14:34:22 +0000 (16:34 +0200)
committerWojciech Jowsa <wojciech.jowsa@gmail.com>
Mon, 1 Jun 2020 14:36:23 +0000 (16:36 +0200)
Signed-off-by: Wojciech Jowsa <wojciech.jowsa@gmail.com>
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)';