blob: 99f167b00edb69671ac410a53c2293110a9a31e2 [file] [log] [blame]
andrea1ce2bc82015-11-18 16:58:10 -08001{
2 "type": "object",
3 "title": "host",
4 "required": [
5 "mac",
6 "vlan",
7 "ipAddresses",
8 "location"
9 ],
10 "properties": {
11 "mac": {
12 "type": "string",
13 "example": "46:E4:3C:A4:17:C8"
14 },
15 "vlan": {
16 "type": "string",
17 "example": "-1"
18 },
19 "ipAddresses": {
20 "type": "array",
21 "xml": {
22 "name": "hosts",
23 "wrapped": true
24 },
25 "items": {
26 "type": "string",
27 "example": "127.0.0.1"
28 }
29 },
Charles Chancd06c692017-04-27 20:46:06 -070030 "locations": {
31 "type": "array",
32 "items": {
33 "type": "object",
34 "title": "location",
35 "required": [
36 "elementId",
37 "port"
38 ],
39 "properties": {
40 "elementId": {
41 "type": "string",
42 "example": "of:0000000000000002"
43 },
44 "port": {
45 "type": "string",
46 "example": "3"
47 }
andrea1ce2bc82015-11-18 16:58:10 -080048 }
49 }
Charles Chan5425aae2020-01-14 16:29:43 -080050 },
51 "auxLocations": {
52 "required": false,
53 "type": "array",
54 "items": {
55 "type": "object",
56 "title": "location",
57 "required": [
58 "elementId",
59 "port"
60 ],
61 "properties": {
62 "elementId": {
63 "type": "string",
64 "example": "of:0000000000000003"
65 },
66 "port": {
67 "type": "string",
68 "example": "4"
69 }
70 }
71 }
72 },
73 "innerVlan": {
74 "required": false,
75 "type": "string",
76 "example": "10"
77 },
78 "outerTpid": {
79 "required": false,
80 "type": "string",
81 "example": "0x88a8"
andrea1ce2bc82015-11-18 16:58:10 -080082 }
83 }
84}