aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJustin chi <chigang@huawei.com>2017-06-20 03:28:04 +0000
committerGerrit Code Review <gerrit@opnfv.org>2017-06-20 03:28:04 +0000
commitcc1d754d9dd7477b2049e869207845d2429d881d (patch)
tree4256581c176a54c164035c135edf23caeb42d0af
parent96fb77cd1cc38086e21780a7886880055dacc847 (diff)
parent10203e3e35c7697ad81bd1938a20b99cda469848 (diff)
Merge "Up br-external after its creation" into stable/danubedanube.3.1
-rwxr-xr-xdeploy/network.sh2
1 files changed, 2 insertions, 0 deletions
diff --git a/deploy/network.sh b/deploy/network.sh
index 558d690..0f5a7d5 100755
--- a/deploy/network.sh
+++ b/deploy/network.sh
@@ -47,6 +47,7 @@ function save_network_info()
ip_info=`ip addr show $external_nic|grep -Eo '[^ ]+ brd [^ ]+ '`
if [ $br_exist -eq 0 ]; then
if [ "$external_nic" != "br-external" ]; then
+ sudo ip link set br-external up
sudo ovs-vsctl --may-exist add-port br-external $external_nic
sudo ip addr flush $external_nic
sudo ip addr add $ip_info dev br-external
@@ -54,6 +55,7 @@ function save_network_info()
fi
else
sudo ovs-vsctl add-br br-external
+ sudo ip link set br-external up
sudo ovs-vsctl add-port br-external $external_nic
sudo ip addr flush $external_nic
sudo ip addr add $ip_info dev br-external