X-Git-Url: https://git.proxmox.com/?p=pve-network.git;a=blobdiff_plain;f=PVE%2FAPI2%2FNetwork%2FSDN.pm;fp=PVE%2FAPI2%2FNetwork%2FSDN.pm;h=f129d607e70db370adf9c75c02769012125a494e;hp=7292257ebbecf4b6527bf1f5f3244380fca9935d;hb=5d3e0248bb8112e467ddaa5807d98dff06de3dfa;hpb=7416e82d852c5ec537562601b2edda4bbf0622a5 diff --git a/PVE/API2/Network/SDN.pm b/PVE/API2/Network/SDN.pm index 7292257..f129d60 100644 --- a/PVE/API2/Network/SDN.pm +++ b/PVE/API2/Network/SDN.pm @@ -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();