diff options
| author | Alexandre Derumier <aderumier@odiso.com> | 2019-11-28 14:34:48 +0100 |
|---|---|---|
| committer | Thomas Lamprecht <t.lamprecht@proxmox.com> | 2019-11-29 08:40:24 +0100 |
| commit | 45c3f15ce98b3d534ab3b8baf46982af73ea40a9 (patch) | |
| tree | 041d2978796d77e1efe0855310a3c6dba092e935 /PVE/API2/Network/SDN/Vnets.pm | |
| parent | 1f543c5f3c7b64cd2278e71a1480c8a3ce0b430f (diff) | |
create /etc/pve/sdn directory
like for /etc/pve/ha, create it in api create
Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
Diffstat (limited to 'PVE/API2/Network/SDN/Vnets.pm')
| -rw-r--r-- | PVE/API2/Network/SDN/Vnets.pm | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/PVE/API2/Network/SDN/Vnets.pm b/PVE/API2/Network/SDN/Vnets.pm index d66cd14..80fc3c6 100644 --- a/PVE/API2/Network/SDN/Vnets.pm +++ b/PVE/API2/Network/SDN/Vnets.pm @@ -112,6 +112,10 @@ __PACKAGE__->register_method ({ my $type = extract_param($param, 'type'); my $id = extract_param($param, 'vnet'); + # create /etc/pve/sdn directory + PVE::Cluster::check_cfs_quorum(); + mkdir("/etc/pve/sdn"); + PVE::Network::SDN::Vnets::lock_sdn_vnets_config( sub { |
