}
$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);
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");
# do nothing by default
}
+sub on_update_hook {
+ my ($class, $networkid, $scfg) = @_;
+
+ # do nothing by default
+}
+
#helpers
sub parse_tag_number_or_range {
my ($str, $max, $tag) = @_;
# verify that no vnet are associated to this transport
}
+sub on_update_hook {
+ my ($class, $networkid, $scfg) = @_;
+
+ # verify that vlan-allowed don't conflict with another vlan-allowed transport
+
+ # verify that vlan-allowed is matching currently vnet tag in this transport
+}
+
1;
# verify than no vm or ct have interfaces in this bridge
}
+sub on_update_hook {
+ my ($class, $networkid, $scfg) = @_;
+
+ # verify that tag is not already defined in another vnet
+
+}
1;
# verify that no vnet are associated to this transport
}
+sub on_update_hook {
+ my ($class, $networkid, $scfg) = @_;
+
+ # verify that vxlan-allowed don't conflict with another vxlan-allowed transport
+
+ # verify that vxlan-allowed is matching currently vnet tag in this transport
+
+}
+
1;