From 04d157cd1535097268da9d9441bcc411da687c85 Mon Sep 17 00:00:00 2001
From: Manuel Buil <mbuil@suse.com>
Date: Wed, 22 Nov 2017 10:45:07 +0100
Subject: [PATCH] Add br-vlan-veth to the br-vlan bridge in openSUSE

br-vlan-eth was created but not added to any bridge, therefore floating ips
were not working as it was impossible for the OVS in the compute to get the
ARP messages coming from the gateway of the public network

Change-Id: Ia0828b7e96359dc10012ac52bf0e5d4f2c5419cb
Signed-off-by: Manuel Buil <mbuil@suse.com>
---
 xci/playbooks/roles/configure-network/files/network-config-suse | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/xci/playbooks/roles/configure-network/files/network-config-suse b/xci/playbooks/roles/configure-network/files/network-config-suse
index 1a9f1e7d..02cdd998 100755
--- a/xci/playbooks/roles/configure-network/files/network-config-suse
+++ b/xci/playbooks/roles/configure-network/files/network-config-suse
@@ -8,7 +8,9 @@ if [[ $INTERFACE == "br-vlan" ]]; then
         ip link add br-vlan-veth type veth peer name eth12 || true
         ip link set br-vlan-veth up
         ip link set eth12 up
+        brctl addif br-vlan br-vlan-veth
     else
+        brctl delif br-vlan br-vlan-veth
         ip link del br-vlan-veth || true
     fi
 fi
-- 
2.16.6