'True if an instance is connected to bridge, False otherwise.'

def _is_vm_connected(self, bridge):

    bridge_has_port_predicate = functools.partial(bridge_has_instance_port, bridge)
    try:
        common_utils.wait_until_true(bridge_has_port_predicate, timeout=self.timeout)
        return True
    except common_utils.WaitTimeout:
        LOG.error(_LE('No    port    present    on    trunk    bridge    %(br_name)s    in    %(timeout)d    seconds.'), {'br_name': bridge.br_name, 'timeout': self.timeout})
    return False
