X-Git-Url: https://git.proxmox.com/?p=pve-network.git;a=blobdiff_plain;f=PVE%2FAPI2%2FNetwork%2FSDN%2FZones.pm;h=ce99bd80d761ebd81d0dd202fa026b413597fc34;hp=a4478130a4eea1a172d5a30600f9e2f7658d6744;hb=5d50e70b1011d3f8a10d6d3ea7ef92a055611f4e;hpb=4140be9e7918d97f8b0a5da7856714dbd61ea083 diff --git a/PVE/API2/Network/SDN/Zones.pm b/PVE/API2/Network/SDN/Zones.pm index a447813..ce99bd8 100644 --- a/PVE/API2/Network/SDN/Zones.pm +++ b/PVE/API2/Network/SDN/Zones.pm @@ -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,