Revision ee007363 mininet/node.py

View differences:

mininet/node.py
320 320
                      ' '.join(self.intfs))
321 321
        # Run protocol daemon
322 322
        self.cmdPrint('ofprotocol nl:' + str(self.dp) + ' tcp:' +
323
                      controllers['c0'].IP()+':'+str(controllers['c0'].port) +
323
                      controllers['c0'].IP() + ':' +
324
                      str(controllers['c0'].port) +
324 325
                      ' --fail=closed 1> ' + ofplog + ' 2>' + ofplog + ' &')
325 326
        self.execed = False # XXX until I fix it
326 327

  
......
406 407
                    ' '.join(nox_args),
407 408
            cdir = nox_core_dir, **kwargs)
408 409

  
410

  
409 411
class RemoteController(Controller):
410
    '''Controller running remotely.'''
411
    def __init__(self, name, inNamespace = False, ip_address = None, port = 6633):
412
    '''Controller running outside of Mininet's control.'''
413
    def __init__(self, name, inNamespace = False, ip_address = '127.0.0.1',
414
                 port = 6633):
412 415
        '''Init.
413 416

  
414 417
        @param name name to give controller
......
416 419
            listening
417 420
        @param port the port where the remote controller is listening
418 421
        '''
419
        if not ip_address:
420
            raise Exception('please set ip_address\n')
421 422
        Controller.__init__(self, name, ip_address = ip_address, port = port)
422 423

  
423 424
    def start(self):

Also available in: Unified diff