blob: 0ddb67d48852656f82ed9efde82d54266403cee7 [file] [log] [blame]
Jonathan Hart8338b8d2017-08-15 15:46:14 -07001{
2 "type": "object",
3 "title": "routes",
4 "required": [
5 "ipv4",
6 "ipv6"
7 ],
8 "properties": {
9 "ipv4": {
10 "type": "array",
11 "xml": {
12 "name": "ipv4",
13 "wrapped": true
14 },
15 "items": {
16 "type": "object",
17 "title": "route",
18 "required": [
19 "source",
20 "prefix",
21 "nextHop"
22 ],
23 "properties": {
24 "source": {
25 "type": "string",
26 "example": "STATIC",
27 "description": "Route source"
28 },
29 "prefix": {
30 "type": "string",
31 "example": "10.1.1.0/24",
32 "description": "Route prefix"
33 },
34 "nextHop": {
35 "type": "string",
36 "example": "1.1.1.1",
37 "description": "Next hop IP address"
38 }
39 }
40 }
41 },
42 "ipv6": {
43 "type": "array",
44 "xml": {
45 "name": "ipv6",
46 "wrapped": true
47 },
48 "items": {
49 "type": "object",
50 "title": "route",
51 "required": [
52 "source",
53 "prefix",
54 "nextHop"
55 ],
56 "properties": {
57 "source": {
58 "type": "string",
59 "example": "STATIC",
60 "description": "Route source"
61 },
62 "prefix": {
63 "type": "string",
64 "example": "1111::/64",
65 "description": "Route prefix"
66 },
67 "nextHop": {
68 "type": "string",
69 "example": "2222::1",
70 "description": "Next hop IP address"
71 }
72 }
73 }
74 }
75 }
76}