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
Brian O'Connor
2014-11-12 17:14:12 -0800
Browse Files
Options
Browse Files
Download
Plain Diff
Committed by
Gerrit Code Review
2014-11-12 17:14:12 -0800
Commit
e16f048cc14b7cc574fb1ba8039ddd1b7a106d48
e16f048c
2 parents
524f2e8c
7b1f5cb5
Merge "Add IP address argument and create instance with the correct IP address"
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
tools/test/topos/onos.py
tools/test/topos/onos.py
View file @
e16f048
...
...
@@ -42,6 +42,7 @@ class ONOS( Controller ):
# add default modules
# TODO: consider an ordered set
self
.
features
=
Set
([
'webconsole'
,
'onos-rest'
,
'onos-api'
,
'onos-cli'
,
'onos-openflow'
])
...
...
@@ -63,6 +64,8 @@ class ONOS( Controller ):
if
self
.
inNamespace
:
instanceOpts
=
(
'-furl mvn:org.onlab.onos/onos-features/1.0.0-SNAPSHOT/xml/features '
'-s 8101'
)
if
self
.
ip
is
not
None
:
instanceOpts
+=
(
' -a
%
s'
%
self
.
IP
()
)
self
.
userCmd
(
self
.
karafDir
+
'bin/instance create
%
s
%
s'
%
(
instanceOpts
,
self
.
name
)
)
self
.
instanceDir
=
self
.
karafDir
+
'instances/
%
s/'
%
self
.
name
else
:
...
...
Please
register
or
login
to post a comment