blob: 5653ae8e563b8e338d75b90e00fad6b2693e793b [file] [log] [blame]
Jian Li762bc222020-12-19 01:26:57 +09001{
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",
16 "example": "sona-network",
17 "description": "The ID of the attached network."
18 },
19 "type": {
20 "type": "string",
21 "example": "VXLAN",
22 "description": "Type of kubernetes network."
23 },
24 "name": {
25 "type": "string",
26 "example": "sona-network",
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",
41 "example": "10.10.10.0/24",
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}