]> git.proxmox.com Git - pve-network.git/commitdiff
subnets: api : add missing param in on_update_hook for update
authorAlexandre Derumier <aderumier@odiso.com>
Thu, 3 Dec 2020 09:19:42 +0000 (10:19 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Fri, 18 Dec 2020 16:58:22 +0000 (17:58 +0100)
Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
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);