Esempio n. 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 )
Esempio n. 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)
Esempio n. 3
0
 def __init__(self, FIE, stdin=sys.stdin, script=None):
     self._fie = FIE
     CLI.__init__(self, FIE, stdin, script)
     Cmd.__init__(self)
Esempio n. 4
0
	def __init__( self, _mininet, _env ):
		self.env = _env
		self.net = _mininet
		CLI.__init__( self, _mininet )
Esempio n. 5
0
 def __init__(self, mn_wifi, stdin=sys.stdin, script=None):
     MN_CLI.__init__(self, mn_wifi, stdin=sys.stdin, script=None)
Esempio n. 6
0
 def __init__ (self, net):
     """Init method for our custom CLI."""
     self.net = net
     CLI.__init__(self, net)
Esempio n. 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 )
Esempio n. 9
0
 def __init__(self, mininet):
     self.mininet = mininet
     CLI.__init__(self, mininet)
Esempio n. 10
0
    def __init__(self,minigenerator,*args,**kwargs):

        if minigenerator:
            self.minigenerator = minigenerator

        CLI.__init__(self,*args,**kwargs)
Esempio n. 11
0
 def __init__(self, mn_wifi, stdin=sys.stdin, script=None):
     CLI.__init__(self, mn_wifi, stdin=sys.stdin, script=None)
Esempio n. 12
0
 def __init__( self, *args, **kwargs ):
     "cnet: second network"
     self.cnet = kwargs.pop( 'cnet' )
     CLI.__init__( self, *args, **kwargs )
Esempio n. 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)
Esempio n. 15
0
 def __init__(self, *args, **kwargs):
     "cnet: second network"
     self.cnet = kwargs.pop('cnet')
     CLI.__init__(self, *args, **kwargs)