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.jae...@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


_______________________________________________
pve-devel mailing list
pve-devel@lists.proxmox.com
https://lists.proxmox.com/cgi-bin/mailman/listinfo/pve-devel

Reply via email to