This Page

Psst... hey. You're reading the latest content, but it might be out of sync with code. You can read Nova 2011.2 docs or all OpenStack docs too.

The nova.scheduler.filters.json_filter Module

class nova.scheduler.filters.json_filter.JsonFilter

Bases: nova.scheduler.filters.abstract_filter.AbstractHostFilter

Host Filter to allow simple JSON-based grammar for selecting hosts.

filter_hosts(zone_manager, query)

Return a list of hosts that can fulfill the requirements specified in the query.

instance_type_to_filter(instance_type)

Convert instance_type into JSON filter object.