DemoCLI -> ClusterCLI
This commit is contained in:
@@ -41,7 +41,7 @@ from functools import partial
|
|||||||
from mininet.examples.cluster import ( MininetCluster, RemoteHost,
|
from mininet.examples.cluster import ( MininetCluster, RemoteHost,
|
||||||
RemoteOVSSwitch, RemoteLink,
|
RemoteOVSSwitch, RemoteLink,
|
||||||
SwitchBinPlacer, RandomPlacer )
|
SwitchBinPlacer, RandomPlacer )
|
||||||
from mininet.examples.clustercli import DemoCLI as ClusterCLI
|
from mininet.examples.clustercli import ClusterCLI
|
||||||
|
|
||||||
PLACEMENT = { 'block': SwitchBinPlacer, 'random': RandomPlacer }
|
PLACEMENT = { 'block': SwitchBinPlacer, 'random': RandomPlacer }
|
||||||
|
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ A sanity check for cluster edition
|
|||||||
|
|
||||||
from mininet.examples.cluster import MininetCluster
|
from mininet.examples.cluster import MininetCluster
|
||||||
from mininet.log import info, setLogLevel
|
from mininet.log import info, setLogLevel
|
||||||
from mininet.examples.clustercli import DemoCLI as CLI
|
from mininet.examples.clustercli import ClusterCLI as CLI
|
||||||
from mininet.topo import SingleSwitchTopo
|
from mininet.topo import SingleSwitchTopo
|
||||||
|
|
||||||
def clusterSanity():
|
def clusterSanity():
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ from mininet.log import output, error
|
|||||||
nx, graphviz_layout, plt = None, None, None # Will be imported on demand
|
nx, graphviz_layout, plt = None, None, None # Will be imported on demand
|
||||||
|
|
||||||
|
|
||||||
class DemoCLI( CLI ):
|
class ClusterCLI( CLI ):
|
||||||
"CLI with additional commands for Cluster Edition demo"
|
"CLI with additional commands for Cluster Edition demo"
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
|
|||||||
@@ -5,7 +5,7 @@
|
|||||||
from mininet.examples.cluster import MininetCluster, SwitchBinPlacer
|
from mininet.examples.cluster import MininetCluster, SwitchBinPlacer
|
||||||
from mininet.topolib import TreeTopo
|
from mininet.topolib import TreeTopo
|
||||||
from mininet.log import setLogLevel
|
from mininet.log import setLogLevel
|
||||||
from mininet.examples.clustercli import DemoCLI as CLI
|
from mininet.examples.clustercli import ClusterCLI as CLI
|
||||||
|
|
||||||
def demo():
|
def demo():
|
||||||
"Simple Demo of Cluster Mode"
|
"Simple Demo of Cluster Mode"
|
||||||
|
|||||||
Reference in New Issue
Block a user