Ejemplo n.º 1
0
 def __init__(self, net, **kwargs):
     clusters = [c.net for c in net.controllers if isONOSCluster(c)]
     net = MininetFacade(net, *clusters)
     OldCLI.__init__(self, net, **kwargs)
Ejemplo n.º 2
0
 def __init__(self, net, **kwargs):
     c0 = net.controllers[0]
     if isinstance(c0, ONOSCluster):
         net = MininetFacade(net, cnet=c0.net)
     OldCLI.__init__(self, net, **kwargs)