Merge "Improve the validation of 'nets' parameter"

This commit is contained in:
Zuul 2018-03-11 15:06:05 +00:00 committed by Gerrit Code Review
commit 22180be2d5

View File

@ -120,7 +120,31 @@ hints = {
} }
nets = { nets = {
'type': ['array', 'null'] 'type': ['array', 'null'],
'items': {
'type': 'object',
'properties': {
'network': {
'type': ['string'],
'minLength': 1,
'maxLength': 255,
},
'v4-fixed-ip': {
'type': ['string'],
'format': 'ipv4'
},
'v6-fixed-ip': {
'type': ['string'],
'format': 'ipv6'
},
'port': {
'type': ['string'],
'maxLength': 255,
'minLength': 1,
}
},
'additionalProperties': False
}
} }
availability_zone = { availability_zone = {