64a6ebdef917ef0ad7c432ea925a9fd40972fec2
[transportpce.git] / pce / src / test / resources / gnpy / gnpy_request.json
1 {
2     "request": {
3     "topology": {
4       "elements": [
5         {
6           "uid": "127.0.0.40",
7          "type": "gnpy-network-topology:Roadm",
8           "metadata": {
9             "location": {
10               "region": "OpenROADM-4",
11               "latitude": 0,
12               "longitude": 0
13             }
14           },
15           "params": {
16             "target_pch_out_db": -20
17           }
18         },
19         {
20           "uid": "127.0.0.50",
21          "type": "gnpy-network-topology:Roadm",
22           "metadata": {
23             "location": {
24               "region": "OpenROADM-5",
25               "latitude": 0,
26               "longitude": 0
27             }
28           },
29           "params": {
30             "target_pch_out_db": -20
31           }
32         },
33         {
34           "uid": "127.0.0.20",
35          "type": "gnpy-network-topology:Roadm",
36           "metadata": {
37             "location": {
38               "region": "OpenROADM-2",
39               "latitude": 0,
40               "longitude": 0
41             }
42           },
43           "params": {
44             "target_pch_out_db": -20
45           }
46         },
47         {
48           "uid": "127.0.0.10",
49          "type": "gnpy-network-topology:Roadm",
50           "metadata": {
51             "location": {
52               "region": "OpenROADM-1",
53               "latitude": 0,
54               "longitude": 0
55             }
56           },
57           "params": {
58             "target_pch_out_db": -20
59           }
60         },
61         {
62           "uid": "127.0.0.30",
63          "type": "gnpy-network-topology:Roadm",
64           "metadata": {
65             "location": {
66               "region": "OpenROADM-3",
67               "latitude": 0,
68               "longitude": 0
69             }
70           },
71           "params": {
72             "target_pch_out_db": -20
73           }
74         },
75         {
76           "uid": "127.0.0.11",
77           "type": "gnpy-network-topology:Transceiver",
78           "metadata": {
79             "location": {
80               "region": "XPONDER-1",
81               "latitude": 0,
82               "longitude": 0
83             }
84           }
85         },
86         {
87           "uid": "127.0.0.51",
88           "type": "gnpy-network-topology:Transceiver",
89           "metadata": {
90             "location": {
91               "region": "XPONDER-5",
92               "latitude": 0,
93               "longitude": 0
94             }
95           }
96         },
97         {
98           "uid": "127.0.0.41",
99           "type": "gnpy-network-topology:Transceiver",
100           "metadata": {
101             "location": {
102               "region": "XPONDER-4",
103               "latitude": 0,
104               "longitude": 0
105             }
106           }
107         },
108         {
109           "uid": "127.0.0.31",
110           "type": "gnpy-network-topology:Transceiver",
111           "metadata": {
112             "location": {
113               "region": "XPONDER-3",
114               "latitude": 0,
115               "longitude": 0
116             }
117           }
118         },
119         {
120           "uid": "127.0.0.21",
121           "type": "gnpy-network-topology:Transceiver",
122           "metadata": {
123             "location": {
124               "region": "XPONDER-2",
125               "latitude": 0,
126               "longitude": 0
127             }
128           }
129         },
130         {
131           "uid": "243.0.0.1",
132           "type": "gnpy-network-topology:Fiber",
133           "type_variety": "SSMF",
134           "metadata": {
135             "location": {
136               "city": "N/A",
137               "region": "N/A",
138               "latitude": 0,
139               "longitude": 0
140             }
141           },
142           "params": {
143             "length": 100,
144             "loss_coef": 0.12,
145             "length_units": "gnpy-network-topology:km",
146             "att_in": 0,
147             "con_in": 0,
148             "con_out": 0
149           }
150         },
151         {
152           "uid": "243.0.0.2",
153           "type": "gnpy-network-topology:Fiber",
154           "type_variety": "SSMF",
155           "metadata": {
156             "location": {
157               "city": "N/A",
158               "region": "N/A",
159               "latitude": 0,
160               "longitude": 0
161             }
162           },
163           "params": {
164             "length": 100,
165             "loss_coef": 0.29,
166             "length_units": "gnpy-network-topology:km",
167             "att_in": 0,
168             "con_in": 0,
169             "con_out": 0
170           }
171         },
172         {
173           "uid": "243.0.0.3",
174           "type": "gnpy-network-topology:Fiber",
175           "type_variety": "SSMF",
176           "metadata": {
177             "location": {
178               "city": "N/A",
179               "region": "N/A",
180               "latitude": 0,
181               "longitude": 0
182             }
183           },
184           "params": {
185             "length": 60,
186             "loss_coef": 0.12,
187             "length_units": "gnpy-network-topology:km",
188             "att_in": 0,
189             "con_in": 0,
190             "con_out": 0
191           }
192         },
193         {
194           "uid": "243.0.0.4",
195           "type": "gnpy-network-topology:Fiber",
196           "type_variety": "SSMF",
197           "metadata": {
198             "location": {
199               "city": "N/A",
200               "region": "N/A",
201               "latitude": 0,
202               "longitude": 0
203             }
204           },
205           "params": {
206             "length": 100,
207             "loss_coef": 0.29,
208             "length_units": "gnpy-network-topology:km",
209             "att_in": 0,
210             "con_in": 0,
211             "con_out": 0
212           }
213         },
214         {
215           "uid": "243.0.0.5",
216           "type": "gnpy-network-topology:Fiber",
217           "type_variety": "SSMF",
218           "metadata": {
219             "location": {
220               "city": "N/A",
221               "region": "N/A",
222               "latitude": 0,
223               "longitude": 0
224             }
225           },
226           "params": {
227             "length": 60,
228             "loss_coef": 0.12,
229             "length_units": "gnpy-network-topology:km",
230             "att_in": 0,
231             "con_in": 0,
232             "con_out": 0
233           }
234         },
235         {
236           "uid": "243.0.0.6",
237           "type": "gnpy-network-topology:Fiber",
238           "type_variety": "SSMF",
239           "metadata": {
240             "location": {
241               "city": "N/A",
242               "region": "N/A",
243               "latitude": 0,
244               "longitude": 0
245             }
246           },
247           "params": {
248             "length": 140,
249             "loss_coef": 0.21,
250             "length_units": "gnpy-network-topology:km",
251             "att_in": 0,
252             "con_in": 0,
253             "con_out": 0
254           }
255         },
256         {
257           "uid": "243.0.0.7",
258           "type": "gnpy-network-topology:Fiber",
259           "type_variety": "SSMF",
260           "metadata": {
261             "location": {
262               "city": "N/A",
263               "region": "N/A",
264               "latitude": 0,
265               "longitude": 0
266             }
267           },
268           "params": {
269             "length": 100,
270             "loss_coef": 0.29,
271             "length_units": "gnpy-network-topology:km",
272             "att_in": 0,
273             "con_in": 0,
274             "con_out": 0
275           }
276         },
277         {
278           "uid": "243.0.0.8",
279           "type": "gnpy-network-topology:Fiber",
280           "type_variety": "SSMF",
281           "metadata": {
282             "location": {
283               "city": "N/A",
284               "region": "N/A",
285               "latitude": 0,
286               "longitude": 0
287             }
288           },
289           "params": {
290             "length": 100,
291             "loss_coef": 0.12,
292             "length_units": "gnpy-network-topology:km",
293             "att_in": 0,
294             "con_in": 0,
295             "con_out": 0
296           }
297         },
298         {
299           "uid": "243.0.0.9",
300           "type": "gnpy-network-topology:Fiber",
301           "type_variety": "SSMF",
302           "metadata": {
303             "location": {
304               "city": "N/A",
305               "region": "N/A",
306               "latitude": 0,
307               "longitude": 0
308             }
309           },
310           "params": {
311             "length": 100,
312             "loss_coef": 0.29,
313             "length_units": "gnpy-network-topology:km",
314             "att_in": 0,
315             "con_in": 0,
316             "con_out": 0
317           }
318         },
319         {
320           "uid": "243.0.0.10",
321           "type": "gnpy-network-topology:Fiber",
322           "type_variety": "SSMF",
323           "metadata": {
324             "location": {
325               "city": "N/A",
326               "region": "N/A",
327               "latitude": 0,
328               "longitude": 0
329             }
330           },
331           "params": {
332             "length": 60,
333             "loss_coef": 0.12,
334             "length_units": "gnpy-network-topology:km",
335             "att_in": 0,
336             "con_in": 0,
337             "con_out": 0
338           }
339         },
340         {
341           "uid": "243.0.0.11",
342           "type": "gnpy-network-topology:Fiber",
343           "type_variety": "SSMF",
344           "metadata": {
345             "location": {
346               "city": "N/A",
347               "region": "N/A",
348               "latitude": 0,
349               "longitude": 0
350             }
351           },
352           "params": {
353             "length": 60,
354             "loss_coef": 0.12,
355             "length_units": "gnpy-network-topology:km",
356             "att_in": 0,
357             "con_in": 0,
358             "con_out": 0
359           }
360         },
361         {
362           "uid": "243.0.0.12",
363           "type": "gnpy-network-topology:Fiber",
364           "type_variety": "SSMF",
365           "metadata": {
366             "location": {
367               "city": "N/A",
368               "region": "N/A",
369               "latitude": 0,
370               "longitude": 0
371             }
372           },
373           "params": {
374             "length": 100,
375             "loss_coef": 0.29,
376             "length_units": "gnpy-network-topology:km",
377             "att_in": 0,
378             "con_in": 0,
379             "con_out": 0
380           }
381         },
382         {
383           "uid": "243.0.0.13",
384           "type": "gnpy-network-topology:Fiber",
385           "type_variety": "SSMF",
386           "metadata": {
387             "location": {
388               "city": "N/A",
389               "region": "N/A",
390               "latitude": 0,
391               "longitude": 0
392             }
393           },
394           "params": {
395             "length": 140,
396             "loss_coef": 0.21,
397             "length_units": "gnpy-network-topology:km",
398             "att_in": 0,
399             "con_in": 0,
400             "con_out": 0
401           }
402         },
403         {
404           "uid": "243.0.0.14",
405           "type": "gnpy-network-topology:Fiber",
406           "type_variety": "SSMF",
407           "metadata": {
408             "location": {
409               "city": "N/A",
410               "region": "N/A",
411               "latitude": 0,
412               "longitude": 0
413             }
414           },
415           "params": {
416             "length": 100,
417             "loss_coef": 0.29,
418             "length_units": "gnpy-network-topology:km",
419             "att_in": 0,
420             "con_in": 0,
421             "con_out": 0
422           }
423         }
424       ],
425       "connections": [
426         {
427           "from_node": "127.0.0.51",
428           "to_node": "127.0.0.50"
429         },
430         {
431           "from_node": "127.0.0.30",
432           "to_node": "127.0.0.31"
433         },
434         {
435           "from_node": "127.0.0.10",
436           "to_node": "243.0.0.1"
437         },
438         {
439           "from_node": "243.0.0.1",
440           "to_node": "127.0.0.30"
441         },
442         {
443           "from_node": "127.0.0.20",
444           "to_node": "127.0.0.21"
445         },
446         {
447           "from_node": "127.0.0.20",
448           "to_node": "243.0.0.2"
449         },
450         {
451           "from_node": "243.0.0.2",
452           "to_node": "127.0.0.10"
453         },
454         {
455           "from_node": "127.0.0.20",
456           "to_node": "243.0.0.3"
457         },
458         {
459           "from_node": "243.0.0.3",
460           "to_node": "127.0.0.50"
461         },
462         {
463           "from_node": "127.0.0.40",
464           "to_node": "127.0.0.41"
465         },
466         {
467           "from_node": "127.0.0.40",
468           "to_node": "243.0.0.4"
469         },
470         {
471           "from_node": "243.0.0.4",
472           "to_node": "127.0.0.30"
473         },
474         {
475           "from_node": "127.0.0.50",
476           "to_node": "243.0.0.5"
477         },
478         {
479           "from_node": "243.0.0.5",
480           "to_node": "127.0.0.30"
481         },
482         {
483           "from_node": "127.0.0.31",
484           "to_node": "127.0.0.30"
485         },
486         {
487           "from_node": "127.0.0.50",
488           "to_node": "127.0.0.51"
489         },
490         {
491           "from_node": "127.0.0.20",
492           "to_node": "243.0.0.6"
493         },
494         {
495           "from_node": "243.0.0.6",
496           "to_node": "127.0.0.30"
497         },
498         {
499           "from_node": "127.0.0.30",
500           "to_node": "243.0.0.7"
501         },
502         {
503           "from_node": "243.0.0.7",
504           "to_node": "127.0.0.40"
505         },
506         {
507           "from_node": "127.0.0.11",
508           "to_node": "127.0.0.10"
509         },
510         {
511           "from_node": "127.0.0.30",
512           "to_node": "243.0.0.8"
513         },
514         {
515           "from_node": "243.0.0.8",
516           "to_node": "127.0.0.10"
517         },
518         {
519           "from_node": "127.0.0.40",
520           "to_node": "243.0.0.9"
521         },
522         {
523           "from_node": "243.0.0.9",
524           "to_node": "127.0.0.50"
525         },
526         {
527           "from_node": "127.0.0.30",
528           "to_node": "243.0.0.10"
529         },
530         {
531           "from_node": "243.0.0.10",
532           "to_node": "127.0.0.50"
533         },
534         {
535           "from_node": "127.0.0.50",
536           "to_node": "243.0.0.11"
537         },
538         {
539           "from_node": "243.0.0.11",
540           "to_node": "127.0.0.20"
541         },
542         {
543           "from_node": "127.0.0.50",
544           "to_node": "243.0.0.12"
545         },
546         {
547           "from_node": "243.0.0.12",
548           "to_node": "127.0.0.40"
549         },
550         {
551           "from_node": "127.0.0.21",
552           "to_node": "127.0.0.20"
553         },
554         {
555           "from_node": "127.0.0.41",
556           "to_node": "127.0.0.40"
557         },
558         {
559           "from_node": "127.0.0.30",
560           "to_node": "243.0.0.13"
561         },
562         {
563           "from_node": "243.0.0.13",
564           "to_node": "127.0.0.20"
565         },
566         {
567           "from_node": "127.0.0.10",
568           "to_node": "127.0.0.11"
569         },
570         {
571           "from_node": "127.0.0.10",
572           "to_node": "243.0.0.14"
573         },
574         {
575           "from_node": "243.0.0.14",
576           "to_node": "127.0.0.20"
577         }
578       ]
579     },
580     "service": {
581       "path-request": [
582         {
583           "request-id": 2,
584           "bidirectional": false,
585           "source": "127.0.0.11",
586           "destination": "127.0.0.41",
587           "src-tp-id": "c3JjVHBJZA==",
588           "dst-tp-id": "ZHN0VHBJZA==",
589           "explicit-route-objects": {
590             "route-object-include-exclude": [
591               {
592                 "explicit-route-usage": "gnpy-path-computation-simplified:route-include-ero",
593                 "index": 0,
594                 "num-unnum-hop": {
595                   "node-id": "127.0.0.20",
596                   "link-tp-id": "1",
597                   "hop-type": "STRICT"
598                 }
599               },
600               {
601                 "explicit-route-usage": "gnpy-path-computation-simplified:route-include-ero",
602                 "index": 1,
603                 "num-unnum-hop": {
604                   "node-id": "127.0.0.30",
605                   "link-tp-id": "1",
606                   "hop-type": "STRICT"
607                 }
608               }
609             ]
610           },
611           "path-constraints": {
612             "te-bandwidth": {
613               "technology": "flexi-grid",
614               "trx_type": "openroadm-beta1",
615               "trx_mode": "W100G",
616               "effective-freq-slot": [
617                 {
618                   "N": 0,
619                   "M": 4
620                 }
621               ],
622               "spacing": 50000000000,
623               "path_bandwidth": 1000000000.0
624             }
625           }
626         }
627       ]
628     }
629   }
630 }