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
Marc De Leenheer
2014-12-02 16:44:02 -0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
6ac0d554b020290daa7af6f8e25d27b8b61a9eb5
6ac0d554
1 parent
93508c26
Allocate pseudo tty for ssh
Change-Id: I43e977ce5099b9d593e3e36bd6f2a0f540b54419
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
5 additions
and
4 deletions
tools/test/bin/onos-config
tools/test/bin/onos-install
tools/test/bin/onos-service
tools/test/bin/onos-uninstall
tools/test/bin/onos-config
View file @
6ac0d55
...
...
@@ -18,7 +18,7 @@ echo " { \"id\": \"$OC1\", \"ip\": \"$OC1\", \"tcpPort\": 9876 }" >> $CDEF_FILE
echo
"]}"
>>
$CDEF_FILE
scp -q
$CDEF_FILE
$remote
:
$ONOS_INSTALL_DIR
/config/cluster.json
ssh
$remote
"
ssh
-t
$remote
"
sudo perl -pi.bak -e
\"
s/ <interface>.*</ <interface>
${
ONOS_NIC
:-
192
.168.56.*
}
</g
\"
\
$ONOS_INSTALL_DIR
/
$KARAF_DIST
/etc/hazelcast.xml
sudo perl -pi -e
\"
s/ <name>onos</ <name>
${
ONOS_CELL
:-
onos
}
</g
\"
\
...
...
tools/test/bin/onos-install
View file @
6ac0d55
...
...
@@ -23,7 +23,7 @@ remote=$ONOS_USER@$node
scp -q
$ONOS_TAR
$remote
:/tmp
ssh
$remote
"
ssh
-t
$remote
"
[ -d
$ONOS_INSTALL_DIR
/bin ] && echo
\"
ONOS is already installed
\"
&& exit 1
# Prepare a landing zone and unroll the bits
...
...
@@ -45,6 +45,7 @@ ssh $remote "
# Remove any previous ON.Lab bits from ~/.m2 repo and re-stage it.
rm -fr ~/.m2/repository/org/onlab
mkdir -p ~/.m2/repository/org/onlab
cp -r
$ONOS_INSTALL_DIR
/
$KARAF_DIST
/system/org/onlab ~/.m2/repository/org/onlab
# Drop log level for the console
...
...
tools/test/bin/onos-service
View file @
6ac0d55
...
...
@@ -40,5 +40,5 @@ fi
# Execute the remote commands
for
node
in
$nodes
;
do
ssh
$ONOS_USER
@
${
node
}
"sudo service onos
${
2
:-
status
}
"
ssh
-t
$ONOS_USER
@
${
node
}
"sudo service onos
${
2
:-
status
}
"
done
...
...
tools/test/bin/onos-uninstall
View file @
6ac0d55
...
...
@@ -8,7 +8,7 @@
remote
=
$ONOS_USER
@
${
1
:-
$OCI
}
ssh
$remote
"
ssh
-t
$remote
"
sudo service onos stop 1>/dev/null 2>/dev/null
sudo rm -fr
$ONOS_INSTALL_DIR
"
...
...
Please
register
or
login
to post a comment