]> git.proxmox.com Git - pve-network.git/blobdiff - PVE/Network/SDN/VnetPlugin.pm
vnets: allow duplicate tags in differents zones
[pve-network.git] / PVE / Network / SDN / VnetPlugin.pm
index 518d2dd0a0546ab00566a5ca5f750c1cea2886be..cac578aa9269bf19cc0c3f05152ca61d7b469122 100644 (file)
@@ -106,15 +106,6 @@ sub on_update_hook {
        my $subnets = PVE::Network::SDN::Vnets::get_subnets($vnetid);
        raise_param_exc({ vlanaware => "vlanaware vnet is not compatible with subnets"}) if $subnets;
     }
-
-    # verify that tag is not already defined in another vnet
-    if (defined($tag)) {
-       foreach my $id (keys %{$vnet_cfg->{ids}}) {
-           next if $id eq $vnetid;
-           my $othervnettag = $vnet_cfg->{ids}->{$id}->{tag};
-           raise_param_exc({ tag => "tag $tag already exist in vnet $id"}) if $othervnettag && $tag eq $othervnettag;
-       }
-    }
 }
 
 1;