Example #1
0
 def __init__( self, net, *args, **kwargs ):
     self.iperfs = {}
     self.bw = '12k'
     self.mn = net
     self.lastbw = {}  # last bandwidth reports
     self.start()
     quietRun( 'rm /tmp/*.iperf /tmp/*.client' )
     CLI.__init__( self, net, *args, **kwargs )
Example #2
0
    def __init__(self, *args, **kwargs):
        self.conf_file = kwargs.get("conf_file", None)
        self.import_last_modifications = {}

        self.last_compilation_state = False

        if not self.conf_file:
            log.warn("No configuration given to the CLI. P4 functionalities are disabled.")
        else:
            self.config = load_conf(self.conf_file)
            # class CLI from mininet.cli does not have config parameter, thus remove it
            kwargs.__delitem__("conf_file")
        CLI.__init__(self, *args, **kwargs)
Example #3
0
 def __init__(self, FIE, stdin=sys.stdin, script=None):
     self._fie = FIE
     CLI.__init__(self, FIE, stdin, script)
     Cmd.__init__(self)
Example #4
0
	def __init__( self, _mininet, _env ):
		self.env = _env
		self.net = _mininet
		CLI.__init__( self, _mininet )
Example #5
0
 def __init__(self, mn_wifi, stdin=sys.stdin, script=None):
     MN_CLI.__init__(self, mn_wifi, stdin=sys.stdin, script=None)
Example #6
0
 def __init__ (self, net):
     """Init method for our custom CLI."""
     self.net = net
     CLI.__init__(self, net)
Example #7
0
 def __init__(self, mininet, stdin=sys.stdin, script=None):
     CLI.__init__(self, mininet, stdin=sys.stdin, script=None)
 def __init__( self, mininet ):
     self.mininet = mininet
     CLI.__init__( self, mininet )
Example #9
0
 def __init__(self, mininet):
     self.mininet = mininet
     CLI.__init__(self, mininet)
Example #10
0
    def __init__(self,minigenerator,*args,**kwargs):

        if minigenerator:
            self.minigenerator = minigenerator

        CLI.__init__(self,*args,**kwargs)
Example #11
0
 def __init__(self, mn_wifi, stdin=sys.stdin, script=None):
     CLI.__init__(self, mn_wifi, stdin=sys.stdin, script=None)
Example #12
0
 def __init__( self, *args, **kwargs ):
     "cnet: second network"
     self.cnet = kwargs.pop( 'cnet' )
     CLI.__init__( self, *args, **kwargs )
Example #13
0
 def __init__(self, *args, **kwargs):
     ""
     CLI.__init__( self, *args, **kwargs )
 def __init__(self, mininet):
     self.hostmap = {}
     for host in mininet.hosts:
         self.hostmap[host.name] = host
     CLI.__init__(self, mininet)
Example #15
0
 def __init__(self, *args, **kwargs):
     "cnet: second network"
     self.cnet = kwargs.pop('cnet')
     CLI.__init__(self, *args, **kwargs)