]> git.proxmox.com Git - pve-network.git/blobdiff - PVE/API2/Network/Network.pm
add on_update_hook
[pve-network.git] / PVE / API2 / Network / Network.pm
index a647edf40725f57877e5595e77b1a0c660399c26..7a8b29984510a625016a91070ce78d6fc763e064 100644 (file)
@@ -136,9 +136,7 @@ __PACKAGE__->register_method ({
                }
 
                $cfg->{ids}->{$networkid} = $opts;
-
-               #improveme:
-               #check local configuration of all nodes for conflict
+               $plugin->on_update_hook($networkid, $scfg);
 
                PVE::Network::Network::write_config($cfg);
            
@@ -179,9 +177,9 @@ __PACKAGE__->register_method ({
            foreach my $k (%$opts) {
                $scfg->{$k} = $opts->{$k};
            }
-           #improveme:
-            #add vlan/vxlan check on existingvnets
-           #check local configuration of all nodes for conflict
+
+           $plugin->on_update_hook($networkid, $scfg);
+
            PVE::Network::Network::write_config($cfg);
 
            }, "update network object failed");