fixed command parameter
This commit is contained in:
+3
-2
@@ -1282,10 +1282,11 @@ class DefaultController( Controller ):
|
|||||||
"find any controller that is available and run it"
|
"find any controller that is available and run it"
|
||||||
def __init__( self, name, **kwargs ):
|
def __init__( self, name, **kwargs ):
|
||||||
"search for any installed controller"
|
"search for any installed controller"
|
||||||
controllers = [ 'controller', 'ovs-controller', 'test-controller' ] # , 'pox', 'ryu' ] # test-controller is the important part
|
controllers = [ 'controller', 'ovs-controller',
|
||||||
|
'test-controller' ]
|
||||||
for c in controllers:
|
for c in controllers:
|
||||||
if quietRun( "which " + c ):
|
if quietRun( "which " + c ):
|
||||||
Controller.__init__( self, name, controller=c, **kwargs )
|
Controller.__init__( self, name, command=c, **kwargs )
|
||||||
break
|
break
|
||||||
|
|
||||||
class OVSController( Controller ):
|
class OVSController( Controller ):
|
||||||
|
|||||||
Reference in New Issue
Block a user