Ghanshyam | 8f1c6cd | 2014-03-17 13:15:14 +0900 | [diff] [blame] | 1 | # Copyright 2014 NEC Corporation. All rights reserved. |
| 2 | # |
| 3 | # Licensed under the Apache License, Version 2.0 (the "License"); you may |
| 4 | # not use this file except in compliance with the License. You may obtain |
| 5 | # a copy of the License at |
| 6 | # |
| 7 | # http://www.apache.org/licenses/LICENSE-2.0 |
| 8 | # |
| 9 | # Unless required by applicable law or agreed to in writing, software |
| 10 | # distributed under the License is distributed on an "AS IS" BASIS, WITHOUT |
| 11 | # WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the |
| 12 | # License for the specific language governing permissions and limitations |
| 13 | # under the License. |
| 14 | |
| 15 | fixed_ips = { |
| 16 | 'status_code': [200], |
| 17 | 'response_body': { |
| 18 | 'type': 'object', |
| 19 | 'properties': { |
| 20 | 'fixed_ip': { |
| 21 | 'type': 'object', |
| 22 | 'properties': { |
| 23 | 'address': { |
| 24 | 'type': 'string', |
| 25 | 'format': 'ip-address' |
| 26 | }, |
| 27 | 'cidr': {'type': 'string'}, |
| 28 | 'host': {'type': 'string'}, |
| 29 | 'hostname': {'type': 'string'} |
| 30 | }, |
| 31 | 'required': ['address', 'cidr', 'host', 'hostname'] |
| 32 | } |
| 33 | }, |
| 34 | 'required': ['fixed_ip'] |
| 35 | } |
| 36 | } |
Ghanshyam | 2e24a1d | 2014-03-25 10:05:28 +0900 | [diff] [blame] | 37 | |
| 38 | fixed_ip_action = { |
| 39 | 'status_code': [202], |
| 40 | 'response_body': {'type': 'string'} |
| 41 | } |