The cinder.scheduler.filters.json_filter
Module¶
-
class
JsonFilter
¶ Bases:
cinder.scheduler.filters.BaseBackendFilter
Backend filter for simple JSON-based grammar for selecting backends.
-
backend_passes
(backend_state, filter_properties)¶ Return a list of backends that can fulfill query requirements.
-
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>}¶
-