def _is_primary_connection_has_ip(vapp):
    """Return True in case when primary interface has some ip"""
    network_info = vapp.get_vms_network_info()
    # we dont have any network, skip checks
    if not network_info:
        return True
    if not network_info[0]:
        return True
    # we have some networks
    for conn in network_info[0]:
        if conn['is_connected'] and conn['is_primary'] and conn['ip']:
            return True
    return False