blob: 5ce66f0d42d50d2846edc9780a1ac05e0ce352bb [file] [log] [blame]
Jian Li260231e2021-01-13 18:05:00 +09001{
2 "type": "object",
Jian Li7eb20782021-02-27 01:10:50 +09003 "title": "networks",
Jian Li260231e2021-01-13 18:05:00 +09004 "required": [
Jian Li7eb20782021-02-27 01:10:50 +09005 "networks"
Jian Li260231e2021-01-13 18:05:00 +09006 ],
7 "properties": {
Jian Li7eb20782021-02-27 01:10:50 +09008 "networks": {
Jian Li260231e2021-01-13 18:05:00 +09009 "type": "array",
10 "xml": {
Jian Li7eb20782021-02-27 01:10:50 +090011 "name": "networks",
Jian Li260231e2021-01-13 18:05:00 +090012 "wrapped": true
13 },
14 "items": {
15 "type": "object",
16 "description": "A network object.",
17 "required": [
18 "networkId",
19 "type",
20 "name",
21 "segmentId",
22 "gatewayIp",
23 "cidr",
24 "mtu"
25 ],
26 "properties": {
27 "networkId": {
28 "type": "string",
29 "example": "sona-network",
30 "description": "The ID of the attached network."
31 },
32 "type": {
33 "type": "string",
34 "example": "VXLAN",
35 "description": "Type of kubernetes network."
36 },
37 "name": {
38 "type": "string",
39 "example": "sona-network",
40 "description": "The name of network."
41 },
42 "segmentId": {
43 "type": "string",
44 "example": "1",
45 "description": "Segment ID of tenant network."
46 },
47 "gatewayIp": {
48 "type": "string",
49 "example": "10.10.10.1",
50 "description": "The IP address of the gateway."
51 },
52 "cidr": {
53 "type": "string",
54 "example": "10.10.10.0/24",
55 "description": "The CIDR of this network."
56 },
57 "mtu": {
58 "type": "integer",
59 "example": 1500,
60 "description": "The Maximum Transmission Unit of this network."
61 }
62 }
63 }
64 }
65 }
66}