nfv-filters/doc/source/usage.rst
Rodolfo Alonso Hernandez 5c6a3b3735 Add documentation: how to enable a new filter in Nova
Added instructions to make available and enable a new
filter, implemented in this repository, in Nova
Scheduler.

Closes-Bug: #1646066
Change-Id: Ic96afa2b28025c4ddb4811c082c69a82daa4ff0d
2016-12-09 10:56:58 +00:00

1.0 KiB

Usage

Follow the Installation document first. This document describes how to install this project.

To use nfv-filters in a project:

import nfv_filters

local.conf settings

See Configuring filters to learn how to use configure Nova Scheduler filters.

To make available a new filter in Nova, not located in Nova Scheduler default filters, you should add the file containing the filter class to the variable scheduler_available_filters in the default section:

[[post-config|$NOVA_CONF]]
[DEFAULT]
filter_scheduler.available_filters=nova.scheduler.filters.all_filters,nfv_filters.nova.scheduler.filters.aggregate_instance_type_filter

To enable this filter in Nova Scheduler, add your filter to the variable `scheduler_default_filters`:

[[post-config|$NOVA_CONF]]
[DEFAULT]
scheduler_default_filters=RamFilter,ComputeFilter,AggregateInstanceTypeFilter