[pve-devel] [PATCH pve-manager 3/3] api2 : nodes : use zones api status

Alexandre Derumier aderumier at odiso.com
Tue Oct 22 16:59:20 CEST 2019


Signed-off-by: Alexandre Derumier <aderumier at odiso.com>
---
 PVE/API2/Nodes.pm | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/PVE/API2/Nodes.pm b/PVE/API2/Nodes.pm
index 9e731e05..fa33ae00 100644
--- a/PVE/API2/Nodes.pm
+++ b/PVE/API2/Nodes.pm
@@ -52,7 +52,7 @@ use Socket;
 
 my $have_sdn;
 eval {
-    require PVE::API2::Network::SDN::Status;
+    require PVE::API2::Network::SDN::Zones::Status;
     $have_sdn = 1;
 };
 
@@ -147,8 +147,8 @@ __PACKAGE__->register_method ({
 
 if ($have_sdn) {
     __PACKAGE__->register_method ({
-	subclass => "PVE::API2::Network::SDN::Status",
-	path => 'sdn',
+	subclass => "PVE::API2::Network::SDN::Zones::Status",
+	path => 'sdn/zones',
     });
 }
 
@@ -210,6 +210,7 @@ __PACKAGE__->register_method ({
 	    { name => 'certificates' },
 	    { name => 'config' },
 	    { name => 'hosts' },
+	    { name => 'sdn' },
 	];
 
 	return $result;
-- 
2.20.1




More information about the pve-devel mailing list