]> git.proxmox.com Git - pve-network.git/blobdiff - PVE/API2/Network/SDN.pm
add IPAMs plugins
[pve-network.git] / PVE / API2 / Network / SDN.pm
index 38af7467e85de5fe6129fc0dd942a8d163761dfd..736204f76a943342a2c475499fc01cdfbfa4e085 100644 (file)
@@ -15,6 +15,7 @@ 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 PVE::API2::Network::SDN::Ipams;
 
 use base qw(PVE::RESTHandler);
 
@@ -38,6 +39,11 @@ __PACKAGE__->register_method ({
     path => 'subnets',
 });
 
+__PACKAGE__->register_method ({
+    subclass => "PVE::API2::Network::SDN::Ipams",
+    path => 'ipams',
+});
+
 __PACKAGE__->register_method({
     name => 'index',
     path => '',
@@ -68,6 +74,7 @@ __PACKAGE__->register_method({
            { id => 'zones' },
            { id => 'controllers' },
            { id => 'subnets' },
+           { id => 'ipams' },
        ];
 
        return $res;