diff options
Diffstat (limited to 'src/PVE/API2/Network/SDN/Fabrics.pm')
| -rw-r--r-- | src/PVE/API2/Network/SDN/Fabrics.pm | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/PVE/API2/Network/SDN/Fabrics.pm b/src/PVE/API2/Network/SDN/Fabrics.pm index 18e51a9..5644fbe 100644 --- a/src/PVE/API2/Network/SDN/Fabrics.pm +++ b/src/PVE/API2/Network/SDN/Fabrics.pm @@ -9,6 +9,7 @@ use PVE::Network::SDN; use PVE::Network::SDN::Fabrics; use PVE::API2::Network::SDN::Fabrics::Fabric; +use PVE::API2::Network::SDN::Fabrics::Node; use PVE::RESTHandler; use base qw(PVE::RESTHandler); @@ -19,6 +20,11 @@ __PACKAGE__->register_method({ }); __PACKAGE__->register_method({ + subclass => "PVE::API2::Network::SDN::Fabrics::Node", + path => 'node', +}); + +__PACKAGE__->register_method({ name => 'index', path => '', method => 'GET', @@ -43,7 +49,7 @@ __PACKAGE__->register_method({ my ($param) = @_; my $res = [ - { subdir => 'fabric' }, { subdir => 'all' }, + { subdir => 'fabric' }, { subdir => 'node' }, { subdir => 'all' }, ]; return $res; |
