]> git.proxmox.com Git - pve-network.git/blobdiff - PVE/API2/Network/SDN/Zones.pm
create /etc/pve/sdn directory
[pve-network.git] / PVE / API2 / Network / SDN / Zones.pm
index d1492902425226fd2f166e2e754c4cbd3ab3d956..293880a51b57d4ff19fa5f4e6e7a6254788e2131 100644 (file)
@@ -139,6 +139,10 @@ __PACKAGE__->register_method ({
        my $plugin = PVE::Network::SDN::Zones::Plugin->lookup($type);
        my $opts = $plugin->check_config($id, $param, 1, 1);
 
+        # create /etc/pve/sdn directory
+        PVE::Cluster::check_cfs_quorum();
+        mkdir("/etc/pve/sdn");
+
         PVE::Network::SDN::Zones::lock_sdn_zones_config(
            sub {