Did I find the right examples for you? yes no

All Samples(19)  |  Call(19)  |  Derive(0)  |  Import(0)

src/n/o/nova-HEAD/nova/compute/manager.py   nova(Download)
                return
 
        net_info = compute_utils.get_nw_info_for_instance(instance)
        try:
            self.driver.plug_vifs(instance, net_info)
                                              "shutdown.start")
 
        network_info = compute_utils.get_nw_info_for_instance(instance)
 
        # NOTE(vish) get bdms before destroying the instance
                        context, instance, self.host)
 
            network_info = compute_utils.get_nw_info_for_instance(instance)
            if bdms is None:
                bdms = (block_device_obj.BlockDeviceMappingList.

src/n/o/nova-gce-HEAD/nova/compute/manager.py   nova-gce(Download)
                            '%(db_state)s.'), locals(), instance=instance)
 
                net_info = compute_utils.get_nw_info_for_instance(instance)
 
                # We're calling plug_vifs to ensure bridge and iptables

src/n/o/nova-HEAD/nova/api/openstack/compute/contrib/floating_ips.py   nova(Download)
 
        instance = common.get_instance(self.compute_api, context, id)
        cached_nwinfo = compute_utils.get_nw_info_for_instance(instance)
        if not cached_nwinfo:
            msg = _('No nw_info cache associated with instance')

src/n/o/nova-HEAD/nova/api/openstack/compute/contrib/cloudpipe.py   nova(Download)
        rv['instance_id'] = instance['uuid']
        rv['created_at'] = timeutils.isotime(instance['created_at'])
        nw_info = compute_utils.get_nw_info_for_instance(instance)
        if not nw_info:
            return rv

src/n/o/nova-HEAD/nova/network/neutronv2/api.py   nova(Download)
            raise exception.NovaException(message=message)
 
        ifaces = compute_utils.get_nw_info_for_instance(instance)
        # This code path is only done when refreshing the network_cache
        if port_ids is None:

src/n/o/nova-HEAD/nova/api/openstack/common.py   nova(Download)
         ...}
    """
    nw_info = compute_utils.get_nw_info_for_instance(instance)
    return get_networks_for_instance_from_nw_info(nw_info)
 

src/n/o/nova-HEAD/nova/virt/firewall.py   nova(Download)
                                continue
                            nw_info = compute_utils.get_nw_info_for_instance(
                                    instance)
 
                            ips = [ip['address']

src/n/o/nova-gce-HEAD/nova/api/openstack/compute/contrib/floating_ips.py   nova-gce(Download)
        instance = self.compute_api.get(context, id)
 
        cached_nwinfo = compute_utils.get_nw_info_for_instance(instance)
        if not cached_nwinfo:
            msg = _('No nw_info cache associated with instance')

src/n/o/nova-gce-HEAD/nova/api/openstack/compute/contrib/cloudpipe.py   nova-gce(Download)
        rv['instance_id'] = instance['uuid']
        rv['created_at'] = timeutils.isotime(instance['created_at'])
        nw_info = compute_utils.get_nw_info_for_instance(instance)
        if not nw_info:
            return rv

src/n/o/nova-gce-HEAD/nova/api/gce/views/instances.py   nova-gce(Download)
 
        floats = []
        cached_nwinfo = compute_utils.get_nw_info_for_instance(instance)
        if cached_nwinfo:
            fixed_ips = cached_nwinfo.fixed_ips()

  1 | 2  Next