]> git.proxmox.com Git - pve-firewall.git/blobdiff - src/PVE/Firewall.pm
define standard option for security group names
[pve-firewall.git] / src / PVE / Firewall.pm
index 1438125b4c31e298b37a9699502253d4698b6034..4375f9c14fd857df4a5c66e02442c4b9fb881dbe 100644 (file)
@@ -52,8 +52,16 @@ PVE::JSONSchema::register_standard_option('ipset-name', {
     description => "IP set name.",
     type => 'string',
     pattern => '[A-Za-z][A-Za-z0-9\-\_]+',
-    minLength => 2, 
-    maxLength => 20,                                             
+    minLength => 2,
+    maxLength => 20,                     
+});
+
+PVE::JSONSchema::register_standard_option('pve-security-group-name', {
+    description => "Security Group name.",
+    type => 'string',
+    pattern => '[A-Za-z][A-Za-z0-9\-\_]+',
+    minLength => 2,
+    maxLength => 20,                             
 });
 
 my $feature_ipset_nomatch = 0;