[pve-devel] [PATCH widget-toolkit] Fix #2711: vlan edit: Allow 'v' as VLAN separator
Dominic Jäger
d.jaeger at proxmox.com
Wed Apr 14 11:53:13 CEST 2021
Set the VLAN raw device and VLAN ID fields in the GUI correctly when
VLANs are specified with 'v' instead of a dot, vmbr0v5 for example.
Signed-off-by: Dominic Jäger <d.jaeger at proxmox.com>
---
src/Utils.js | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/Utils.js b/src/Utils.js
index 3fd8f91..2d58ad9 100644
--- a/src/Utils.js
+++ b/src/Utils.js
@@ -1046,7 +1046,7 @@ utilities: {
me.HostPortBrackets_match = new RegExp("^\\[(" + IPV6_REGEXP + "|" + IPV4_REGEXP + "|" + DnsName_REGEXP + ")\\](?::(\\d+))?$");
me.IP6_dotnotation_match = new RegExp("^(" + IPV6_REGEXP + ")(?:\\.(\\d+))?$");
me.Vlan_match = /^vlan(\d+)/;
- me.VlanInterface_match = /(\w+)\.(\d+)/;
+ me.VlanInterface_match = /(\w+)[v.](\d+)/;
},
});
--
2.20.1
More information about the pve-devel
mailing list