From d9cc2ea309e1ebd80402b6be79b6cde821cdc45f Mon Sep 17 00:00:00 2001 From: Narinder Gupta Date: Sat, 11 Jun 2016 08:19:47 -0500 Subject: modified to use admin network gateway for onos. Change-Id: I3fd9e36673adcc7ccd4e6b8ea520da92cc8f6ba8 Signed-off-by: Narinder Gupta --- ci/02-maasdeploy.sh | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'ci/02-maasdeploy.sh') diff --git a/ci/02-maasdeploy.sh b/ci/02-maasdeploy.sh index e3bc99ff..7214719d 100755 --- a/ci/02-maasdeploy.sh +++ b/ci/02-maasdeploy.sh @@ -251,6 +251,7 @@ enable_if(){ enableiflist=`grep "interface-enable" deployconfig.yaml | cut -d ' ' -f 4 ` datanet=`grep "dataNetwork" deployconfig.yaml | cut -d ' ' -f 4 | sed -e 's/ //'` stornet=`grep "storageNetwork" deployconfig.yaml | cut -d ' ' -f 4 | sed -e 's/ //'` + pubnet=`grep "publicNetwork" deployconfig.yaml | cut -d ' ' -f 4 | sed -e 's/ //'` # split EXTERNAL_NETWORK=first ip;last ip; gateway;network @@ -272,6 +273,15 @@ enable_if(){ i=$[$i+1] done fi + if [ "$pubnet" != "''" ]; then + EXTNET=(${enableiflist//,/ }) + i="0" + while [ ! -z "${EXTNET[i]}" ]; + do + echo enableautomode ${EXTNET[i]} AUTO $pubnet || true + i=$[$i+1] + done + fi fi } -- cgit 1.2.3-korg