summaryrefslogtreecommitdiff
path: root/PVE/API2/Network/SDN.pm
diff options
context:
space:
mode:
authorAlexandre Derumier <aderumier@odiso.com>2020-10-05 17:08:46 +0200
committerThomas Lamprecht <t.lamprecht@proxmox.com>2020-10-06 18:17:19 +0200
commit5d3e0248bb8112e467ddaa5807d98dff06de3dfa (patch)
tree550a895e05b9dfc903e83e320ff5f492abc8dc6c /PVE/API2/Network/SDN.pm
parent7416e82d852c5ec537562601b2edda4bbf0622a5 (diff)
api: generate 'running-config' state instead of version increase on apply
This is the source configuration for generate local configuration /sdn/*.cfg are pending configs Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
Diffstat (limited to 'PVE/API2/Network/SDN.pm')
-rw-r--r--PVE/API2/Network/SDN.pm3
1 files changed, 3 insertions, 0 deletions
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();