Jian Li | a80b158 | 2019-01-25 12:47:42 +0900 | [diff] [blame] | 1 | { |
| 2 | "type": "object", |
| 3 | "description": "A network object.", |
| 4 | "required": [ |
| 5 | "networkId", |
| 6 | "type", |
| 7 | "name", |
| 8 | "segmentId", |
| 9 | "gatewayIp", |
| 10 | "cidr", |
| 11 | "mtu" |
| 12 | ], |
| 13 | "properties": { |
| 14 | "networkId": { |
| 15 | "type": "string", |
Jian Li | d89db46 | 2019-02-08 18:21:57 +0900 | [diff] [blame] | 16 | "example": "sona-network", |
Jian Li | a80b158 | 2019-01-25 12:47:42 +0900 | [diff] [blame] | 17 | "description": "The ID of the attached network." |
| 18 | }, |
| 19 | "type": { |
| 20 | "type": "string", |
Jian Li | d89db46 | 2019-02-08 18:21:57 +0900 | [diff] [blame] | 21 | "example": "VXLAN", |
| 22 | "description": "Type of kubernetes network." |
Jian Li | a80b158 | 2019-01-25 12:47:42 +0900 | [diff] [blame] | 23 | }, |
| 24 | "name": { |
| 25 | "type": "string", |
Jian Li | d89db46 | 2019-02-08 18:21:57 +0900 | [diff] [blame] | 26 | "example": "sona-network", |
Jian Li | a80b158 | 2019-01-25 12:47:42 +0900 | [diff] [blame] | 27 | "description": "The name of network." |
| 28 | }, |
| 29 | "segmentId": { |
| 30 | "type": "string", |
| 31 | "example": "1", |
| 32 | "description": "Segment ID of tenant network." |
| 33 | }, |
| 34 | "gatewayIp": { |
| 35 | "type": "string", |
| 36 | "example": "10.10.10.1", |
| 37 | "description": "The IP address of the gateway." |
| 38 | }, |
| 39 | "cidr": { |
| 40 | "type": "string", |
Jian Li | d89db46 | 2019-02-08 18:21:57 +0900 | [diff] [blame] | 41 | "example": "10.10.10.0/24", |
Jian Li | a80b158 | 2019-01-25 12:47:42 +0900 | [diff] [blame] | 42 | "description": "The CIDR of this network." |
| 43 | }, |
| 44 | "mtu": { |
| 45 | "type": "integer", |
| 46 | "example": 1500, |
| 47 | "description": "The Maximum Transmission Unit of this network." |
| 48 | } |
| 49 | } |
| 50 | } |