diff options
Diffstat (limited to 'PVE/API2/Network/SDN/Controllers.pm')
| -rw-r--r-- | PVE/API2/Network/SDN/Controllers.pm | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/PVE/API2/Network/SDN/Controllers.pm b/PVE/API2/Network/SDN/Controllers.pm index 03da2ad..e16619c 100644 --- a/PVE/API2/Network/SDN/Controllers.pm +++ b/PVE/API2/Network/SDN/Controllers.pm @@ -132,6 +132,10 @@ __PACKAGE__->register_method ({ my $plugin = PVE::Network::SDN::Controllers::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::Controllers::lock_sdn_controllers_config( sub { |
