From 205e91662548e10fc515da720a00166b9557c431 Mon Sep 17 00:00:00 2001 From: Alexandre Derumier Date: Thu, 4 Apr 2019 10:18:31 +0200 Subject: [PATCH] vnetplugin: make tag && transportzone non optional --- PVE/Network/Network/VnetPlugin.pm | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/PVE/Network/Network/VnetPlugin.pm b/PVE/Network/Network/VnetPlugin.pm index c2a4020..a1d49a7 100644 --- a/PVE/Network/Network/VnetPlugin.pm +++ b/PVE/Network/Network/VnetPlugin.pm @@ -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 => 1 }, - tag => { optional => 1 }, + transportzone => { optional => 0}, + tag => { optional => 0}, name => { optional => 1 }, ipv4 => { optional => 1 }, ipv6 => { optional => 1 }, - name => { optional => 1 }, mtu => { optional => 1 }, }; } -- 2.39.2