From: Alexandre Derumier Date: Mon, 23 Aug 2021 13:22:17 +0000 (+0200) Subject: vnet : alias : check pattern X-Git-Url: https://git.puffer.fish/?a=commitdiff_plain;h=78d58f66fd733494fdd1ed4600bf874c5c142903;p=mirror%2Fpve-network.git vnet : alias : check pattern fix : https://bugzilla.proxmox.com/show_bug.cgi?id=2966 Signed-off-by: Alexandre Derumier --- diff --git a/PVE/Network/SDN/VnetPlugin.pm b/PVE/Network/SDN/VnetPlugin.pm index 96a13b4..121fb7f 100644 --- a/PVE/Network/SDN/VnetPlugin.pm +++ b/PVE/Network/SDN/VnetPlugin.pm @@ -68,6 +68,8 @@ sub properties { alias => { type => 'string', description => "alias name of the vnet", + pattern => qr/[a-z0-9\._\-\+\s]{1,256}/i, + maxLength => 256, optional => 1, }, };