]> git.proxmox.com Git - pve-network.git/commitdiff
plugins: generate config: don't check vlan range
authorAlexandre Derumier <aderumier@odiso.com>
Tue, 4 Jun 2019 05:03:43 +0000 (07:03 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Tue, 4 Jun 2019 07:43:14 +0000 (09:43 +0200)
we already have done it on create/modify hooks

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
PVE/Network/Network/VlanPlugin.pm
PVE/Network/Network/VxlanMulticastPlugin.pm

index f0119e495e0d20f7e52332f2d2769b9c903d8aa0..115d3bec4d2827a8317a685ee4db3604910164e4 100644 (file)
@@ -69,13 +69,6 @@ sub generate_network_config {
 
     die "missing vlan tag" if !$tag;
 
-    eval {
-       PVE::Network::Network::Plugin::parse_tag_number_or_range($vlanallowed, '4096', $tag) if $vlanallowed;
-    };
-    if($@) {
-       die "vlan $tag is not allowed in transport $zoneid";
-    }
-
     my $iface = $uplinks->{$uplink} ? $uplinks->{$uplink} : "uplink$uplink";
     $iface .= ".$tag";
 
index 7898f79cc0a1485534d63e537c7cdd93e002f9dc..2f03f487b6cd444eb7caca31ecbf082a390baf00 100644 (file)
@@ -56,13 +56,6 @@ sub generate_network_config {
     die "missing vxlan tag" if !$tag;
     my $iface = $uplinks->{$uplink} ? $uplinks->{$uplink} : "uplink$uplink";
 
-    eval {
-       PVE::Network::Network::Plugin::parse_tag_number_or_range($vxlanallowed, '16777216', $tag) if $vxlanallowed;
-    };
-    if($@) {
-       die "vlan $tag is not allowed in transport $zoneid";
-    }
-
     my $config = "\n";
     $config .= "auto vxlan$tag\n";
     $config .= "iface vxlan$tag inet manual\n";