Signed-off-by: Alexandre Derumier <aderum...@odiso.com> --- PVE/API2/Nodes.pm | 13 +++++++++++++ 1 file changed, 13 insertions(+)
diff --git a/PVE/API2/Nodes.pm b/PVE/API2/Nodes.pm index 9921c9e1..af9fe732 100644 --- a/PVE/API2/Nodes.pm +++ b/PVE/API2/Nodes.pm @@ -50,6 +50,12 @@ use PVE::API2::Disks; use JSON; use Socket; +my $have_sdn; +eval { + require PVE::API2::Network::SDN::Status; + $have_sdn = 1; +}; + use base qw(PVE::RESTHandler); __PACKAGE__->register_method ({ @@ -139,6 +145,13 @@ __PACKAGE__->register_method ({ path => 'config', }); +if ($have_sdn) { + __PACKAGE__->register_method ({ + subclass => "PVE::API2::Network::SDN::Status", + path => 'sdn', + }); +} + __PACKAGE__->register_method ({ name => 'index', path => '', -- 2.20.1 _______________________________________________ pve-devel mailing list pve-devel@pve.proxmox.com https://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-devel