]> git.proxmox.com Git - pve-common.git/blobdiff - src/PVE/Network.pm
Revert "Network: tap_create|plug : sdn : use bridge_vlan"
[pve-common.git] / src / PVE / Network.pm
index bdbf3d680cbd579be0c31c36a09a3d907d9b7782..98a58fa98ee683ff2148a50cd24f0e9be44cbd25 100644 (file)
@@ -272,17 +272,6 @@ my $activate_interface = sub {
 sub tap_create {
     my ($iface, $bridge) = @_;
 
-    my $have_sdn;
-    eval {
-       require PVE::Network::SDN::Zones;
-       $have_sdn = 1;
-    };
-
-    if ($have_sdn) {
-       my ($bridgesdn, undef) = PVE::Network::SDN::Zones::get_bridge_vlan($bridge);
-       $bridge = $bridgesdn if $bridgesdn;
-    }
-
     die "unable to get bridge setting\n" if !$bridge;
 
     my $bridgemtu = &$read_bridge_mtu($bridge);
@@ -297,17 +286,6 @@ sub tap_create {
 sub veth_create {
     my ($veth, $vethpeer, $bridge, $mac) = @_;
 
-    my $have_sdn;
-    eval {
-       require PVE::Network::SDN::Zones;
-       $have_sdn = 1;
-    };
-
-    if ($have_sdn) {
-       my ($bridgesdn, undef) = PVE::Network::SDN::Zones::get_bridge_vlan($bridge);
-       $bridge = $bridgesdn if $bridgesdn;
-    }
-
     die "unable to get bridge setting\n" if !$bridge;
 
     my $bridgemtu = &$read_bridge_mtu($bridge);
@@ -399,18 +377,6 @@ my $cleanup_firewall_bridge = sub {
 sub tap_plug {
     my ($iface, $bridge, $tag, $firewall, $trunks, $rate) = @_;
 
-    my $have_sdn;
-    eval {
-       require PVE::Network::SDN::Zones;
-       $have_sdn = 1;
-    };
-
-    if ($have_sdn) {
-       my ($bridgesdn, $tag) = PVE::Network::SDN::Zones::get_bridge_vlan($bridge);
-       $bridge = $bridgesdn if $bridgesdn;
-       $trunks = undef;
-    }
-
     #cleanup old port config from any openvswitch bridge
     eval {run_command("/usr/bin/ovs-vsctl del-port $iface", outfunc => sub {}, errfunc => sub {}) };