Merge pull request #4126 from wjowsa/vxlan-port

luci-proto-vxlan: add destination port option
This commit is contained in:
Jo-Philipp Wich 2020-06-03 10:32:42 +02:00 committed by GitHub
commit f2c9d0581a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View 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)';