]> git.proxmox.com Git - pve-network.git/blobdiff - PVE/API2/Network/SDN/Subnets.pm
subnets: api : add missing param in on_update_hook for update
[pve-network.git] / PVE / API2 / Network / SDN / Subnets.pm
index a3bc10b04d3ba6c6983a6f549cf7e2ad4744e491..07ef2e11dc0684142674d4f5c40f8faaf1a2e72f 100644 (file)
@@ -240,7 +240,7 @@ __PACKAGE__->register_method ({
            raise_param_exc({ ipam => "you can't change ipam"}) if $opts->{ipam} && $scfg->{ipam} && $opts->{ipam} ne $scfg->{ipam};
 
            my $subnet = PVE::Network::SDN::Subnets::sdn_subnets_config($cfg, $id);
-           PVE::Network::SDN::SubnetPlugin->on_update_hook($zone, $id, $subnet);
+           PVE::Network::SDN::SubnetPlugin->on_update_hook($zone, $id, $subnet, $scfg);
 
            PVE::Network::SDN::Subnets::write_config($cfg);