summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Maw <richard.maw@codethink.co.uk>2015-02-24 10:16:33 +0000
committerRichard Maw <richard.maw@codethink.co.uk>2015-03-02 14:52:50 +0000
commitda55ce5eb3eaa5f4c3a7901e63223d13541163b2 (patch)
tree248334943704c60a0ce42c9f3cfb81cd886e28f9
parent90df517aa9afd643c80ae00e3a016dd837581f3b (diff)
downloaddefinitions-da55ce5eb3eaa5f4c3a7901e63223d13541163b2.tar.gz
Deallocate IP address from bound interface after binding
If we leave that interface with its address, then the routing table is incorrect, as it will try to send connections out from an interface that cannot handle them.
-rw-r--r--openstack/usr/share/openstack/openstack-neutron-network-configuration-for-one-node3
1 files changed, 3 insertions, 0 deletions
diff --git a/openstack/usr/share/openstack/openstack-neutron-network-configuration-for-one-node b/openstack/usr/share/openstack/openstack-neutron-network-configuration-for-one-node
index 28a1c452..f40ceff5 100644
--- a/openstack/usr/share/openstack/openstack-neutron-network-configuration-for-one-node
+++ b/openstack/usr/share/openstack/openstack-neutron-network-configuration-for-one-node
@@ -38,6 +38,9 @@ ovs-vsctl add-br br-eth0
ovs-vsctl add-port br-eth0 $eth_dev
ifconfig br-eth0 $eth_ip up
ip link set br-eth0 promisc on
+# Deallocate ip address for external interface so we don't try to route
+# connections out of an interface that no longer works
+ip addr del $eth_ip dev $eth_dev
ovs-vsctl add-br br-eth1
ovs-vsctl add-br br-ex
ovs-vsctl add-port br-eth1 eth1-br-proxy