def find_fixed_ip(instance, network_info):
    for subnet in network_info['subnets']:
        netmask = subnet['cidr'].split('/')[1]
        for ip in subnet['ips']:
            if ((ip['type'] == 'fixed') and ip['address']):
                return ((ip['address'] + '/') + netmask)
    raise exception.InstanceDeployFailure(_('Cannot find fixed ip'), instance_id=instance['uuid'])
def find_fixed_ip(instance, network_info):
    for subnet in network_info['subnets']:
        netmask = subnet['cidr'].split('/')[1]
        for ip in subnet['ips']:
            if ((ip['type'] == 'fixed') and ip['address']):
                return ((ip['address'] + '/') + netmask)
    raise exception.InstanceDeployFailure(_('Cannot find fixed ip'), instance_id=instance['uuid'])