Add API schema for different_cell filter

For using the different cell filter, the API parameter different_cell
needs to be passed to the corresponding filter. However v2.1 API
validation denies it because there is not API parameter definition
and it didn't work at all.
This patch adds the API schema.

Change-Id: Ic61b9a18722b7701b09e71f3f3a547ad9e6363c2
Closes-Bug: #1492925
This commit is contained in:
Ken'ichi Ohmichi
2015-09-08 02:48:30 +00:00
parent 704c6e4d9c
commit 029ad7e123

View File

@@ -46,6 +46,12 @@ _hints = {
# NOTE: The value of 'target_cell' is the cell name what cell
# a new server is scheduled on.
'target_cell': parameter_types.name,
'different_cell': {
'type': ['string', 'array'],
'items': {
'type': 'string'
}
},
'build_near_host_ip': parameter_types.ip_address,
'cidr': {
'type': 'string',