]> git.proxmox.com Git - pve-container.git/commitdiff
lxcnetaddbr: do not use depreacated method
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Thu, 4 Jun 2020 12:25:47 +0000 (14:25 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Thu, 4 Jun 2020 12:25:47 +0000 (14:25 +0200)
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
src/lxcnetaddbr

index 04a121d99284ffb96235ecf68d345fd8b5346814..8bd9d227bcfaab2b839a4ee12cf4129e284e8c74 100755 (executable)
@@ -53,10 +53,6 @@ die "missing bridge configuration" if !$bridge;
 
 if (-d "/sys/class/net/$iface") {
 
-    if ($have_sdn) {
-       ($bridge, undef) = PVE::Network::SDN::Zones::get_bridge_vlan($bridge);
-    }
-
     my $bridgemtu = PVE::Tools::file_read_firstline("/sys/class/net/$bridge/mtu");
     die "bridge '$bridge' does not exist\n" if !$bridgemtu;
     #avoid insecure dependency;