'Returns all network info related to an instance.'

def _get_instance_nw_info(self, context, instance, **kwargs):

    flavor = instance.get_flavor()
    args = {'instance_id': instance.uuid, 'rxtx_factor': flavor['rxtx_factor'], 'host': instance.host, 'project_id': instance.project_id}
    nw_info = self.network_rpcapi.get_instance_nw_info(context, **args)
    return network_model.NetworkInfo.hydrate(nw_info)
