]> git.proxmox.com Git - pve-network.git/blobdiff - PVE/API2/Network/SDN/Controllers.pm
remove .new files
[pve-network.git] / PVE / API2 / Network / SDN / Controllers.pm
index e16619c6862e430751807ca88dd37f8c0b7cd7a7..50491ebd3b81eafa6c7d30e3cf0fa9a4f0226c50 100644 (file)
@@ -156,28 +156,6 @@ __PACKAGE__->register_method ({
        return undef;
     }});
 
-__PACKAGE__->register_method ({
-    name => 'revert_configuration',
-    protected => 1,
-    path => '',
-    method => 'DELETE',
-    description => "Revert sdn controller changes.",
-    permissions => {
-       check => ['perm', '/sdn/controllers', ['SDN.Allocate']],
-    },
-    parameters => {
-       additionalProperties => 0,
-    },
-    returns => { type => 'null' },
-    code => sub {
-       my ($param) = @_;
-
-       die "no sdn controllers changes to revert" if !-e "/etc/pve/sdn/controllers.cfg.new";
-       unlink "/etc/pve/sdn/controllers.cfg.new";
-
-       return undef;
-    }});
-
 __PACKAGE__->register_method ({
     name => 'update',
     protected => 1,