mirror of
https://github.com/opennetworkinglab/onos.git
synced 2025-10-19 19:32:05 +02:00
Fixing test scripts and removing SLP bundle from features for now.
This commit is contained in:
parent
9710fb4c65
commit
defed6ff30
@ -9,7 +9,6 @@
|
||||
<bundle>mvn:org.apache.commons/commons-lang3/3.3.2</bundle>
|
||||
<bundle>mvn:com.google.guava/guava/18.0</bundle>
|
||||
<bundle>mvn:io.netty/netty/3.9.2.Final</bundle>
|
||||
<bundle>mvn:org.livetribe.slp/livetribe-slp-osgi/2.2.1</bundle>
|
||||
|
||||
<bundle>mvn:com.hazelcast/hazelcast/3.3</bundle>
|
||||
<bundle>mvn:com.eclipsesource.minimal-json/minimal-json/0.9.1</bundle>
|
||||
|
@ -15,7 +15,7 @@ env JAVA_HOME=/usr/lib/jvm/java-7-openjdk-amd64
|
||||
|
||||
pre-stop script
|
||||
/opt/onos/bin/onos halt 2>/opt/onos/var/stderr.log
|
||||
sleep 3
|
||||
sleep 2
|
||||
end script
|
||||
|
||||
script
|
||||
|
@ -8,7 +8,21 @@
|
||||
|
||||
remote=$ONOS_USER@${1:-$OCI}
|
||||
|
||||
# Generate a cluster.json from the ON* environment variables
|
||||
CDEF_FILE=/tmp/cluster.json
|
||||
echo "{ \"nodes\":[" > $CDEF_FILE
|
||||
for node in $(env | sort | egrep "OC[2-9]+" | cut -d= -f2); do
|
||||
echo " { \"id\": \"$node\", \"ip\": \"$node\", \"tcpPort\": 9876 }," >> $CDEF_FILE
|
||||
done
|
||||
echo " { \"id\": \"$OC1\", \"ip\": \"$OC1\", \"tcpPort\": 9876 }" >> $CDEF_FILE
|
||||
echo "]}" >> $CDEF_FILE
|
||||
|
||||
ssh $remote "
|
||||
sudo perl -pi.bak -e \"s/ <interface>.*</ <interface>${ONOS_NIC:-192.168.56.*}</g\" \
|
||||
$ONOS_INSTALL_DIR/$KARAF_DIST/etc/hazelcast.xml
|
||||
"
|
||||
|
||||
echo \"onos.ip = \$(ifconfig | grep $ONOS_NIC | cut -d: -f2 | cut -d\\ -f1)\" \
|
||||
>> $ONOS_INSTALL_DIR/$KARAF_DIST/etc/system.properties
|
||||
"
|
||||
|
||||
scp -q $CDEF_FILE $remote:$ONOS_INSTALL_DIR/config/
|
@ -24,6 +24,7 @@ ssh $remote "
|
||||
# Make a link to the log file directory and make a home for auxiliaries
|
||||
ln -s $ONOS_INSTALL_DIR/$KARAF_DIST/data/log /opt/onos/log
|
||||
mkdir $ONOS_INSTALL_DIR/var
|
||||
mkdir $ONOS_INSTALL_DIR/config
|
||||
|
||||
# Install the upstart configuration file and setup options for debugging
|
||||
sudo cp $ONOS_INSTALL_DIR/debian/onos.conf /etc/init/onos.conf
|
||||
|
@ -1,6 +1,8 @@
|
||||
# Default virtual box ONOS instances 1,2 & ONOS mininet box
|
||||
. $ONOS_ROOT/tools/test/cells/.reset
|
||||
|
||||
export ONOS_NIC=192.168.56.*
|
||||
|
||||
export OC1="192.168.56.101"
|
||||
export OC2="192.168.56.102"
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user