diff options
| author | Alexandre Derumier <aderumier@odiso.com> | 2020-10-05 17:08:38 +0200 |
|---|---|---|
| committer | Thomas Lamprecht <t.lamprecht@proxmox.com> | 2020-10-06 17:30:01 +0200 |
| commit | c33dd81818c4b04119b0dc43cbbf8548c58df047 (patch) | |
| tree | bc72777bfd687a181626c47b79ef52278e9b225d /PVE/API2/Network/SDN.pm | |
| parent | a5b8d7de4c7f6e9e6853e3d7e3f17a4cbf6aa6a6 (diff) | |
add subnet plugin
Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Diffstat (limited to 'PVE/API2/Network/SDN.pm')
| -rw-r--r-- | PVE/API2/Network/SDN.pm | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/PVE/API2/Network/SDN.pm b/PVE/API2/Network/SDN.pm index 3f497fc..38af746 100644 --- a/PVE/API2/Network/SDN.pm +++ b/PVE/API2/Network/SDN.pm @@ -14,6 +14,7 @@ use PVE::Tools qw(run_command); use PVE::API2::Network::SDN::Controllers; use PVE::API2::Network::SDN::Vnets; use PVE::API2::Network::SDN::Zones; +use PVE::API2::Network::SDN::Subnets; use base qw(PVE::RESTHandler); @@ -32,6 +33,11 @@ __PACKAGE__->register_method ({ path => 'controllers', }); +__PACKAGE__->register_method ({ + subclass => "PVE::API2::Network::SDN::Subnets", + path => 'subnets', +}); + __PACKAGE__->register_method({ name => 'index', path => '', @@ -61,6 +67,7 @@ __PACKAGE__->register_method({ { id => 'vnets' }, { id => 'zones' }, { id => 'controllers' }, + { id => 'subnets' }, ]; return $res; |
