blob: 835dfeae21b2943d2a3a2fb25b120f1167c9e905 [file] [log] [blame]
Jian Li810f58c2021-02-27 01:10:50 +09001{
2 "type": "object",
3 "title": "routers",
4 "required": [
5 "routers"
6 ],
7 "properties": {
8 "routers": {
9 "type": "array",
10 "xml": {
11 "name": "routers",
12 "wrapped": true
13 },
14 "items": {
15 "type": "object",
16 "description": "A router object.",
17 "required": [
18 "name",
19 "enableSnat",
Jian Li9756cec2021-03-16 16:06:33 +090020 "mac",
Jian Li810f58c2021-02-27 01:10:50 +090021 "internal",
22 "external",
23 "peerRouter"
24 ],
25 "properties": {
26 "name": {
27 "type": "string",
28 "example": "router-1",
29 "description": "The name of router."
30 },
31 "enableSnat": {
32 "type": "boolean",
33 "example": "true",
34 "description": "Enable SNAT flag."
35 },
Jian Li9756cec2021-03-16 16:06:33 +090036 "mac": {
37 "type": "string",
38 "example": "11:22:33:44:55:66",
39 "description": "The MAC address of virtual router."
40 },
Jian Li810f58c2021-02-27 01:10:50 +090041 "internal": {
42 "type": "array",
43 "xml": {
44 "name": "internal",
45 "wrapped": true
46 },
47 "items": {
48 "type": "string",
49 "example": "vxlan-1",
50 "description": "name of internal network"
51 }
52 },
53 "external": {
54 "type": "object",
55 "description": "external networks",
56 "required": [
57 "ip",
58 "name"
59 ],
60 "properties": {
61 "ipaddress": {
62 "type": "string",
63 "example": "10.10.10.5",
64 "description": "Router IP address of the external network"
65 },
66 "name": {
67 "type": "string",
68 "example": "flat",
69 "description": "Name of the external network"
70 }
71 }
72 },
73 "peerRouter": {
74 "type": "object",
75 "description": "peer router",
76 "required": [
77 "ip",
78 "mac"
79 ],
80 "properties": {
81 "ipaddress": {
82 "type": "string",
83 "example": "10.10.10.1",
84 "description": "IP address of the peer router"
85 },
Jian Li9756cec2021-03-16 16:06:33 +090086 "mac": {
Jian Li810f58c2021-02-27 01:10:50 +090087 "type": "string",
88 "example": "11:22:33:44:55:66",
89 "description": "MAC address of the peer router"
90 }
91 }
92 }
93 }
94 }
95 }
96 }
97}