'try to pick the bridge key, falls back to the value of the last key'

def _get_fallback_ip(self, ip_dict):

    if ('bridge' in ip_dict):
        log.debug('Using    the    bridge    network.')
        return ip_dict['bridge']
    else:
        last_key = sorted(ip_dict.iterkeys())[(-1)]
        log.debug(("Trying    with    the    last    (sorted)    network:    '%s'." % last_key))
        return ip_dict[last_key]
