Bases: nova.scheduler.filters.BaseHostFilter
Host Filter to allow simple JSON-based grammar for
selecting hosts.
-
commands = {'<=': <function _less_than_equal at 0x7f30f1ee9668>, 'not': <function _not at 0x7f30f1ee9758>, 'or': <function _or at 0x7f30f1ee97d0>, '>=': <function _greater_than_equal at 0x7f30f1ee96e0>, 'in': <function _in at 0x7f30f1ee95f0>, 'and': <function _and at 0x7f30f1ee9848>, '>': <function _greater_than at 0x7f30f1ee9578>, '<': <function _less_than at 0x7f30f1ee9500>, '=': <function _equals at 0x7f30f1ee9488>}
-
host_passes(host_state, spec_obj)
Return a list of hosts that can fulfill the requirements
specified in the query.