summaryrefslogtreecommitdiff
path: root/PVE/API2/Network/SDN
diff options
context:
space:
mode:
authorAlexandre Derumier <aderumier@odiso.com>2020-04-13 08:13:10 +0200
committerThomas Lamprecht <t.lamprecht@proxmox.com>2020-05-02 19:14:58 +0200
commitf703d2ae09b7f877c5afa23d1109426b83ed3b69 (patch)
tree7038333f2a2cc2f17fee78fbb8c3b4f6c1f8ca4b /PVE/API2/Network/SDN
parent2d4c068e0f70d2f6af50751f737c593c355e4220 (diff)
remove .new files
Diffstat (limited to 'PVE/API2/Network/SDN')
-rw-r--r--PVE/API2/Network/SDN/Controllers.pm22
-rw-r--r--PVE/API2/Network/SDN/Vnets.pm22
-rw-r--r--PVE/API2/Network/SDN/Zones.pm22
3 files changed, 0 insertions, 66 deletions
diff --git a/PVE/API2/Network/SDN/Controllers.pm b/PVE/API2/Network/SDN/Controllers.pm
index e16619c..50491eb 100644
--- a/PVE/API2/Network/SDN/Controllers.pm
+++ b/PVE/API2/Network/SDN/Controllers.pm
@@ -157,28 +157,6 @@ __PACKAGE__->register_method ({
}});
__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,
path => '{controller}',
diff --git a/PVE/API2/Network/SDN/Vnets.pm b/PVE/API2/Network/SDN/Vnets.pm
index cef631c..a9561f1 100644
--- a/PVE/API2/Network/SDN/Vnets.pm
+++ b/PVE/API2/Network/SDN/Vnets.pm
@@ -138,28 +138,6 @@ __PACKAGE__->register_method ({
}});
__PACKAGE__->register_method ({
- name => 'revert_configuration',
- protected => 1,
- path => '',
- method => 'DELETE',
- description => "Revert sdn vnet changes.",
- permissions => {
- check => ['perm', '/sdn/vnets', ['SDN.Allocate']],
- },
- parameters => {
- additionalProperties => 0,
- },
- returns => { type => 'null' },
- code => sub {
- my ($param) = @_;
-
- die "no sdn vnets changes to revert" if !-e "/etc/pve/sdn/vnets.cfg.new";
- unlink "/etc/pve/sdn/vnets.cfg.new";
-
- return undef;
- }});
-
-__PACKAGE__->register_method ({
name => 'update',
protected => 1,
path => '{vnet}',
diff --git a/PVE/API2/Network/SDN/Zones.pm b/PVE/API2/Network/SDN/Zones.pm
index 293880a..9ea2189 100644
--- a/PVE/API2/Network/SDN/Zones.pm
+++ b/PVE/API2/Network/SDN/Zones.pm
@@ -165,28 +165,6 @@ __PACKAGE__->register_method ({
}});
__PACKAGE__->register_method ({
- name => 'revert_configuration',
- protected => 1,
- path => '',
- method => 'DELETE',
- description => "Revert sdn zone changes.",
- permissions => {
- check => ['perm', '/sdn/zones', ['SDN.Allocate']],
- },
- parameters => {
- additionalProperties => 0,
- },
- returns => { type => 'null' },
- code => sub {
- my ($param) = @_;
-
- die "no sdn zones changes to revert" if !-e "/etc/pve/sdn/zones.cfg.new";
- unlink "/etc/pve/sdn/zones.cfg.new";
-
- return undef;
- }});
-
-__PACKAGE__->register_method ({
name => 'update',
protected => 1,
path => '{zone}',