]> git.proxmox.com Git - pve-network.git/blobdiff - PVE/API2/Network/SDN/Vnets.pm
subnets: move api to /sdn/vnet/<vnet>/subnets && make vnet option not optionnal
[pve-network.git] / PVE / API2 / Network / SDN / Vnets.pm
index 58ec21f58012770cd06fafcdcb70a18e361fd92f..48365008f03acd84d322f100696b681ca5fb5677 100644 (file)
@@ -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) = @_;