Bob Lantz

Multiple ONOSCluster support for ONOSCLI

Previously we were only passing the first ONOSCluster
into MininetFacade, but lo and behold it supports as
many networks as you like! So we pass them all in the
case where we have multiple ONOSClusters.

Change-Id: If848886b958aa47d3e4834c44adc98fffd90453c
...@@ -535,9 +535,9 @@ class ONOSCLI( OldCLI ): ...@@ -535,9 +535,9 @@ class ONOSCLI( OldCLI ):
535 prompt = 'mininet-onos> ' 535 prompt = 'mininet-onos> '
536 536
537 def __init__( self, net, **kwargs ): 537 def __init__( self, net, **kwargs ):
538 - c0 = net.controllers[ 0 ] 538 + clusters = [ c.net for c in net.controllers
539 - if isONOSCluster( c0 ): 539 + if isONOSCluster( c ) ]
540 - net = MininetFacade( net, cnet=c0.net ) 540 + net = MininetFacade( net, *clusters )
541 OldCLI.__init__( self, net, **kwargs ) 541 OldCLI.__init__( self, net, **kwargs )
542 542
543 def onos1( self ): 543 def onos1( self ):
......