[pve-devel] [PATCH close #545, #5203: Allow bridges to have any valid interface name 1/2]
Stefan Hanreich
s.hanreich at proxmox.com
Wed Feb 21 15:13:48 CET 2024
On 1/26/24 18:17, Jillian Morgan wrote:
> 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);
character limit for interfaces is 15 characters (excluding null
terminator), so we should set the regex accordingly
> },
> VlanName: function(v) {
> if (Proxmox.Utils.VlanInterface_match.test(v)) {
>
> _______________________________________________
> pve-devel mailing list
> pve-devel at lists.proxmox.com
> https://lists.proxmox.com/cgi-bin/mailman/listinfo/pve-devel
>
>
More information about the pve-devel
mailing list