Simon Hunt

Added more sample data.

1 +{
2 + "devices": [
3 + {
4 + "id": "of:0000ffffffffff08",
5 + "type": "roadm",
6 + "online": false,
7 + "labels": [
8 + "0000ffffffffff08",
9 + "FF:FF:FF:FF:FF:08",
10 + "?"
11 + ]
12 + },
13 + {
14 + "id": "of:0000ffffffffff03",
15 + "type": "roadm",
16 + "online": false,
17 + "labels": [
18 + "0000ffffffffff03",
19 + "FF:FF:FF:FF:FF:03",
20 + "?"
21 + ]
22 + },
23 + {
24 + "id": "of:0000ffffffffff02",
25 + "type": "roadm",
26 + "online": false,
27 + "labels": [
28 + "0000ffffffffff02",
29 + "FF:FF:FF:FF:FF:02",
30 + "?"
31 + ]
32 + },
33 + {
34 + "id": "of:0000ffffffff0003",
35 + "type": "switch",
36 + "online": false,
37 + "labels": [
38 + "0000ffffffff0003",
39 + "FF:FF:FF:FF:00:03",
40 + "?"
41 + ]
42 + },
43 + {
44 + "id": "of:0000ffffffffff07",
45 + "type": "roadm",
46 + "online": false,
47 + "labels": [
48 + "0000ffffffffff07",
49 + "FF:FF:FF:FF:FF:07",
50 + "?"
51 + ]
52 + },
53 + {
54 + "id": "of:0000ffffffffff06",
55 + "type": "roadm",
56 + "online": false,
57 + "labels": [
58 + "0000ffffffffff06",
59 + "FF:FF:FF:FF:FF:06",
60 + "?"
61 + ]
62 + },
63 + {
64 + "id": "of:0000ffffffff0007",
65 + "type": "switch",
66 + "online": false,
67 + "labels": [
68 + "0000ffffffff0007",
69 + "FF:FF:FF:FF:00:07",
70 + "?"
71 + ]
72 + },
73 + {
74 + "id": "of:0000ffffffffff05",
75 + "type": "roadm",
76 + "online": false,
77 + "labels": [
78 + "0000ffffffffff05",
79 + "FF:FF:FF:FF:FF:05",
80 + "?"
81 + ]
82 + },
83 + {
84 + "id": "of:0000ffffffff0009",
85 + "type": "switch",
86 + "online": false,
87 + "labels": [
88 + "0000ffffffff0009",
89 + "FF:FF:FF:FF:00:09",
90 + "?"
91 + ]
92 + },
93 + {
94 + "id": "of:0000ffffffffff04",
95 + "type": "roadm",
96 + "online": false,
97 + "labels": [
98 + "0000ffffffffff04",
99 + "FF:FF:FF:FF:FF:04",
100 + "?"
101 + ]
102 + },
103 + {
104 + "id": "of:0000ffffffff000A",
105 + "type": "switch",
106 + "online": false,
107 + "labels": [
108 + "0000ffffffff000A",
109 + "FF:FF:FF:FF:00:0A",
110 + "?"
111 + ]
112 + },
113 + {
114 + "id": "of:0000ffffffff0001",
115 + "type": "switch",
116 + "online": false,
117 + "labels": [
118 + "0000ffffffff0001",
119 + "FF:FF:FF:FF:00:01",
120 + "?"
121 + ]
122 + },
123 + {
124 + "id": "of:0000ffffffffff01",
125 + "type": "roadm",
126 + "online": false,
127 + "labels": [
128 + "0000ffffffffff01",
129 + "FF:FF:FF:FF:FF:01",
130 + "?"
131 + ]
132 + },
133 + {
134 + "id": "of:0000ffffffff0004",
135 + "type": "switch",
136 + "online": false,
137 + "labels": [
138 + "0000ffffffff0004",
139 + "FF:FF:FF:FF:00:04",
140 + "?"
141 + ]
142 + },
143 + {
144 + "id": "of:0000ffffffffff0A",
145 + "type": "roadm",
146 + "online": false,
147 + "labels": [
148 + "0000ffffffffff0A",
149 + "FF:FF:FF:FF:FF:0A",
150 + "?"
151 + ]
152 + },
153 + {
154 + "id": "of:0000ffffffffff09",
155 + "type": "roadm",
156 + "online": false,
157 + "labels": [
158 + "0000ffffffffff09",
159 + "FF:FF:FF:FF:FF:09",
160 + "?"
161 + ]
162 + }
163 + ],
164 + "links": [
165 + {
166 + "src": "of:0000ffffffffff02",
167 + "srcPort": "20",
168 + "dst": "of:0000ffffffffff05",
169 + "dstPort": "10",
170 + "type": "optical",
171 + "linkWidth": 2
172 + },
173 + {
174 + "src": "of:0000ffffffff000A",
175 + "srcPort": "2",
176 + "dst": "of:0000ffffffffff0A",
177 + "dstPort": "1",
178 + "type": "optical",
179 + "linkWidth": 2
180 + },
181 + {
182 + "src": "of:0000ffffffffff03",
183 + "srcPort": "10",
184 + "dst": "of:0000ffffffffff02",
185 + "dstPort": "10",
186 + "type": "optical",
187 + "linkWidth": 2
188 + },
189 + {
190 + "src": "of:0000ffffffffff07",
191 + "srcPort": "21",
192 + "dst": "of:0000ffffffffff05",
193 + "dstPort": "20",
194 + "type": "optical",
195 + "linkWidth": 2
196 + },
197 + {
198 + "src": "of:0000ffffffff0001",
199 + "srcPort": "2",
200 + "dst": "of:0000ffffffffff01",
201 + "dstPort": "1",
202 + "type": "optical",
203 + "linkWidth": 2
204 + },
205 + {
206 + "src": "of:0000ffffffffff09",
207 + "srcPort": "20",
208 + "dst": "of:0000ffffffffff0A",
209 + "dstPort": "20",
210 + "type": "optical",
211 + "linkWidth": 2
212 + },
213 + {
214 + "src": "of:0000ffffffffff06",
215 + "srcPort": "20",
216 + "dst": "of:0000ffffffffff05",
217 + "dstPort": "30",
218 + "type": "optical",
219 + "linkWidth": 2
220 + },
221 + {
222 + "src": "of:0000ffffffffff07",
223 + "srcPort": "30",
224 + "dst": "of:0000ffffffffff08",
225 + "dstPort": "20",
226 + "type": "optical",
227 + "linkWidth": 2
228 + },
229 + {
230 + "src": "of:0000ffffffffff03",
231 + "srcPort": "20",
232 + "dst": "of:0000ffffffffff06",
233 + "dstPort": "10",
234 + "type": "optical",
235 + "linkWidth": 2
236 + },
237 + {
238 + "src": "of:0000ffffffffff02",
239 + "srcPort": "10",
240 + "dst": "of:0000ffffffffff01",
241 + "dstPort": "10",
242 + "type": "optical",
243 + "linkWidth": 2
244 + },
245 + {
246 + "src": "of:0000ffffffffff09",
247 + "srcPort": "1",
248 + "dst": "of:0000ffffffff0009",
249 + "dstPort": "2",
250 + "type": "optical",
251 + "linkWidth": 2
252 + },
253 + {
254 + "src": "of:0000ffffffffff03",
255 + "srcPort": "30",
256 + "dst": "of:0000ffffffffff04",
257 + "dstPort": "10",
258 + "type": "optical",
259 + "linkWidth": 2
260 + },
261 + {
262 + "src": "of:0000ffffffffff07",
263 + "srcPort": "20",
264 + "dst": "of:0000ffffffffff09",
265 + "dstPort": "10",
266 + "type": "optical",
267 + "linkWidth": 2
268 + },
269 + {
270 + "src": "of:0000ffffffffff0A",
271 + "srcPort": "10",
272 + "dst": "of:0000ffffffffff08",
273 + "dstPort": "30",
274 + "type": "optical",
275 + "linkWidth": 2
276 + },
277 + {
278 + "src": "of:0000ffffffff0004",
279 + "srcPort": "2",
280 + "dst": "of:0000ffffffffff04",
281 + "dstPort": "1",
282 + "type": "optical",
283 + "linkWidth": 2
284 + },
285 + {
286 + "src": "of:0000ffffffffff07",
287 + "srcPort": "1",
288 + "dst": "of:0000ffffffff0007",
289 + "dstPort": "2",
290 + "type": "optical",
291 + "linkWidth": 2
292 + },
293 + {
294 + "src": "of:0000ffffffff0003",
295 + "srcPort": "2",
296 + "dst": "of:0000ffffffffff03",
297 + "dstPort": "1",
298 + "type": "optical",
299 + "linkWidth": 2
300 + },
301 + {
302 + "src": "of:0000ffffffffff06",
303 + "srcPort": "30",
304 + "dst": "of:0000ffffffffff08",
305 + "dstPort": "10",
306 + "type": "optical",
307 + "linkWidth": 2
308 + }
309 + ],
310 + "hosts": [
311 + {
312 + "id": "00:00:00:00:00:03/-1",
313 + "cp": {
314 + "device": "of:0000ffffffff0003",
315 + "port": 1
316 + },
317 + "labels": [
318 + "10.0.0.3",
319 + "00:00:00:00:00:03"
320 + ]
321 + },
322 + {
323 + "id": "00:00:00:00:00:04/-1",
324 + "cp": {
325 + "device": "of:0000ffffffff0004",
326 + "port": 1
327 + },
328 + "labels": [
329 + "10.0.0.4",
330 + "00:00:00:00:00:04"
331 + ]
332 + },
333 + {
334 + "id": "00:00:00:00:00:0A/-1",
335 + "cp": {
336 + "device": "of:0000ffffffff000A",
337 + "port": 1
338 + },
339 + "labels": [
340 + "10.0.0.10",
341 + "00:00:00:00:00:0A"
342 + ]
343 + },
344 + {
345 + "id": "00:00:00:00:00:09/-1",
346 + "cp": {
347 + "device": "of:0000ffffffff0009",
348 + "port": 1
349 + },
350 + "labels": [
351 + "10.0.0.9",
352 + "00:00:00:00:00:09"
353 + ]
354 + },
355 + {
356 + "id": "00:00:00:00:00:07/-1",
357 + "cp": {
358 + "device": "of:0000ffffffff0007",
359 + "port": 1
360 + },
361 + "labels": [
362 + "10.0.0.7",
363 + "00:00:00:00:00:07"
364 + ]
365 + },
366 + {
367 + "id": "00:00:00:00:00:01/-1",
368 + "cp": {
369 + "device": "of:0000ffffffff0001",
370 + "port": 1
371 + },
372 + "labels": [
373 + "10.0.0.1",
374 + "00:00:00:00:00:01"
375 + ]
376 + }
377 + ]
378 +}
1 +{
2 + "id": "of:0000ffffffff0007",
3 + "type": "switch",
4 + "propOrder": [
5 + "Name",
6 + "Vendor",
7 + "H/W Version",
8 + "S/W Version",
9 + "S/W Version",
10 + "-",
11 + "Latitude",
12 + "Longitude",
13 + "Ports"
14 + ],
15 + "props": {
16 + "Name": null,
17 + "Vendor": "Linc",
18 + "H/W Version": "PK",
19 + "S/W Version": "?",
20 + "-": "",
21 + "Latitude": "41.8",
22 + "Longitude": "120.1",
23 + "Ports": "2"
24 + }
25 +}
1 +{
2 + "id": "of:0000ffffffff0009",
3 + "type": "switch",
4 + "propOrder": [
5 + "Name",
6 + "Vendor",
7 + "H/W Version",
8 + "S/W Version",
9 + "S/W Version",
10 + "-",
11 + "Latitude",
12 + "Longitude",
13 + "Ports"
14 + ],
15 + "props": {
16 + "Name": null,
17 + "Vendor": "Linc",
18 + "H/W Version": "PK",
19 + "S/W Version": "?",
20 + "-": "",
21 + "Latitude": "40.8",
22 + "Longitude": "73.1",
23 + "Ports": "2"
24 + }
25 +}
1 +{
2 + "id": "of:0000ffffffffff07",
3 + "type": "roadm",
4 + "propOrder": [
5 + "Name",
6 + "Vendor",
7 + "H/W Version",
8 + "S/W Version",
9 + "S/W Version",
10 + "-",
11 + "Latitude",
12 + "Longitude",
13 + "Ports"
14 + ],
15 + "props": {
16 + "Name": null,
17 + "Vendor": "Linc",
18 + "H/W Version": "OE",
19 + "S/W Version": "?",
20 + "-": "",
21 + "Latitude": "41.8",
22 + "Longitude": "120.1",
23 + "Ports": "2"
24 + }
25 +}
1 +{
2 + "id": "of:0000ffffffffff09",
3 + "type": "roadm",
4 + "propOrder": [
5 + "Name",
6 + "Vendor",
7 + "H/W Version",
8 + "S/W Version",
9 + "S/W Version",
10 + "-",
11 + "Latitude",
12 + "Longitude",
13 + "Ports"
14 + ],
15 + "props": {
16 + "Name": null,
17 + "Vendor": "Linc",
18 + "H/W Version": "OE",
19 + "S/W Version": "?",
20 + "-": "",
21 + "Latitude": "40.8",
22 + "Longitude": "73.1",
23 + "Ports": "2"
24 + }
25 +}