aboutsummaryrefslogtreecommitdiffstats
path: root/deploy/host_baremetal.sh
diff options
context:
space:
mode:
authorHarry Huang <huangxiangyu5@huawei.com>2018-12-04 11:41:34 +0800
committerHarry Huang <huangxiangyu5@huawei.com>2019-02-01 17:24:50 +0800
commite29a4ea1b77bdb9e78e2fabac8a3029c4c2b61fc (patch)
tree9279936c6157e4877a6f9630ef6918ef248beaef /deploy/host_baremetal.sh
parent5999d29ded67ee2847e58fa559dd9da29e1bd150 (diff)
Adapt compass4nfv scripts to new compass-deck
JIRA: COMPASS-612 1. pass machine info through file 2. generate mac address in config_parse.py Change-Id: Iaaf0f2b1f4ab97e8200c8c046746168d991570e3 Signed-off-by: Harry Huang <huangxiangyu5@huawei.com>
Diffstat (limited to 'deploy/host_baremetal.sh')
-rwxr-xr-xdeploy/host_baremetal.sh10
1 files changed, 1 insertions, 9 deletions
diff --git a/deploy/host_baremetal.sh b/deploy/host_baremetal.sh
index 4c63f823..3c303567 100755
--- a/deploy/host_baremetal.sh
+++ b/deploy/host_baremetal.sh
@@ -15,14 +15,6 @@ function reboot_hosts() {
}
function get_host_macs() {
- if [[ "$EXPANSION" == "false" ]]; then
- machines=`echo $HOST_MACS | sed -e 's/,/'\',\''/g' -e 's/^/'\''/g' -e 's/$/'\''/g'`
- echo $machines > $WORK_DIR/switch_machines
- else
- machines_old=`cat $WORK_DIR/switch_machines`
- machines_add=`echo $HOST_MACS | sed -e 's/,/'\',\''/g' -e 's/^/'\''/g' -e 's/$/'\''/g'`
- echo $machines_add $machines_old > $WORK_DIR/switch_machines
- machines=`echo $machines_add $machines_old|sed 's/ /,/g'`
- fi
+ local machines=`echo $HOST_MACS | sed -e 's/,/'\',\''/g' -e 's/^/'\''/g' -e 's/$/'\''/g'`
echo $machines
}