Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
mininet
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Package Registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Olaf Bergmann
mininet
Commits
fe769afa
Commit
fe769afa
authored
14 years ago
by
Bob Lantz
Browse files
Options
Downloads
Patches
Plain Diff
Added port to controller args; changed NOX to new arg format.
parent
5c24e186
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
mininet/node.py
+3
-4
3 additions, 4 deletions
mininet/node.py
with
3 additions
and
4 deletions
mininet/node.py
+
3
−
4
View file @
fe769afa
...
...
@@ -200,7 +200,6 @@ def monitor( self, timeoutms=None ):
"""
Monitor and return the output of a command.
Set self.waiting to False if command has completed.
timeoutms: timeout in ms or None to wait indefinitely.
"""
assert
self
.
waiting
self
.
waitReadable
(
timeoutms
)
data
=
self
.
read
(
1024
)
# Look for PID
...
...
@@ -623,7 +622,7 @@ class Controller( Node ):
OpenFlow controller.
"""
def
__init__
(
self
,
name
,
inNamespace
=
False
,
controller
=
'
controller
'
,
cargs
=
'
-v ptcp:
'
,
cdir
=
None
,
defaultIP
=
"
127.0.0.1
"
,
cargs
=
'
-v ptcp:
%d
'
,
cdir
=
None
,
defaultIP
=
"
127.0.0.1
"
,
port
=
6633
):
self
.
controller
=
controller
self
.
cargs
=
cargs
...
...
@@ -639,7 +638,7 @@ def start( self ):
cout
=
'
/tmp/
'
+
self
.
name
+
'
.log
'
if
self
.
cdir
is
not
None
:
self
.
cmd
(
'
cd
'
+
self
.
cdir
)
self
.
cmd
(
self
.
controller
+
'
'
+
self
.
cargs
+
self
.
cmd
(
self
.
controller
+
'
'
+
self
.
cargs
%
self
.
port
+
'
1>
'
+
cout
+
'
2>
'
+
cout
+
'
&
'
)
self
.
execed
=
False
...
...
@@ -684,7 +683,7 @@ def __init__( self, name, noxArgs=None, **kwargs ):
Controller
.
__init__
(
self
,
name
,
controller
=
noxCoreDir
+
'
/nox_core
'
,
cargs
=
'
--libdir=/usr/local/lib -v -i ptcp:
'
+
cargs
=
'
--libdir=/usr/local/lib -v -i ptcp:
:%s
'
%
self
.
port
+
'
'
.
join
(
noxArgs
),
cdir
=
noxCoreDir
,
**
kwargs
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment