]> git.proxmox.com Git - pve-network.git/blobdiff - PVE/API2/Network/SDN.pm
api: generate 'running-config' state instead of version increase on apply
[pve-network.git] / PVE / API2 / Network / SDN.pm
index 7292257ebbecf4b6527bf1f5f3244380fca9935d..f129d607e70db370adf9c75c02769012125a494e 100644 (file)
@@ -10,6 +10,7 @@ use PVE::RESTHandler;
 use PVE::RPCEnvironment;
 use PVE::SafeSyslog;
 use PVE::Tools qw(run_command);
+use PVE::Network::SDN;
 
 use PVE::API2::Network::SDN::Controllers;
 use PVE::API2::Network::SDN::Vnets;
@@ -118,6 +119,8 @@ __PACKAGE__->register_method ({
         my $rpcenv = PVE::RPCEnvironment::get();
         my $authuser = $rpcenv->get_user();
 
+       PVE::Network::SDN::commit_config();
+
         my $code = sub {
             $rpcenv->{type} = 'priv'; # to start tasks in background
            PVE::Cluster::check_cfs_quorum();