summaryrefslogtreecommitdiff
path: root/openstack/usr/share/openstack/openstack-neutron-network-configuration-for-one-node
diff options
context:
space:
mode:
authorFrancisco Redondo Marchena <francisco.marchena@codethink.co.uk>2015-01-29 15:52:33 +0000
committerFrancisco Redondo Marchena <francisco.marchena@codethink.co.uk>2015-02-11 18:30:36 +0000
commit1875abd2e300c273ffa3325704cc4b41c5c0cd6a (patch)
tree5cc8eabf7938c4a423736cd6acee6c29fe070f31 /openstack/usr/share/openstack/openstack-neutron-network-configuration-for-one-node
parentc16e5c87161108761babd59bf5fa7235d84d7639 (diff)
downloaddefinitions-1875abd2e300c273ffa3325704cc4b41c5c0cd6a.tar.gz
Create veth links on network configuration and will work always
Diffstat (limited to 'openstack/usr/share/openstack/openstack-neutron-network-configuration-for-one-node')
-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 a88bc0df..c2ccbd81 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
@@ -21,6 +21,9 @@ set -xe
eth_dev="$(ip addr | perl -pe 'if (/^\d+: ([^:]+)/) { $iface=$1; } if (m@^\s*inet ([^/]+)/@) { print "$iface $1\n"; } $_=undef;' | grep "^e" | head -1 | awk '{ print $1 } ')"
eth_ip="$(ip addr | perl -pe 'if (/^\d+: ([^:]+)/) { $iface=$1; } if (m@^\s*inet ([^/]+)/@) { print "$iface $1\n"; } $_=undef;' | grep "^e" | head -1 | awk '{ print $2 } ')"
+ip link add proxy-br-eth1 type veth peer name eth1-br-proxy
+ip link add proxy-br-ex type veth peer name ex-br-proxy
+
if [ -f /var/openstack/openvswitch-one-node-setup ]; then
exit 0
fi