[pve-devel] [PATCH pve-network 4/5] vnet : alias : check pattern

Alexandre Derumier aderumier at odiso.com
Mon Aug 23 15:22:17 CEST 2021


fix : https://bugzilla.proxmox.com/show_bug.cgi?id=2966
Signed-off-by: Alexandre Derumier <aderumier at odiso.com>
---
 PVE/Network/SDN/VnetPlugin.pm | 2 ++
 1 file changed, 2 insertions(+)

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,
         },
     };
-- 
2.30.2





More information about the pve-devel mailing list