[pve-devel] [PATCH pve-network 5/5] vnets: alias: fix regex
Alexandre Derumier
aderumier at odiso.com
Fri Nov 5 09:06:45 CET 2021
---
PVE/Network/SDN/VnetPlugin.pm | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/PVE/Network/SDN/VnetPlugin.pm b/PVE/Network/SDN/VnetPlugin.pm
index 121fb7f..062904c 100644
--- a/PVE/Network/SDN/VnetPlugin.pm
+++ b/PVE/Network/SDN/VnetPlugin.pm
@@ -68,7 +68,7 @@ sub properties {
alias => {
type => 'string',
description => "alias name of the vnet",
- pattern => qr/[a-z0-9\._\-\+\s]{1,256}/i,
+ pattern => qr/[\(\)-_.\w\d\s]{0,256}/i,
maxLength => 256,
optional => 1,
},
--
2.30.2
More information about the pve-devel
mailing list