Skip to content
Snippets Groups Projects
Commit 87737a70 authored by Bob Lantz's avatar Bob Lantz
Browse files

One more merge fix.

parent 4876b43f
No related branches found
No related tags found
No related merge requests found
...@@ -176,25 +176,19 @@ class MininetRunner( object ): ...@@ -176,25 +176,19 @@ class MininetRunner( object ):
' controller]' ) ' controller]' )
opts.add_option( '--innamespace', action='store_true', opts.add_option( '--innamespace', action='store_true',
default=False, help='sw and ctrl in namespace?' ) default=False, help='sw and ctrl in namespace?' )
<<<<<<< HEAD:bin/mn
=======
opts.add_option( '--listenport', type='int', default=6634, opts.add_option( '--listenport', type='int', default=6634,
help='[base port for passive switch listening' help='[base port for passive switch listening'
' controller]' ) ' controller]' )
opts.add_option( '--nolistenport', action='store_true', opts.add_option( '--nolistenport', action='store_true',
default=False, help="don't use passive listening port") default=False, help="don't use passive listening port")
>>>>>>> of1.0:bin/mn
opts.add_option( '--pre', type='string', default=None, opts.add_option( '--pre', type='string', default=None,
help='[CLI script to run before tests]' ) help='[CLI script to run before tests]' )
opts.add_option( '--post', type='string', default=None, opts.add_option( '--post', type='string', default=None,
help='[CLI script to run after tests]' ) help='[CLI script to run after tests]' )
<<<<<<< HEAD:bin/mn
=======
opts.add_option( '--prefixlen', type='int', default=8, opts.add_option( '--prefixlen', type='int', default=8,
help='[prefix length (e.g. /8) for automatic ' help='[prefix length (e.g. /8) for automatic '
'network configuration]' ) 'network configuration]' )
>>>>>>> of1.0:bin/mn
self.options, self.args = opts.parse_args() self.options, self.args = opts.parse_args()
def setup( self ): def setup( self ):
...@@ -231,16 +225,12 @@ class MininetRunner( object ): ...@@ -231,16 +225,12 @@ class MininetRunner( object ):
if self.validate: if self.validate:
self.validate( self.options ) self.validate( self.options )
<<<<<<< HEAD:bin/mn
controllerParams = ControllerParams( '10.0.0.0', 8 )
=======
# We should clarify what this is actually for... # We should clarify what this is actually for...
# It seems like it should be default values for the # It seems like it should be default values for the
# *data* network, so it may be misnamed. # *data* network, so it may be misnamed.
controllerParams = ControllerParams( '10.0.0.0', controllerParams = ControllerParams( '10.0.0.0',
self.options.prefixlen) self.options.prefixlen)
>>>>>>> of1.0:bin/mn
inNamespace = self.options.innamespace inNamespace = self.options.innamespace
xterms = self.options.xterms xterms = self.options.xterms
mac = self.options.mac mac = self.options.mac
...@@ -251,11 +241,8 @@ class MininetRunner( object ): ...@@ -251,11 +241,8 @@ class MininetRunner( object ):
mn = Mininet( topo, switch, host, controller, controllerParams, mn = Mininet( topo, switch, host, controller, controllerParams,
inNamespace=inNamespace, inNamespace=inNamespace,
xterms=xterms, autoSetMacs=mac, xterms=xterms, autoSetMacs=mac,
<<<<<<< HEAD:bin/mn
autoStaticArp=arp )
=======
autoStaticArp=arp, listenPort=listenPort ) autoStaticArp=arp, listenPort=listenPort )
>>>>>>> of1.0:bin/mn
if self.options.pre: if self.options.pre:
CLI( mn, script=self.options.pre ) CLI( mn, script=self.options.pre )
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment