summaryrefslogtreecommitdiff
path: root/PVE/API2/Network/SDN/Controllers.pm
diff options
context:
space:
mode:
authorAlexandre Derumier <aderumier@odiso.com>2019-11-26 10:00:18 +0100
committerThomas Lamprecht <t.lamprecht@proxmox.com>2019-11-26 12:33:40 +0100
commit5d50e70b1011d3f8a10d6d3ea7ef92a055611f4e (patch)
tree05fd2c5a0a34aaa90040f56289f7a77f44c8f432 /PVE/API2/Network/SDN/Controllers.pm
parent4140be9e7918d97f8b0a5da7856714dbd61ea083 (diff)
api2: sdn: add reload config
fixme: current using pvesh Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
Diffstat (limited to 'PVE/API2/Network/SDN/Controllers.pm')
-rw-r--r--PVE/API2/Network/SDN/Controllers.pm24
1 files changed, 0 insertions, 24 deletions
diff --git a/PVE/API2/Network/SDN/Controllers.pm b/PVE/API2/Network/SDN/Controllers.pm
index 99fd138..7b8356d 100644
--- a/PVE/API2/Network/SDN/Controllers.pm
+++ b/PVE/API2/Network/SDN/Controllers.pm
@@ -153,30 +153,6 @@ __PACKAGE__->register_method ({
}});
__PACKAGE__->register_method ({
- name => 'apply_configuration',
- protected => 1,
- path => '',
- method => 'PUT',
- description => "Apply sdn controller changes.",
-# permissions => {
-# check => ['perm', '/cluster/sdn/controllers', ['SDN.Allocate']],
-# },
- parameters => {
- additionalProperties => 0,
- },
- returns => { type => 'null' },
- code => sub {
- my ($param) = @_;
-
- die "no sdn controller changes to apply" if !-e "/etc/pve/sdn/controllers.cfg.new";
- rename("/etc/pve/sdn/controllers.cfg.new", "/etc/pve/sdn/controllers.cfg")
- || die "applying sdn/controllers.cfg changes failed - $!\n";
-
-
- return undef;
- }});
-
-__PACKAGE__->register_method ({
name => 'revert_configuration',
protected => 1,
path => '',