Yuta HIGUCHI

onos-config: use $ONOS_CELL as hazelcast group name

- rewriting will happen only if hazelcast.xml group name was default ("onos")

Change-Id: I142e3a0a5b1ccd4493292edff2ff30908b9cd654
...@@ -20,6 +20,8 @@ echo "]}" >> $CDEF_FILE ...@@ -20,6 +20,8 @@ echo "]}" >> $CDEF_FILE
20 ssh $remote " 20 ssh $remote "
21 sudo perl -pi.bak -e \"s/ <interface>.*</ <interface>${ONOS_NIC:-192.168.56.*}</g\" \ 21 sudo perl -pi.bak -e \"s/ <interface>.*</ <interface>${ONOS_NIC:-192.168.56.*}</g\" \
22 $ONOS_INSTALL_DIR/$KARAF_DIST/etc/hazelcast.xml 22 $ONOS_INSTALL_DIR/$KARAF_DIST/etc/hazelcast.xml
23 + sudo perl -pi -e \"s/ <name>onos</ <name>${ONOS_CELL:-onos}</g\" \
24 + $ONOS_INSTALL_DIR/$KARAF_DIST/etc/hazelcast.xml
23 25
24 echo \"onos.ip = \$(ifconfig | grep $ONOS_NIC | cut -d: -f2 | cut -d\\ -f1)\" \ 26 echo \"onos.ip = \$(ifconfig | grep $ONOS_NIC | cut -d: -f2 | cut -d\\ -f1)\" \
25 >> $ONOS_INSTALL_DIR/$KARAF_DIST/etc/system.properties 27 >> $ONOS_INSTALL_DIR/$KARAF_DIST/etc/system.properties
......