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