The cinder.scheduler.filters.json_filter Module

class JsonFilter

Bases: cinder.scheduler.filters.BaseHostFilter

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

commands = {'and': <function _and>, 'or': <function _or>, '>=': <function _greater_than_equal>, 'in': <function _in>, 'not': <function _not>, '<=': <function _less_than_equal>, '=': <function _equals>, '<': <function _less_than>, '>': <function _greater_than>}
host_passes(host_state, filter_properties)

Return a list of hosts that can fulfill query requirements.