]> git.proxmox.com Git - pve-network.git/blobdiff - PVE/Network/Network/VnetPlugin.pm
vnetplugin: make tag && transportzone non optional
[pve-network.git] / PVE / Network / Network / VnetPlugin.pm
index c2a4020786784e4d6dd3401c673fdef3151fccc5..a1d49a787c0c7800b0e503d52cbae71443d9d765 100644 (file)
@@ -17,16 +17,14 @@ sub properties {
        transportzone => {
             type => 'string',
             description => "transportzone id",
-           optional => 1,
        },
        tag => {
             type => 'integer',
             description => "vlan or vxlan id",
-           optional => 1,
        },
         name => {
             type => 'string',
-            description => "name of the network",
+            description => "name of the vnet",
            optional => 1,
         },
         mtu => {
@@ -54,12 +52,11 @@ sub properties {
 
 sub options {
     return {
-        transportzone => { optional => },
-        tag => { optional => },
+        transportzone => { optional => 0},
+        tag => { optional => 0},
         name => { optional => 1 },
         ipv4 => { optional => 1 },
         ipv6 => { optional => 1 },
-        name => { optional => 1 },
         mtu => { optional => 1 },
     };
 }