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 ):
prompt = 'mininet-onos> '
def __init__( self, net, **kwargs ):
c0 = net.controllers[ 0 ]
if isONOSCluster( c0 ):
net = MininetFacade( net, cnet=c0.net )
clusters = [ c.net for c in net.controllers
if isONOSCluster( c ) ]
net = MininetFacade( net, *clusters )
OldCLI.__init__( self, net, **kwargs )
def onos1( self ):
......