]> git.proxmox.com Git - pve-network.git/commitdiff
vnetplugin: make tag && transportzone non optional
authorAlexandre Derumier <aderumier@odiso.com>
Thu, 4 Apr 2019 08:18:31 +0000 (10:18 +0200)
committerDietmar Maurer <dietmar@proxmox.com>
Thu, 4 Apr 2019 09:12:01 +0000 (11:12 +0200)
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 },
     };
 }