'Patch to update IP address to global IP address'

def addController(self, *args, **kwargs):

    controller = Mininet.addController(self, *args, **kwargs)
    if (isinstance(controller, Controller) and (controller.IP() == '127.0.0.1') and ('    eth0:' in controller.cmd('ip    link    show'))):
        Intf('eth0', node=controller).updateIP()
    return controller
