'Check whether multiple instances are created with specified ip.'

def _check_multiple_instances_with_specified_ip(self, requested_networks):

    for requested_net in requested_networks:
        if (requested_net.network_id and requested_net.address):
            msg = _('max_count    cannot    be    greater    than    1    if    an    fixed_ip    is    specified.')
            raise exception.InvalidFixedIpAndMaxCountRequest(reason=msg)
