[pve-devel] [PATCH pve-network 2/3] api: add missing additional properties=0 on network reload/revert

Alexandre Derumier aderumier at odiso.com
Mon Jun 17 11:26:35 CEST 2019


Signed-off-by: Alexandre Derumier <aderumier at odiso.com>
---
 PVE/API2/Network/SDN.pm | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/PVE/API2/Network/SDN.pm b/PVE/API2/Network/SDN.pm
index 2efc620..79aff4a 100644
--- a/PVE/API2/Network/SDN.pm
+++ b/PVE/API2/Network/SDN.pm
@@ -163,6 +163,9 @@ __PACKAGE__->register_method ({
 #    permissions => { 
 #	check => ['perm', '/cluster/network', ['Network.Allocate']],
 #    },
+    parameters => {
+	additionalProperties => 0,
+    },
     returns => { type => 'null' },
     code => sub {
 	my ($param) = @_;
@@ -184,6 +187,9 @@ __PACKAGE__->register_method ({
 #    permissions => { 
 #	check => ['perm', '/cluster/network', ['Network.Allocate']],
 #    },
+    parameters => {
+	additionalProperties => 0,
+    },
     returns => { type => 'null' },
     code => sub {
 	my ($param) = @_;
-- 
2.20.1




More information about the pve-devel mailing list