Signed-off-by: Alexandre Derumier <aderum...@odiso.com>
---
 PVE/API2/Nodes.pm | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)

diff --git a/PVE/API2/Nodes.pm b/PVE/API2/Nodes.pm
index ddeafbef..93caf66f 100644
--- a/PVE/API2/Nodes.pm
+++ b/PVE/API2/Nodes.pm
@@ -54,7 +54,7 @@ use Socket;
 
 my $have_sdn;
 eval {
-    require PVE::API2::Network::SDN::Status;
+    require PVE::API2::Network::SDN::Zones::Status;
     $have_sdn = 1;
 };
 
@@ -149,8 +149,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',
     });
 }
 
@@ -214,6 +214,8 @@ __PACKAGE__->register_method ({
            { name => 'hosts' },
        ];
 
+       push @$result, { name => 'sdn' } if $have_sdn;
+
        return $result;
     }});
 
-- 
2.20.1

_______________________________________________
pve-devel mailing list
pve-devel@pve.proxmox.com
https://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-devel

Reply via email to