diff options
| author | Alexandre Derumier <aderumier@odiso.com> | 2020-10-05 17:08:59 +0200 |
|---|---|---|
| committer | Thomas Lamprecht <t.lamprecht@proxmox.com> | 2020-10-06 18:17:19 +0200 |
| commit | 3926d9a7b6b235e7f07313ce8bd9086bd0405bac (patch) | |
| tree | a601eca4a932f26b573bf6e19fa9f72a233ecbaf /PVE/API2/Network/SDN/Vnets.pm | |
| parent | f6f2aa1643cc4598fe72362c1318a77814c9a60a (diff) | |
subnets: move api to /sdn/vnet/<vnet>/subnets && make vnet option not optionnal
Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
Diffstat (limited to 'PVE/API2/Network/SDN/Vnets.pm')
| -rw-r--r-- | PVE/API2/Network/SDN/Vnets.pm | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/PVE/API2/Network/SDN/Vnets.pm b/PVE/API2/Network/SDN/Vnets.pm index 58ec21f..4836500 100644 --- a/PVE/API2/Network/SDN/Vnets.pm +++ b/PVE/API2/Network/SDN/Vnets.pm @@ -12,6 +12,7 @@ use PVE::Network::SDN::Zones::Plugin; use PVE::Network::SDN::Vnets; use PVE::Network::SDN::VnetPlugin; use PVE::Network::SDN::Subnets; +use PVE::API2::Network::SDN::Subnets; use Storable qw(dclone); use PVE::JSONSchema qw(get_standard_option); @@ -21,6 +22,11 @@ use PVE::RESTHandler; use base qw(PVE::RESTHandler); +__PACKAGE__->register_method ({ + subclass => "PVE::API2::Network::SDN::Subnets", + path => '{vnet}/subnets', +}); + my $api_sdn_vnets_config = sub { my ($cfg, $id) = @_; |
