Toggle navigation
Toggle navigation
This project
Loading...
Sign in
홍길동
/
onos
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
tom
2014-09-29 11:37:02 -0700
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
defed6ff305f15a4420cf44516e81e2f5bc7150c
defed6ff
1 parent
9710fb4c
Fixing test scripts and removing SLP bundle from features for now.
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
18 additions
and
2 deletions
features/features.xml
tools/package/debian/onos.conf
tools/test/bin/onos-config
tools/test/bin/onos-install
tools/test/cells/local
features/features.xml
View file @
defed6f
...
...
@@ -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>
...
...
tools/package/debian/onos.conf
View file @
defed6f
...
...
@@ -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
...
...
tools/test/bin/onos-config
View file @
defed6f
...
...
@@ -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/
\ No newline at end of file
...
...
tools/test/bin/onos-install
View file @
defed6f
...
...
@@ -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
...
...
tools/test/cells/local
View file @
defed6f
# 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"
...
...
Please
register
or
login
to post a comment