aboutsummaryrefslogtreecommitdiffstats
path: root/deploy
diff options
context:
space:
mode:
authorchenshuai@huawei.com <chenshuai@huawei.com>2016-06-15 23:21:14 -0400
committerchenshuai@huawei.com <chenshuai@huawei.com>2016-06-15 23:23:54 -0400
commit16a49e9afd9a6f3189c5235a307da3a43a255d05 (patch)
treea7857fd32bb943e8ea730776fb621826144b01d5 /deploy
parente1ccdeadab7fc7d378defbad91a7f5d0a97ae1b7 (diff)
bugfix: route config error on jump server
JIRA: COMPASS-420 Change-Id: Ibb8845ee934ff08a6d2a661ee52795f82be7846d Signed-off-by: chenshuai@huawei.com <chenshuai@huawei.com>
Diffstat (limited to 'deploy')
-rwxr-xr-xdeploy/network.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/deploy/network.sh b/deploy/network.sh
index 7e2649ca..e3230fa9 100755
--- a/deploy/network.sh
+++ b/deploy/network.sh
@@ -33,7 +33,7 @@ function save_network_info()
{
sudo ovs-vsctl list-br |grep br-external
br_exist=$?
- external_nic=`ip route |grep '^default'|awk '{print $NF}'`
+ external_nic=`ip route |grep '^default'|awk '{print $5F}'`
route_info=`ip route |grep -Eo '^default via [^ ]+'`
ip_info=`ip addr show $external_nic|grep -Eo '[^ ]+ brd [^ ]+ '`
if [ $br_exist -eq 0 ]; then