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
bf9c6ab7
Commit
bf9c6ab7
authored
13 years ago
by
Bob Lantz
Browse files
Options
Downloads
Patches
Plain Diff
Clarify comments and finally remove ControllerParams definition.
parent
14c19260
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
+9
-29
9 additions, 29 deletions
mininet/node.py
with
9 additions
and
29 deletions
mininet/node.py
+
9
−
29
View file @
bf9c6ab7
...
...
@@ -607,12 +607,14 @@ def config( self, cpu=None, **params ):
# Some important things to note:
#
# The "IP" address which
we
assign to the switch is not
# The "IP" address which
setIP()
assign
s
to the switch is not
# an "IP address for the switch" in the sense of IP routing.
# Rather, it is the IP address for a control interface if
# (and only if) you happen to be running the switch in a
# namespace, which is something we currently don't support
# for OVS!
# Rather, it is the IP address for the control interface,
# on the control network, and it is only relevant to the
# controller. If you are running in the root namespace
# (which is the only way to run OVS at the moment), the
# control interface is the loopback interface, and you
# normally never want to change its IP address!
#
# In general, you NEVER want to attempt to use Linux's
# network stack (i.e. ifconfig) to "assign" an IP address or
...
...
@@ -620,16 +622,8 @@ def config( self, cpu=None, **params ):
# the IP and MAC addresses in the controller by specifying
# packets that you want to receive or send. The "MAC" address
# reported by ifconfig for a switch data port is essentially
# meaningless.
#
# So, I'm trying changing the API to make it
# impossible to try this, since it will not work, since nobody
# ever makes separate control networks in Mininet, and indeed
# we don't even support running OVS in a namespace.
#
# Note if we have a separate control network, then it does
# make sense to have s1-eth0 as s1's control network interface,
# and we should set controlIntf accordingly.
# meaningless. It is important to understand this if you
# want to create a functional router using OpenFlow.
class
Switch
(
Node
):
"""
A Switch is a Node that is running (or has execed?)
...
...
@@ -898,20 +892,6 @@ def __init__( self, name, command='ovs-controller', **kwargs ):
Controller
.
__init__
(
self
,
name
,
command
=
command
,
**
kwargs
)
# BL: This really seems to be poorly specified,
# so it's going to go away!
class
ControllerParams
(
object
):
"
Container for controller IP parameters.
"
def
__init__
(
self
,
ip
,
prefixLen
):
"""
Init.
ip: string, controller IP address
prefixLen: prefix length, e.g. 8 for /8, covering 16M
"""
self
.
ip
=
ip
self
.
prefixLen
=
prefixLen
class
NOX
(
Controller
):
"
Controller to run a NOX application.
"
...
...
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