[pve-devel] [PATCH V2 pve-network 6/7] vlan: ovs: remove twice defined ovsbridge ports

Alexandre Derumier aderumier at odiso.com
Tue Jun 2 11:20:26 CEST 2020


Signed-off-by: Alexandre Derumier <aderumier at odiso.com>
---
 PVE/Network/SDN/Zones/VlanPlugin.pm | 5 -----
 1 file changed, 5 deletions(-)

diff --git a/PVE/Network/SDN/Zones/VlanPlugin.pm b/PVE/Network/SDN/Zones/VlanPlugin.pm
index 3bff970..0abe8da 100644
--- a/PVE/Network/SDN/Zones/VlanPlugin.pm
+++ b/PVE/Network/SDN/Zones/VlanPlugin.pm
@@ -76,11 +76,6 @@ sub generate_sdn_config {
 	push @iface_config, "ovs_ports $vnet_uplink";
 	push(@{$config->{$bridge}}, @iface_config);
 
-	@iface_config = ();
-	push @iface_config, "ovs_type OVSBridge";
-	push @iface_config, "ovs_ports $vnet_uplink";
-	push(@{$config->{$bridge}}, @iface_config) if !$config->{$bridge};
-
     } elsif ($vlan_aware) {
         # eth0----vlanaware bridge vmbr0--(vmbr0.X tag)---->vnet---->vm
 	$vnet_uplink = "$bridge.$tag";       
-- 
2.20.1




More information about the pve-devel mailing list