[pve-devel] [PATCH close #545, #5203: Allow bridges to have any valid interface name 1/2]

Jillian Morgan jillian.morgan at primordial.ca
Fri Jan 26 18:17:29 CET 2024


Allow bridges to have any valid interface name
Repo: proxmox-widget-toolkit

Allow the web UI to accept bridge interfaces with any valid interface name,
rather than being limited to the arbitrary "vmbr" prefix.

Signed-off-by: Jillian Morgan <jillian.morgan at primordial.ca>
---
 proxmox-widget-toolkit/src/Toolkit.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/Toolkit.js b/src/Toolkit.js
index 6fd73f5..3a03f55 100644
--- a/src/Toolkit.js
+++ b/src/Toolkit.js
@@ -76,7 +76,7 @@ Ext.apply(Ext.form.field.VTypes, {
     MacPrefixText: gettext('Example') + ': 02:8f - ' + gettext('only unicast addresses are allowed'),
 
     BridgeName: function(v) {
-	return (/^vmbr\d{1,4}$/).test(v);
+	return (/^[a-z][a-z0-9_]{1,20}$/).test(v);
     },
     VlanName: function(v) {
        if (Proxmox.Utils.VlanInterface_match.test(v)) {



More information about the pve-devel mailing list