cinder.scheduler.filters.json_filter module

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 = {'<': <function JsonFilter._less_than>, '<=': <function JsonFilter._less_than_equal>, '=': <function JsonFilter._equals>, '>': <function JsonFilter._greater_than>, '>=': <function JsonFilter._greater_than_equal>, 'and': <function JsonFilter._and>, 'in': <function JsonFilter._in>, 'not': <function JsonFilter._not>, 'or': <function JsonFilter._or>}
Creative Commons Attribution 3.0 License

Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.