]> git.proxmox.com Git - pve-network.git/blobdiff - PVE/API2/Network/SDN/Vnets.pm
api2: sdn: add reload config
[pve-network.git] / PVE / API2 / Network / SDN / Vnets.pm
index 0526b0615a81b9450fac1a7709e3c37304adbfe2..bb3415f3b718b64207c108ed728ae9aa47f00768 100644 (file)
@@ -133,30 +133,6 @@ __PACKAGE__->register_method ({
        return undef;
     }});
 
-__PACKAGE__->register_method ({
-    name => 'apply_configuration',
-    protected => 1,
-    path => '',
-    method => 'PUT',
-    description => "Apply sdn vnet changes.",
-#    permissions => {
-#      check => ['perm', '/cluster/sdn/vnets', ['SDN.Allocate']],
-#    },
-    parameters => {
-       additionalProperties => 0,
-    },
-    returns => { type => 'null' },
-    code => sub {
-       my ($param) = @_;
-
-       die "no sdn vnet changes to apply" if !-e "/etc/pve/sdn/vnets.cfg.new";
-       rename("/etc/pve/sdn/vnets.cfg.new", "/etc/pve/sdn/vnets.cfg")
-           || die "applying sdn/vnets.cfg changes failed - $!\n";
-
-
-       return undef;
-    }});
-
 __PACKAGE__->register_method ({
     name => 'revert_configuration',
     protected => 1,