diff options
author | QiLiang <liangqi1@huawei.com> | 2017-04-05 01:32:18 -0700 |
---|---|---|
committer | Justin chi <chigang@huawei.com> | 2017-04-14 03:19:29 +0000 |
commit | 10203e3e35c7697ad81bd1938a20b99cda469848 (patch) | |
tree | f7c696d9ba9308dec696e550a4cea84067a3c200 | |
parent | 29adca46b4b87f9abb81b2358fa4c4c90bef3254 (diff) |
Up br-external after its creation
JIRA: -
On a clean env run compass4nfv deploy script will cause the jumpserver
network unreachable. This patch fix this issue.
Change-Id: Ib04762c5cf745ab40adcf05497d518e6d86ad97c
Signed-off-by: QiLiang <liangqi1@huawei.com>
(cherry picked from commit a6b71efaef32cd9b43abb48f0a0084465bd435dc)
-rwxr-xr-x | deploy/network.sh | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/deploy/network.sh b/deploy/network.sh index 558d690c..0f5a7d5d 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 |