Add parameter for filtering nodes by maintenance mode
Boolean parameter 'maintenance' added to API for filtering
nodes by maintenance mode, example:
/nodes?maintenance=false
strutils.bool_from_string() used for converting 'associated'
and 'maintenance' parameters, accepted values now for True
('1', 't', 'true', 'on', 'y', 'yes'), for False
('0', 'f', 'false', 'off', 'n', 'no') case-insensitive.
Refactored dbapi method get_node_list with filters used for
_get_nodes_collection in nodes controller.
Reviewed: https:/ /review. openstack. org/63937 /git.openstack. org/cgit/ openstack/ ironic/ commit/ ?id=487f6738bcb 331115b49a88f21 520b412cdcc49c
Committed: https:/
Submitter: Jenkins
Branch: master
commit 487f6738bcb3311 15b49a88f21520b 412cdcc49c
Author: Yuriy Zveryanskyy <email address hidden>
Date: Tue Dec 24 15:41:54 2013 +0200
Add parameter for filtering nodes by maintenance mode
Boolean parameter 'maintenance' added to API for filtering maintenance= false bool_from_ string( ) used for converting 'associated' nodes_collectio n in nodes controller.
nodes by maintenance mode, example:
/nodes?
strutils.
and 'maintenance' parameters, accepted values now for True
('1', 't', 'true', 'on', 'y', 'yes'), for False
('0', 'f', 'false', 'off', 'n', 'no') case-insensitive.
Refactored dbapi method get_node_list with filters used for
_get_
Partial-Bug: #1260099 890d191cf569bb3 cf00b7619f2
Partial-Bug: #1271291
Change-Id: I01a62eb641316e