GNPy functional tests
[transportpce.git] / tests / transportpce_tests / 1.2.1 / test_gnpy.py
1 #!/usr/bin/env python
2
3 ##############################################################################
4 #Copyright (c) 2017 Orange, Inc. and others.  All rights reserved.
5 #
6 # All rights reserved. This program and the accompanying materials
7 # are made available under the terms of the Apache License, Version 2.0
8 # which accompanies this distribution, and is available at
9 # http://www.apache.org/licenses/LICENSE-2.0
10 ##############################################################################
11
12 import json
13 import os
14 import psutil
15 import requests
16 import signal
17 import shutil
18 import subprocess
19 import time
20 import unittest
21 import logging
22
23 class TransportGNPYtesting(unittest.TestCase):
24
25     gnpy_process = None
26     odl_process = None
27     restconf_baseurl = "http://localhost:8181/restconf"
28
29     @classmethod
30     def __init_logfile(cls):
31         if os.path.isfile("./transportpce_tests/gnpy.log"):
32             os.remove("transportpce_tests/gnpy.log")
33
34     @classmethod
35     def __start_odl(cls):
36         executable = "../karaf/target/assembly/bin/karaf"
37         with open('transportpce_tests/odl.log', 'w') as outfile:
38             cls.odl_process = subprocess.Popen(
39                 ["bash", executable, "server"], stdout=outfile,
40                 stdin=open(os.devnull))
41
42     @classmethod
43     def setUpClass(cls):
44         cls.__start_odl()
45         time.sleep(30)
46
47     @classmethod
48     def tearDownClass(cls):
49         for child in psutil.Process(cls.odl_process.pid).children():
50             child.send_signal(signal.SIGINT)
51             child.wait()
52         cls.odl_process.send_signal(signal.SIGINT)
53         cls.odl_process.wait()
54
55     def setUp(self):
56         time.sleep(2)
57
58     #Connect the different topology
59     def test_01_connect_clliNetwork(self):
60         #Config ROADMA
61         url = ("{}/config/ietf-network:networks/network/clli-network"
62                .format(self.restconf_baseurl))
63         data = {"network": [{
64             "network-id": "clli-network",
65             "network-types": {
66                 "org-openroadm-clli-network:clli-network": {}
67             },
68             "node": [
69                 {
70                     "node-id": "NodeA",
71                     "org-openroadm-clli-network:clli": "NodeA"
72                 },
73                 {
74                     "node-id": "NodeB",
75                     "org-openroadm-clli-network:clli": "NodeB"
76                 },
77                 {
78                     "node-id": "NodeC",
79                     "org-openroadm-clli-network:clli": "NodeC"
80                 }
81             ]
82             }]
83         }
84         headers = {'content-type': 'application/json'}
85         response = requests.request(
86              "PUT", url, data=json.dumps(data), headers=headers,
87              auth=('admin', 'admin'))
88         self.assertEqual(response.status_code, requests.codes.ok)
89         time.sleep(3)
90
91     def test_02_connect_openroadmNetwork(self):
92         #Config ROADMA
93         url = ("{}/config/ietf-network:networks/network/openroadm-network"
94                .format(self.restconf_baseurl))
95         data = {"network": [{
96             "network-id": "openroadm-network",
97             "network-types": {
98                 "org-openroadm-common-network:openroadm-common-network": {}
99             },
100             "node": [
101                 {
102                     "node-id": "ROADMB",
103                     "supporting-node": [
104                         {
105                             "network-ref": "clli-network",
106                             "node-ref": "NodeB"
107                         }
108                     ],
109                     "org-openroadm-network:node-type": "ROADM",
110                     "org-openroadm-network:vendor": "vendorA",
111                     "org-openroadm-network:ip": "127.0.0.12",
112                     "org-openroadm-network:model": "2"
113                 },
114                 {
115                     "node-id": "ROADMC",
116                     "supporting-node": [
117                         {
118                             "network-ref": "clli-network",
119                             "node-ref": "NodeC"
120                         }
121                     ],
122                     "org-openroadm-network:node-type": "ROADM",
123                     "org-openroadm-network:vendor": "vendorA",
124                     "org-openroadm-network:ip": "127.0.0.13",
125                     "org-openroadm-network:model": "2"
126                 },
127                 {
128                     "node-id": "XPDRB",
129                     "supporting-node": [
130                         {
131                             "network-ref": "clli-network",
132                             "node-ref": "NodeB"
133                         }
134                     ],
135                     "org-openroadm-network:node-type": "XPONDER",
136                     "org-openroadm-network:vendor": "vendorA",
137                     "org-openroadm-network:ip": "127.0.0.14",
138                     "org-openroadm-network:model": "1"
139                 },
140                 {
141                     "node-id": "ROADMA",
142                     "supporting-node": [
143                         {
144                             "network-ref": "clli-network",
145                             "node-ref": "NodeA"
146                         }
147                     ],
148                     "org-openroadm-network:node-type": "ROADM",
149                     "org-openroadm-network:vendor": "vendorA",
150                     "org-openroadm-network:ip": "127.0.0.11",
151                     "org-openroadm-network:model": "2"
152                 },
153                 {
154                     "node-id": "XPDRA",
155                     "supporting-node": [
156                         {
157                             "network-ref": "clli-network",
158                             "node-ref": "NodeA"
159                         }
160                     ],
161                     "org-openroadm-network:node-type": "XPONDER",
162                     "org-openroadm-network:vendor": "vendorA",
163                     "org-openroadm-network:ip": "127.0.0.10",
164                     "org-openroadm-network:model": "1"
165                 }
166             ]
167             }]
168         }
169         headers = {'content-type': 'application/json'}
170         response = requests.request(
171              "PUT", url, data=json.dumps(data), headers=headers,
172              auth=('admin', 'admin'))
173         self.assertEqual(response.status_code, requests.codes.ok)
174         time.sleep(3)
175
176     def test_03_connect_openroadmTopology(self):
177         #Config ROADMA
178         url = ("{}/config/ietf-network:networks/network/openroadm-topology"
179                .format(self.restconf_baseurl))
180         data = {"network": [{
181             "network-id": "openroadm-topology",
182             "node": [
183                 {
184                     "node-id": "XPDRA-XPDR1",
185                     "org-openroadm-network-topology:node-type": "XPONDER",
186                     "ietf-network-topology:termination-point": [
187                         {
188                             "tp-id": "XPDR1-CLIENT2",
189                             "org-openroadm-network-topology:xpdr-client-attributes": {
190                                 "tail-equipment-id": "XPDR1-NETWORK2"
191                             },
192                             "org-openroadm-network-topology:tp-type": "XPONDER-CLIENT"
193                         },
194                         {
195                             "tp-id": "XPDR1-CLIENT1",
196                             "org-openroadm-network-topology:xpdr-client-attributes": {
197                                 "tail-equipment-id": "XPDR1-NETWORK1"
198                             },
199                             "org-openroadm-network-topology:tp-type": "XPONDER-CLIENT"
200                         },
201                         {
202                             "tp-id": "XPDR1-NETWORK2",
203                             "org-openroadm-network-topology:xpdr-client-attributes": {
204                                 "tail-equipment-id": "XPDR1-NETWORK1"
205                             },
206                             "org-openroadm-network-topology:tp-type": "XPONDER-NETWORK",
207                             "org-openroadm-network-topology:xpdr-network-attributes": {
208                                 "tail-equipment-id": "XPDR1-CLIENT2"
209                             }
210                         },
211                         {
212                             "tp-id": "XPDR1-NETWORK1",
213                             "org-openroadm-network-topology:xpdr-client-attributes": {
214                                 "tail-equipment-id": "XPDR1-NETWORK1"
215                             },
216                             "org-openroadm-network-topology:tp-type": "XPONDER-NETWORK",
217                             "org-openroadm-network-topology:xpdr-network-attributes": {
218                                 "tail-equipment-id": "XPDR1-CLIENT1"
219                             }
220                         }
221                     ],
222                     "supporting-node": [
223                         {
224                             "network-ref": "openroadm-network",
225                             "node-ref": "XPDRA"
226                         }
227                     ]
228                 },
229                 {
230                     "node-id": "ROADMC-DEG2",
231                     "org-openroadm-network-topology:degree-attributes": {
232                         "degree-number": 2,
233                         "available-wavelengths": [
234                             {
235                                 "index": 94
236                             },
237                             {
238                                 "index": 93
239                             },
240                             {
241                                 "index": 96
242                             },
243                             {
244                                 "index": 95
245                             },
246                             {
247                                 "index": 42
248                             },
249                             {
250                                 "index": 41
251                             },
252                             {
253                                 "index": 44
254                             },
255                             {
256                                 "index": 43
257                             },
258                             {
259                                 "index": 38
260                             },
261                             {
262                                 "index": 37
263                             },
264                             {
265                                 "index": 40
266                             },
267                             {
268                                 "index": 39
269                             },
270                             {
271                                 "index": 34
272                             },
273                             {
274                                 "index": 33
275                             },
276                             {
277                                 "index": 36
278                             },
279                             {
280                                 "index": 35
281                             },
282                             {
283                                 "index": 30
284                             },
285                             {
286                                 "index": 29
287                             },
288                             {
289                                 "index": 32
290                             },
291                             {
292                                 "index": 31
293                             },
294                             {
295                                 "index": 58
296                             },
297                             {
298                                 "index": 57
299                             },
300                             {
301                                 "index": 60
302                             },
303                             {
304                                 "index": 59
305                             },
306                             {
307                                 "index": 54
308                             },
309                             {
310                                 "index": 53
311                             },
312                             {
313                                 "index": 56
314                             },
315                             {
316                                 "index": 55
317                             },
318                             {
319                                 "index": 50
320                             },
321                             {
322                                 "index": 49
323                             },
324                             {
325                                 "index": 52
326                             },
327                             {
328                                 "index": 51
329                             },
330                             {
331                                 "index": 46
332                             },
333                             {
334                                 "index": 45
335                             },
336                             {
337                                 "index": 48
338                             },
339                             {
340                                 "index": 47
341                             },
342                             {
343                                 "index": 74
344                             },
345                             {
346                                 "index": 73
347                             },
348                             {
349                                 "index": 76
350                             },
351                             {
352                                 "index": 75
353                             },
354                             {
355                                 "index": 70
356                             },
357                             {
358                                 "index": 69
359                             },
360                             {
361                                 "index": 72
362                             },
363                             {
364                                 "index": 71
365                             },
366                             {
367                                 "index": 66
368                             },
369                             {
370                                 "index": 65
371                             },
372                             {
373                                 "index": 68
374                             },
375                             {
376                                 "index": 67
377                             },
378                             {
379                                 "index": 62
380                             },
381                             {
382                                 "index": 61
383                             },
384                             {
385                                 "index": 64
386                             },
387                             {
388                                 "index": 63
389                             },
390                             {
391                                 "index": 90
392                             },
393                             {
394                                 "index": 89
395                             },
396                             {
397                                 "index": 92
398                             },
399                             {
400                                 "index": 91
401                             },
402                             {
403                                 "index": 86
404                             },
405                             {
406                                 "index": 85
407                             },
408                             {
409                                 "index": 88
410                             },
411                             {
412                                 "index": 87
413                             },
414                             {
415                                 "index": 82
416                             },
417                             {
418                                 "index": 81
419                             },
420                             {
421                                 "index": 84
422                             },
423                             {
424                                 "index": 83
425                             },
426                             {
427                                 "index": 78
428                             },
429                             {
430                                 "index": 77
431                             },
432                             {
433                                 "index": 80
434                             },
435                             {
436                                 "index": 79
437                             },
438                             {
439                                 "index": 10
440                             },
441                             {
442                                 "index": 9
443                             },
444                             {
445                                 "index": 12
446                             },
447                             {
448                                 "index": 11
449                             },
450                             {
451                                 "index": 6
452                             },
453                             {
454                                 "index": 5
455                             },
456                             {
457                                 "index": 8
458                             },
459                             {
460                                 "index": 7
461                             },
462                             {
463                                 "index": 2
464                             },
465                             {
466                                 "index": 1
467                             },
468                             {
469                                 "index": 4
470                             },
471                             {
472                                 "index": 3
473                             },
474                             {
475                                 "index": 26
476                             },
477                             {
478                                 "index": 25
479                             },
480                             {
481                                 "index": 28
482                             },
483                             {
484                                 "index": 27
485                             },
486                             {
487                                 "index": 22
488                             },
489                             {
490                                 "index": 21
491                             },
492                             {
493                                 "index": 24
494                             },
495                             {
496                                 "index": 23
497                             },
498                             {
499                                 "index": 18
500                             },
501                             {
502                                 "index": 17
503                             },
504                             {
505                                 "index": 20
506                             },
507                             {
508                                 "index": 19
509                             },
510                             {
511                                 "index": 14
512                             },
513                             {
514                                 "index": 13
515                             },
516                             {
517                                 "index": 16
518                             },
519                             {
520                                 "index": 15
521                             }
522                         ]
523                     },
524                     "org-openroadm-network-topology:node-type": "DEGREE",
525                     "ietf-network-topology:termination-point": [
526                         {
527                             "tp-id": "DEG2-CTP-TXRX",
528                             "org-openroadm-network-topology:tp-type": "DEGREE-TXRX-CTP"
529                         },
530                         {
531                             "tp-id": "DEG2-TTP-TXRX",
532                             "org-openroadm-network-topology:tp-type": "DEGREE-TXRX-TTP"
533                         }
534                     ],
535                     "supporting-node": [
536                         {
537                             "network-ref": "openroadm-network",
538                             "node-ref": "ROADMC"
539                         }
540                     ]
541                 },
542                 {
543                     "node-id": "ROADMC-SRG1",
544                     "org-openroadm-network-topology:srg-attributes": {
545                         "available-wavelengths": [
546                             {
547                                 "index": 94
548                             },
549                             {
550                                 "index": 93
551                             },
552                             {
553                                 "index": 96
554                             },
555                             {
556                                 "index": 95
557                             },
558                             {
559                                 "index": 42
560                             },
561                             {
562                                 "index": 41
563                             },
564                             {
565                                 "index": 44
566                             },
567                             {
568                                 "index": 43
569                             },
570                             {
571                                 "index": 38
572                             },
573                             {
574                                 "index": 37
575                             },
576                             {
577                                 "index": 40
578                             },
579                             {
580                                 "index": 39
581                             },
582                             {
583                                 "index": 34
584                             },
585                             {
586                                 "index": 33
587                             },
588                             {
589                                 "index": 36
590                             },
591                             {
592                                 "index": 35
593                             },
594                             {
595                                 "index": 30
596                             },
597                             {
598                                 "index": 29
599                             },
600                             {
601                                 "index": 32
602                             },
603                             {
604                                 "index": 31
605                             },
606                             {
607                                 "index": 58
608                             },
609                             {
610                                 "index": 57
611                             },
612                             {
613                                 "index": 60
614                             },
615                             {
616                                 "index": 59
617                             },
618                             {
619                                 "index": 54
620                             },
621                             {
622                                 "index": 53
623                             },
624                             {
625                                 "index": 56
626                             },
627                             {
628                                 "index": 55
629                             },
630                             {
631                                 "index": 50
632                             },
633                             {
634                                 "index": 49
635                             },
636                             {
637                                 "index": 52
638                             },
639                             {
640                                 "index": 51
641                             },
642                             {
643                                 "index": 46
644                             },
645                             {
646                                 "index": 45
647                             },
648                             {
649                                 "index": 48
650                             },
651                             {
652                                 "index": 47
653                             },
654                             {
655                                 "index": 74
656                             },
657                             {
658                                 "index": 73
659                             },
660                             {
661                                 "index": 76
662                             },
663                             {
664                                 "index": 75
665                             },
666                             {
667                                 "index": 70
668                             },
669                             {
670                                 "index": 69
671                             },
672                             {
673                                 "index": 72
674                             },
675                             {
676                                 "index": 71
677                             },
678                             {
679                                 "index": 66
680                             },
681                             {
682                                 "index": 65
683                             },
684                             {
685                                 "index": 68
686                             },
687                             {
688                                 "index": 67
689                             },
690                             {
691                                 "index": 62
692                             },
693                             {
694                                 "index": 61
695                             },
696                             {
697                                 "index": 64
698                             },
699                             {
700                                 "index": 63
701                             },
702                             {
703                                 "index": 90
704                             },
705                             {
706                                 "index": 89
707                             },
708                             {
709                                 "index": 92
710                             },
711                             {
712                                 "index": 91
713                             },
714                             {
715                                 "index": 86
716                             },
717                             {
718                                 "index": 85
719                             },
720                             {
721                                 "index": 88
722                             },
723                             {
724                                 "index": 87
725                             },
726                             {
727                                 "index": 82
728                             },
729                             {
730                                 "index": 81
731                             },
732                             {
733                                 "index": 84
734                             },
735                             {
736                                 "index": 83
737                             },
738                             {
739                                 "index": 78
740                             },
741                             {
742                                 "index": 77
743                             },
744                             {
745                                 "index": 80
746                             },
747                             {
748                                 "index": 79
749                             },
750                             {
751                                 "index": 10
752                             },
753                             {
754                                 "index": 9
755                             },
756                             {
757                                 "index": 12
758                             },
759                             {
760                                 "index": 11
761                             },
762                             {
763                                 "index": 6
764                             },
765                             {
766                                 "index": 5
767                             },
768                             {
769                                 "index": 8
770                             },
771                             {
772                                 "index": 7
773                             },
774                             {
775                                 "index": 2
776                             },
777                             {
778                                 "index": 1
779                             },
780                             {
781                                 "index": 4
782                             },
783                             {
784                                 "index": 3
785                             },
786                             {
787                                 "index": 26
788                             },
789                             {
790                                 "index": 25
791                             },
792                             {
793                                 "index": 28
794                             },
795                             {
796                                 "index": 27
797                             },
798                             {
799                                 "index": 22
800                             },
801                             {
802                                 "index": 21
803                             },
804                             {
805                                 "index": 24
806                             },
807                             {
808                                 "index": 23
809                             },
810                             {
811                                 "index": 18
812                             },
813                             {
814                                 "index": 17
815                             },
816                             {
817                                 "index": 20
818                             },
819                             {
820                                 "index": 19
821                             },
822                             {
823                                 "index": 14
824                             },
825                             {
826                                 "index": 13
827                             },
828                             {
829                                 "index": 16
830                             },
831                             {
832                                 "index": 15
833                             }
834                         ]
835                     },
836                     "org-openroadm-network-topology:node-type": "SRG",
837                     "ietf-network-topology:termination-point": [
838                         {
839                             "tp-id": "SRG1-PP16-TXRX",
840                             "org-openroadm-network-topology:tp-type": "SRG-TXRX-PP"
841                         },
842                         {
843                             "tp-id": "SRG1-PP10-TXRX",
844                             "org-openroadm-network-topology:tp-type": "SRG-TXRX-PP"
845                         },
846                         {
847                             "tp-id": "SRG1-PP3-TXRX",
848                             "org-openroadm-network-topology:tp-type": "SRG-TXRX-PP"
849                         },
850                         {
851                             "tp-id": "SRG1-PP6-TXRX",
852                             "org-openroadm-network-topology:tp-type": "SRG-TXRX-PP"
853                         },
854                         {
855                             "tp-id": "SRG1-PP9-TXRX",
856                             "org-openroadm-network-topology:tp-type": "SRG-TXRX-PP"
857                         },
858                         {
859                             "tp-id": "SRG1-PP1-TXRX",
860                             "org-openroadm-network-topology:tp-type": "SRG-TXRX-PP"
861                         },
862                         {
863                             "tp-id": "SRG1-PP13-TXRX",
864                             "org-openroadm-network-topology:tp-type": "SRG-TXRX-PP"
865                         },
866                         {
867                             "tp-id": "SRG1-PP4-TXRX",
868                             "org-openroadm-network-topology:tp-type": "SRG-TXRX-PP"
869                         },
870                         {
871                             "tp-id": "SRG1-PP7-TXRX",
872                             "org-openroadm-network-topology:tp-type": "SRG-TXRX-PP"
873                         },
874                         {
875                             "tp-id": "SRG1-PP11-TXRX",
876                             "org-openroadm-network-topology:tp-type": "SRG-TXRX-PP"
877                         },
878                         {
879                             "tp-id": "SRG1-PP15-TXRX",
880                             "org-openroadm-network-topology:tp-type": "SRG-TXRX-PP"
881                         },
882                         {
883                             "tp-id": "SRG1-PP8-TXRX",
884                             "org-openroadm-network-topology:tp-type": "SRG-TXRX-PP"
885                         },
886                         {
887                             "tp-id": "SRG1-CP-TXRX",
888                             "org-openroadm-network-topology:tp-type": "SRG-TXRX-CP"
889                         },
890                         {
891                             "tp-id": "SRG1-PP12-TXRX",
892                             "org-openroadm-network-topology:tp-type": "SRG-TXRX-PP"
893                         },
894                         {
895                             "tp-id": "SRG1-PP14-TXRX",
896                             "org-openroadm-network-topology:tp-type": "SRG-TXRX-PP"
897                         },
898                         {
899                             "tp-id": "SRG1-PP2-TXRX",
900                             "org-openroadm-network-topology:tp-type": "SRG-TXRX-PP"
901                         },
902                         {
903                             "tp-id": "SRG1-PP5-TXRX",
904                             "org-openroadm-network-topology:tp-type": "SRG-TXRX-PP"
905                         }
906                     ],
907                     "supporting-node": [
908                         {
909                             "network-ref": "openroadm-network",
910                             "node-ref": "ROADMC"
911                         }
912                     ]
913                 },
914                 {
915                     "node-id": "ROADMA-DEG1",
916                     "org-openroadm-network-topology:degree-attributes": {
917                         "degree-number": 1,
918                         "available-wavelengths": [
919                             {
920                                 "index": 94
921                             },
922                             {
923                                 "index": 93
924                             },
925                             {
926                                 "index": 96
927                             },
928                             {
929                                 "index": 95
930                             },
931                             {
932                                 "index": 42
933                             },
934                             {
935                                 "index": 41
936                             },
937                             {
938                                 "index": 44
939                             },
940                             {
941                                 "index": 43
942                             },
943                             {
944                                 "index": 38
945                             },
946                             {
947                                 "index": 37
948                             },
949                             {
950                                 "index": 40
951                             },
952                             {
953                                 "index": 39
954                             },
955                             {
956                                 "index": 34
957                             },
958                             {
959                                 "index": 33
960                             },
961                             {
962                                 "index": 36
963                             },
964                             {
965                                 "index": 35
966                             },
967                             {
968                                 "index": 30
969                             },
970                             {
971                                 "index": 29
972                             },
973                             {
974                                 "index": 32
975                             },
976                             {
977                                 "index": 31
978                             },
979                             {
980                                 "index": 58
981                             },
982                             {
983                                 "index": 57
984                             },
985                             {
986                                 "index": 60
987                             },
988                             {
989                                 "index": 59
990                             },
991                             {
992                                 "index": 54
993                             },
994                             {
995                                 "index": 53
996                             },
997                             {
998                                 "index": 56
999                             },
1000                             {
1001                                 "index": 55
1002                             },
1003                             {
1004                                 "index": 50
1005                             },
1006                             {
1007                                 "index": 49
1008                             },
1009                             {
1010                                 "index": 52
1011                             },
1012                             {
1013                                 "index": 51
1014                             },
1015                             {
1016                                 "index": 46
1017                             },
1018                             {
1019                                 "index": 45
1020                             },
1021                             {
1022                                 "index": 48
1023                             },
1024                             {
1025                                 "index": 47
1026                             },
1027                             {
1028                                 "index": 74
1029                             },
1030                             {
1031                                 "index": 73
1032                             },
1033                             {
1034                                 "index": 76
1035                             },
1036                             {
1037                                 "index": 75
1038                             },
1039                             {
1040                                 "index": 70
1041                             },
1042                             {
1043                                 "index": 69
1044                             },
1045                             {
1046                                 "index": 72
1047                             },
1048                             {
1049                                 "index": 71
1050                             },
1051                             {
1052                                 "index": 66
1053                             },
1054                             {
1055                                 "index": 65
1056                             },
1057                             {
1058                                 "index": 68
1059                             },
1060                             {
1061                                 "index": 67
1062                             },
1063                             {
1064                                 "index": 62
1065                             },
1066                             {
1067                                 "index": 61
1068                             },
1069                             {
1070                                 "index": 64
1071                             },
1072                             {
1073                                 "index": 63
1074                             },
1075                             {
1076                                 "index": 90
1077                             },
1078                             {
1079                                 "index": 89
1080                             },
1081                             {
1082                                 "index": 92
1083                             },
1084                             {
1085                                 "index": 91
1086                             },
1087                             {
1088                                 "index": 86
1089                             },
1090                             {
1091                                 "index": 85
1092                             },
1093                             {
1094                                 "index": 88
1095                             },
1096                             {
1097                                 "index": 87
1098                             },
1099                             {
1100                                 "index": 82
1101                             },
1102                             {
1103                                 "index": 81
1104                             },
1105                             {
1106                                 "index": 84
1107                             },
1108                             {
1109                                 "index": 83
1110                             },
1111                             {
1112                                 "index": 78
1113                             },
1114                             {
1115                                 "index": 77
1116                             },
1117                             {
1118                                 "index": 80
1119                             },
1120                             {
1121                                 "index": 79
1122                             },
1123                             {
1124                                 "index": 10
1125                             },
1126                             {
1127                                 "index": 9
1128                             },
1129                             {
1130                                 "index": 12
1131                             },
1132                             {
1133                                 "index": 11
1134                             },
1135                             {
1136                                 "index": 6
1137                             },
1138                             {
1139                                 "index": 5
1140                             },
1141                             {
1142                                 "index": 8
1143                             },
1144                             {
1145                                 "index": 7
1146                             },
1147                             {
1148                                 "index": 2
1149                             },
1150                             {
1151                                 "index": 1
1152                             },
1153                             {
1154                                 "index": 4
1155                             },
1156                             {
1157                                 "index": 3
1158                             },
1159                             {
1160                                 "index": 26
1161                             },
1162                             {
1163                                 "index": 25
1164                             },
1165                             {
1166                                 "index": 28
1167                             },
1168                             {
1169                                 "index": 27
1170                             },
1171                             {
1172                                 "index": 22
1173                             },
1174                             {
1175                                 "index": 21
1176                             },
1177                             {
1178                                 "index": 24
1179                             },
1180                             {
1181                                 "index": 23
1182                             },
1183                             {
1184                                 "index": 18
1185                             },
1186                             {
1187                                 "index": 17
1188                             },
1189                             {
1190                                 "index": 20
1191                             },
1192                             {
1193                                 "index": 19
1194                             },
1195                             {
1196                                 "index": 14
1197                             },
1198                             {
1199                                 "index": 13
1200                             },
1201                             {
1202                                 "index": 16
1203                             },
1204                             {
1205                                 "index": 15
1206                             }
1207                         ]
1208                     },
1209                     "org-openroadm-network-topology:node-type": "DEGREE",
1210                     "ietf-network-topology:termination-point": [
1211                         {
1212                             "tp-id": "DEG1-TTP-TXRX",
1213                             "org-openroadm-network-topology:tp-type": "DEGREE-TXRX-TTP"
1214                         },
1215                         {
1216                             "tp-id": "DEG1-CTP-TXRX",
1217                             "org-openroadm-network-topology:tp-type": "DEGREE-TXRX-CTP"
1218                         }
1219                     ],
1220                     "supporting-node": [
1221                         {
1222                             "network-ref": "openroadm-network",
1223                             "node-ref": "ROADMA"
1224                         }
1225                     ]
1226                 },
1227                 {
1228                     "node-id": "ROADMA-DEG2",
1229                     "org-openroadm-network-topology:degree-attributes": {
1230                         "degree-number": 2,
1231                         "available-wavelengths": [
1232                             {
1233                                 "index": 94
1234                             },
1235                             {
1236                                 "index": 93
1237                             },
1238                             {
1239                                 "index": 96
1240                             },
1241                             {
1242                                 "index": 95
1243                             },
1244                             {
1245                                 "index": 42
1246                             },
1247                             {
1248                                 "index": 41
1249                             },
1250                             {
1251                                 "index": 44
1252                             },
1253                             {
1254                                 "index": 43
1255                             },
1256                             {
1257                                 "index": 38
1258                             },
1259                             {
1260                                 "index": 37
1261                             },
1262                             {
1263                                 "index": 40
1264                             },
1265                             {
1266                                 "index": 39
1267                             },
1268                             {
1269                                 "index": 34
1270                             },
1271                             {
1272                                 "index": 33
1273                             },
1274                             {
1275                                 "index": 36
1276                             },
1277                             {
1278                                 "index": 35
1279                             },
1280                             {
1281                                 "index": 30
1282                             },
1283                             {
1284                                 "index": 29
1285                             },
1286                             {
1287                                 "index": 32
1288                             },
1289                             {
1290                                 "index": 31
1291                             },
1292                             {
1293                                 "index": 58
1294                             },
1295                             {
1296                                 "index": 57
1297                             },
1298                             {
1299                                 "index": 60
1300                             },
1301                             {
1302                                 "index": 59
1303                             },
1304                             {
1305                                 "index": 54
1306                             },
1307                             {
1308                                 "index": 53
1309                             },
1310                             {
1311                                 "index": 56
1312                             },
1313                             {
1314                                 "index": 55
1315                             },
1316                             {
1317                                 "index": 50
1318                             },
1319                             {
1320                                 "index": 49
1321                             },
1322                             {
1323                                 "index": 52
1324                             },
1325                             {
1326                                 "index": 51
1327                             },
1328                             {
1329                                 "index": 46
1330                             },
1331                             {
1332                                 "index": 45
1333                             },
1334                             {
1335                                 "index": 48
1336                             },
1337                             {
1338                                 "index": 47
1339                             },
1340                             {
1341                                 "index": 74
1342                             },
1343                             {
1344                                 "index": 73
1345                             },
1346                             {
1347                                 "index": 76
1348                             },
1349                             {
1350                                 "index": 75
1351                             },
1352                             {
1353                                 "index": 70
1354                             },
1355                             {
1356                                 "index": 69
1357                             },
1358                             {
1359                                 "index": 72
1360                             },
1361                             {
1362                                 "index": 71
1363                             },
1364                             {
1365                                 "index": 66
1366                             },
1367                             {
1368                                 "index": 65
1369                             },
1370                             {
1371                                 "index": 68
1372                             },
1373                             {
1374                                 "index": 67
1375                             },
1376                             {
1377                                 "index": 62
1378                             },
1379                             {
1380                                 "index": 61
1381                             },
1382                             {
1383                                 "index": 64
1384                             },
1385                             {
1386                                 "index": 63
1387                             },
1388                             {
1389                                 "index": 90
1390                             },
1391                             {
1392                                 "index": 89
1393                             },
1394                             {
1395                                 "index": 92
1396                             },
1397                             {
1398                                 "index": 91
1399                             },
1400                             {
1401                                 "index": 86
1402                             },
1403                             {
1404                                 "index": 85
1405                             },
1406                             {
1407                                 "index": 88
1408                             },
1409                             {
1410                                 "index": 87
1411                             },
1412                             {
1413                                 "index": 82
1414                             },
1415                             {
1416                                 "index": 81
1417                             },
1418                             {
1419                                 "index": 84
1420                             },
1421                             {
1422                                 "index": 83
1423                             },
1424                             {
1425                                 "index": 78
1426                             },
1427                             {
1428                                 "index": 77
1429                             },
1430                             {
1431                                 "index": 80
1432                             },
1433                             {
1434                                 "index": 79
1435                             },
1436                             {
1437                                 "index": 10
1438                             },
1439                             {
1440                                 "index": 9
1441                             },
1442                             {
1443                                 "index": 12
1444                             },
1445                             {
1446                                 "index": 11
1447                             },
1448                             {
1449                                 "index": 6
1450                             },
1451                             {
1452                                 "index": 5
1453                             },
1454                             {
1455                                 "index": 8
1456                             },
1457                             {
1458                                 "index": 7
1459                             },
1460                             {
1461                                 "index": 2
1462                             },
1463                             {
1464                                 "index": 1
1465                             },
1466                             {
1467                                 "index": 4
1468                             },
1469                             {
1470                                 "index": 3
1471                             },
1472                             {
1473                                 "index": 26
1474                             },
1475                             {
1476                                 "index": 25
1477                             },
1478                             {
1479                                 "index": 28
1480                             },
1481                             {
1482                                 "index": 27
1483                             },
1484                             {
1485                                 "index": 22
1486                             },
1487                             {
1488                                 "index": 21
1489                             },
1490                             {
1491                                 "index": 24
1492                             },
1493                             {
1494                                 "index": 23
1495                             },
1496                             {
1497                                 "index": 18
1498                             },
1499                             {
1500                                 "index": 17
1501                             },
1502                             {
1503                                 "index": 20
1504                             },
1505                             {
1506                                 "index": 19
1507                             },
1508                             {
1509                                 "index": 14
1510                             },
1511                             {
1512                                 "index": 13
1513                             },
1514                             {
1515                                 "index": 16
1516                             },
1517                             {
1518                                 "index": 15
1519                             }
1520                         ]
1521                     },
1522                     "org-openroadm-network-topology:node-type": "DEGREE",
1523                     "ietf-network-topology:termination-point": [
1524                         {
1525                             "tp-id": "DEG2-CTP-TXRX",
1526                             "org-openroadm-network-topology:tp-type": "DEGREE-TXRX-CTP"
1527                         },
1528                         {
1529                             "tp-id": "DEG2-TTP-TXRX",
1530                             "org-openroadm-network-topology:tp-type": "DEGREE-TXRX-TTP"
1531                         }
1532                     ],
1533                     "supporting-node": [
1534                         {
1535                             "network-ref": "openroadm-network",
1536                             "node-ref": "ROADMA"
1537                         }
1538                     ]
1539                 },
1540                 {
1541                     "node-id": "ROADMB-SRG1",
1542                     "org-openroadm-network-topology:srg-attributes": {
1543                         "available-wavelengths": [
1544                             {
1545                                 "index": 94
1546                             },
1547                             {
1548                                 "index": 93
1549                             },
1550                             {
1551                                 "index": 96
1552                             },
1553                             {
1554                                 "index": 95
1555                             },
1556                             {
1557                                 "index": 42
1558                             },
1559                             {
1560                                 "index": 41
1561                             },
1562                             {
1563                                 "index": 44
1564                             },
1565                             {
1566                                 "index": 43
1567                             },
1568                             {
1569                                 "index": 38
1570                             },
1571                             {
1572                                 "index": 37
1573                             },
1574                             {
1575                                 "index": 40
1576                             },
1577                             {
1578                                 "index": 39
1579                             },
1580                             {
1581                                 "index": 34
1582                             },
1583                             {
1584                                 "index": 33
1585                             },
1586                             {
1587                                 "index": 36
1588                             },
1589                             {
1590                                 "index": 35
1591                             },
1592                             {
1593                                 "index": 30
1594                             },
1595                             {
1596                                 "index": 29
1597                             },
1598                             {
1599                                 "index": 32
1600                             },
1601                             {
1602                                 "index": 31
1603                             },
1604                             {
1605                                 "index": 58
1606                             },
1607                             {
1608                                 "index": 57
1609                             },
1610                             {
1611                                 "index": 60
1612                             },
1613                             {
1614                                 "index": 59
1615                             },
1616                             {
1617                                 "index": 54
1618                             },
1619                             {
1620                                 "index": 53
1621                             },
1622                             {
1623                                 "index": 56
1624                             },
1625                             {
1626                                 "index": 55
1627                             },
1628                             {
1629                                 "index": 50
1630                             },
1631                             {
1632                                 "index": 49
1633                             },
1634                             {
1635                                 "index": 52
1636                             },
1637                             {
1638                                 "index": 51
1639                             },
1640                             {
1641                                 "index": 46
1642                             },
1643                             {
1644                                 "index": 45
1645                             },
1646                             {
1647                                 "index": 48
1648                             },
1649                             {
1650                                 "index": 47
1651                             },
1652                             {
1653                                 "index": 74
1654                             },
1655                             {
1656                                 "index": 73
1657                             },
1658                             {
1659                                 "index": 76
1660                             },
1661                             {
1662                                 "index": 75
1663                             },
1664                             {
1665                                 "index": 70
1666                             },
1667                             {
1668                                 "index": 69
1669                             },
1670                             {
1671                                 "index": 72
1672                             },
1673                             {
1674                                 "index": 71
1675                             },
1676                             {
1677                                 "index": 66
1678                             },
1679                             {
1680                                 "index": 65
1681                             },
1682                             {
1683                                 "index": 68
1684                             },
1685                             {
1686                                 "index": 67
1687                             },
1688                             {
1689                                 "index": 62
1690                             },
1691                             {
1692                                 "index": 61
1693                             },
1694                             {
1695                                 "index": 64
1696                             },
1697                             {
1698                                 "index": 63
1699                             },
1700                             {
1701                                 "index": 90
1702                             },
1703                             {
1704                                 "index": 89
1705                             },
1706                             {
1707                                 "index": 92
1708                             },
1709                             {
1710                                 "index": 91
1711                             },
1712                             {
1713                                 "index": 86
1714                             },
1715                             {
1716                                 "index": 85
1717                             },
1718                             {
1719                                 "index": 88
1720                             },
1721                             {
1722                                 "index": 87
1723                             },
1724                             {
1725                                 "index": 82
1726                             },
1727                             {
1728                                 "index": 81
1729                             },
1730                             {
1731                                 "index": 84
1732                             },
1733                             {
1734                                 "index": 83
1735                             },
1736                             {
1737                                 "index": 78
1738                             },
1739                             {
1740                                 "index": 77
1741                             },
1742                             {
1743                                 "index": 80
1744                             },
1745                             {
1746                                 "index": 79
1747                             },
1748                             {
1749                                 "index": 10
1750                             },
1751                             {
1752                                 "index": 9
1753                             },
1754                             {
1755                                 "index": 12
1756                             },
1757                             {
1758                                 "index": 11
1759                             },
1760                             {
1761                                 "index": 6
1762                             },
1763                             {
1764                                 "index": 5
1765                             },
1766                             {
1767                                 "index": 8
1768                             },
1769                             {
1770                                 "index": 7
1771                             },
1772                             {
1773                                 "index": 2
1774                             },
1775                             {
1776                                 "index": 1
1777                             },
1778                             {
1779                                 "index": 4
1780                             },
1781                             {
1782                                 "index": 3
1783                             },
1784                             {
1785                                 "index": 26
1786                             },
1787                             {
1788                                 "index": 25
1789                             },
1790                             {
1791                                 "index": 28
1792                             },
1793                             {
1794                                 "index": 27
1795                             },
1796                             {
1797                                 "index": 22
1798                             },
1799                             {
1800                                 "index": 21
1801                             },
1802                             {
1803                                 "index": 24
1804                             },
1805                             {
1806                                 "index": 23
1807                             },
1808                             {
1809                                 "index": 18
1810                             },
1811                             {
1812                                 "index": 17
1813                             },
1814                             {
1815                                 "index": 20
1816                             },
1817                             {
1818                                 "index": 19
1819                             },
1820                             {
1821                                 "index": 14
1822                             },
1823                             {
1824                                 "index": 13
1825                             },
1826                             {
1827                                 "index": 16
1828                             },
1829                             {
1830                                 "index": 15
1831                             }
1832                         ]
1833                     },
1834                     "org-openroadm-network-topology:node-type": "SRG",
1835                     "ietf-network-topology:termination-point": [
1836                         {
1837                             "tp-id": "SRG1-PP16-TXRX",
1838                             "org-openroadm-network-topology:tp-type": "SRG-TXRX-PP"
1839                         },
1840                         {
1841                             "tp-id": "SRG1-PP10-TXRX",
1842                             "org-openroadm-network-topology:tp-type": "SRG-TXRX-PP"
1843                         },
1844                         {
1845                             "tp-id": "SRG1-PP3-TXRX",
1846                             "org-openroadm-network-topology:tp-type": "SRG-TXRX-PP"
1847                         },
1848                         {
1849                             "tp-id": "SRG1-PP6-TXRX",
1850                             "org-openroadm-network-topology:tp-type": "SRG-TXRX-PP"
1851                         },
1852                         {
1853                             "tp-id": "SRG1-PP9-TXRX",
1854                             "org-openroadm-network-topology:tp-type": "SRG-TXRX-PP"
1855                         },
1856                         {
1857                             "tp-id": "SRG1-PP1-TXRX",
1858                             "org-openroadm-network-topology:tp-type": "SRG-TXRX-PP"
1859                         },
1860                         {
1861                             "tp-id": "SRG1-PP13-TXRX",
1862                             "org-openroadm-network-topology:tp-type": "SRG-TXRX-PP"
1863                         },
1864                         {
1865                             "tp-id": "SRG1-PP4-TXRX",
1866                             "org-openroadm-network-topology:tp-type": "SRG-TXRX-PP"
1867                         },
1868                         {
1869                             "tp-id": "SRG1-PP7-TXRX",
1870                             "org-openroadm-network-topology:tp-type": "SRG-TXRX-PP"
1871                         },
1872                         {
1873                             "tp-id": "SRG1-PP11-TXRX",
1874                             "org-openroadm-network-topology:tp-type": "SRG-TXRX-PP"
1875                         },
1876                         {
1877                             "tp-id": "SRG1-PP15-TXRX",
1878                             "org-openroadm-network-topology:tp-type": "SRG-TXRX-PP"
1879                         },
1880                         {
1881                             "tp-id": "SRG1-PP8-TXRX",
1882                             "org-openroadm-network-topology:tp-type": "SRG-TXRX-PP"
1883                         },
1884                         {
1885                             "tp-id": "SRG1-CP-TXRX",
1886                             "org-openroadm-network-topology:tp-type": "SRG-TXRX-CP"
1887                         },
1888                         {
1889                             "tp-id": "SRG1-PP12-TXRX",
1890                             "org-openroadm-network-topology:tp-type": "SRG-TXRX-PP"
1891                         },
1892                         {
1893                             "tp-id": "SRG1-PP14-TXRX",
1894                             "org-openroadm-network-topology:tp-type": "SRG-TXRX-PP"
1895                         },
1896                         {
1897                             "tp-id": "SRG1-PP2-TXRX",
1898                             "org-openroadm-network-topology:tp-type": "SRG-TXRX-PP"
1899                         },
1900                         {
1901                             "tp-id": "SRG1-PP5-TXRX",
1902                             "org-openroadm-network-topology:tp-type": "SRG-TXRX-PP"
1903                         }
1904                     ],
1905                     "supporting-node": [
1906                         {
1907                             "network-ref": "openroadm-network",
1908                             "node-ref": "ROADMB"
1909                         }
1910                     ]
1911                 },
1912                 {
1913                     "node-id": "ROADMC-DEG1",
1914                     "org-openroadm-network-topology:degree-attributes": {
1915                         "degree-number": 1,
1916                         "available-wavelengths": [
1917                             {
1918                                 "index": 94
1919                             },
1920                             {
1921                                 "index": 93
1922                             },
1923                             {
1924                                 "index": 96
1925                             },
1926                             {
1927                                 "index": 95
1928                             },
1929                             {
1930                                 "index": 42
1931                             },
1932                             {
1933                                 "index": 41
1934                             },
1935                             {
1936                                 "index": 44
1937                             },
1938                             {
1939                                 "index": 43
1940                             },
1941                             {
1942                                 "index": 38
1943                             },
1944                             {
1945                                 "index": 37
1946                             },
1947                             {
1948                                 "index": 40
1949                             },
1950                             {
1951                                 "index": 39
1952                             },
1953                             {
1954                                 "index": 34
1955                             },
1956                             {
1957                                 "index": 33
1958                             },
1959                             {
1960                                 "index": 36
1961                             },
1962                             {
1963                                 "index": 35
1964                             },
1965                             {
1966                                 "index": 30
1967                             },
1968                             {
1969                                 "index": 29
1970                             },
1971                             {
1972                                 "index": 32
1973                             },
1974                             {
1975                                 "index": 31
1976                             },
1977                             {
1978                                 "index": 58
1979                             },
1980                             {
1981                                 "index": 57
1982                             },
1983                             {
1984                                 "index": 60
1985                             },
1986                             {
1987                                 "index": 59
1988                             },
1989                             {
1990                                 "index": 54
1991                             },
1992                             {
1993                                 "index": 53
1994                             },
1995                             {
1996                                 "index": 56
1997                             },
1998                             {
1999                                 "index": 55
2000                             },
2001                             {
2002                                 "index": 50
2003                             },
2004                             {
2005                                 "index": 49
2006                             },
2007                             {
2008                                 "index": 52
2009                             },
2010                             {
2011                                 "index": 51
2012                             },
2013                             {
2014                                 "index": 46
2015                             },
2016                             {
2017                                 "index": 45
2018                             },
2019                             {
2020                                 "index": 48
2021                             },
2022                             {
2023                                 "index": 47
2024                             },
2025                             {
2026                                 "index": 74
2027                             },
2028                             {
2029                                 "index": 73
2030                             },
2031                             {
2032                                 "index": 76
2033                             },
2034                             {
2035                                 "index": 75
2036                             },
2037                             {
2038                                 "index": 70
2039                             },
2040                             {
2041                                 "index": 69
2042                             },
2043                             {
2044                                 "index": 72
2045                             },
2046                             {
2047                                 "index": 71
2048                             },
2049                             {
2050                                 "index": 66
2051                             },
2052                             {
2053                                 "index": 65
2054                             },
2055                             {
2056                                 "index": 68
2057                             },
2058                             {
2059                                 "index": 67
2060                             },
2061                             {
2062                                 "index": 62
2063                             },
2064                             {
2065                                 "index": 61
2066                             },
2067                             {
2068                                 "index": 64
2069                             },
2070                             {
2071                                 "index": 63
2072                             },
2073                             {
2074                                 "index": 90
2075                             },
2076                             {
2077                                 "index": 89
2078                             },
2079                             {
2080                                 "index": 92
2081                             },
2082                             {
2083                                 "index": 91
2084                             },
2085                             {
2086                                 "index": 86
2087                             },
2088                             {
2089                                 "index": 85
2090                             },
2091                             {
2092                                 "index": 88
2093                             },
2094                             {
2095                                 "index": 87
2096                             },
2097                             {
2098                                 "index": 82
2099                             },
2100                             {
2101                                 "index": 81
2102                             },
2103                             {
2104                                 "index": 84
2105                             },
2106                             {
2107                                 "index": 83
2108                             },
2109                             {
2110                                 "index": 78
2111                             },
2112                             {
2113                                 "index": 77
2114                             },
2115                             {
2116                                 "index": 80
2117                             },
2118                             {
2119                                 "index": 79
2120                             },
2121                             {
2122                                 "index": 10
2123                             },
2124                             {
2125                                 "index": 9
2126                             },
2127                             {
2128                                 "index": 12
2129                             },
2130                             {
2131                                 "index": 11
2132                             },
2133                             {
2134                                 "index": 6
2135                             },
2136                             {
2137                                 "index": 5
2138                             },
2139                             {
2140                                 "index": 8
2141                             },
2142                             {
2143                                 "index": 7
2144                             },
2145                             {
2146                                 "index": 2
2147                             },
2148                             {
2149                                 "index": 1
2150                             },
2151                             {
2152                                 "index": 4
2153                             },
2154                             {
2155                                 "index": 3
2156                             },
2157                             {
2158                                 "index": 26
2159                             },
2160                             {
2161                                 "index": 25
2162                             },
2163                             {
2164                                 "index": 28
2165                             },
2166                             {
2167                                 "index": 27
2168                             },
2169                             {
2170                                 "index": 22
2171                             },
2172                             {
2173                                 "index": 21
2174                             },
2175                             {
2176                                 "index": 24
2177                             },
2178                             {
2179                                 "index": 23
2180                             },
2181                             {
2182                                 "index": 18
2183                             },
2184                             {
2185                                 "index": 17
2186                             },
2187                             {
2188                                 "index": 20
2189                             },
2190                             {
2191                                 "index": 19
2192                             },
2193                             {
2194                                 "index": 14
2195                             },
2196                             {
2197                                 "index": 13
2198                             },
2199                             {
2200                                 "index": 16
2201                             },
2202                             {
2203                                 "index": 15
2204                             }
2205                         ]
2206                     },
2207                     "org-openroadm-network-topology:node-type": "DEGREE",
2208                     "ietf-network-topology:termination-point": [
2209                         {
2210                             "tp-id": "DEG1-TTP-TXRX",
2211                             "org-openroadm-network-topology:tp-type": "DEGREE-TXRX-TTP"
2212                         },
2213                         {
2214                             "tp-id": "DEG1-CTP-TXRX",
2215                             "org-openroadm-network-topology:tp-type": "DEGREE-TXRX-CTP"
2216                         }
2217                     ],
2218                     "supporting-node": [
2219                         {
2220                             "network-ref": "openroadm-network",
2221                             "node-ref": "ROADMC"
2222                         }
2223                     ]
2224                 },
2225                 {
2226                     "node-id": "XPDRB-XPDR1",
2227                     "org-openroadm-network-topology:node-type": "XPONDER",
2228                     "ietf-network-topology:termination-point": [
2229                         {
2230                             "tp-id": "XPDR1-CLIENT2",
2231                             "org-openroadm-network-topology:xpdr-client-attributes": {
2232                                 "tail-equipment-id": "XPDR1-NETWORK2"
2233                             },
2234                             "org-openroadm-network-topology:tp-type": "XPONDER-CLIENT"
2235                         },
2236                         {
2237                             "tp-id": "XPDR1-CLIENT1",
2238                             "org-openroadm-network-topology:xpdr-client-attributes": {
2239                                 "tail-equipment-id": "XPDR1-NETWORK1"
2240                             },
2241                             "org-openroadm-network-topology:tp-type": "XPONDER-CLIENT"
2242                         },
2243                         {
2244                             "tp-id": "XPDR1-NETWORK2",
2245                             "org-openroadm-network-topology:xpdr-client-attributes": {
2246                                 "tail-equipment-id": "XPDR1-NETWORK1"
2247                             },
2248                             "org-openroadm-network-topology:tp-type": "XPONDER-NETWORK",
2249                             "org-openroadm-network-topology:xpdr-network-attributes": {
2250                                 "tail-equipment-id": "XPDR1-CLIENT2"
2251                             }
2252                         },
2253                         {
2254                             "tp-id": "XPDR1-NETWORK1",
2255                             "org-openroadm-network-topology:xpdr-client-attributes": {
2256                                 "tail-equipment-id": "XPDR1-NETWORK1"
2257                             },
2258                             "org-openroadm-network-topology:tp-type": "XPONDER-NETWORK",
2259                             "org-openroadm-network-topology:xpdr-network-attributes": {
2260                                 "tail-equipment-id": "XPDR1-CLIENT1"
2261                             }
2262                         }
2263                     ],
2264                     "supporting-node": [
2265                         {
2266                             "network-ref": "openroadm-network",
2267                             "node-ref": "XPDRB"
2268                         }
2269                     ]
2270                 },
2271                 {
2272                     "node-id": "ROADMB-DEG1",
2273                     "org-openroadm-network-topology:degree-attributes": {
2274                         "degree-number": 1,
2275                         "available-wavelengths": [
2276                             {
2277                                 "index": 94
2278                             },
2279                             {
2280                                 "index": 93
2281                             },
2282                             {
2283                                 "index": 96
2284                             },
2285                             {
2286                                 "index": 95
2287                             },
2288                             {
2289                                 "index": 42
2290                             },
2291                             {
2292                                 "index": 41
2293                             },
2294                             {
2295                                 "index": 44
2296                             },
2297                             {
2298                                 "index": 43
2299                             },
2300                             {
2301                                 "index": 38
2302                             },
2303                             {
2304                                 "index": 37
2305                             },
2306                             {
2307                                 "index": 40
2308                             },
2309                             {
2310                                 "index": 39
2311                             },
2312                             {
2313                                 "index": 34
2314                             },
2315                             {
2316                                 "index": 33
2317                             },
2318                             {
2319                                 "index": 36
2320                             },
2321                             {
2322                                 "index": 35
2323                             },
2324                             {
2325                                 "index": 30
2326                             },
2327                             {
2328                                 "index": 29
2329                             },
2330                             {
2331                                 "index": 32
2332                             },
2333                             {
2334                                 "index": 31
2335                             },
2336                             {
2337                                 "index": 58
2338                             },
2339                             {
2340                                 "index": 57
2341                             },
2342                             {
2343                                 "index": 60
2344                             },
2345                             {
2346                                 "index": 59
2347                             },
2348                             {
2349                                 "index": 54
2350                             },
2351                             {
2352                                 "index": 53
2353                             },
2354                             {
2355                                 "index": 56
2356                             },
2357                             {
2358                                 "index": 55
2359                             },
2360                             {
2361                                 "index": 50
2362                             },
2363                             {
2364                                 "index": 49
2365                             },
2366                             {
2367                                 "index": 52
2368                             },
2369                             {
2370                                 "index": 51
2371                             },
2372                             {
2373                                 "index": 46
2374                             },
2375                             {
2376                                 "index": 45
2377                             },
2378                             {
2379                                 "index": 48
2380                             },
2381                             {
2382                                 "index": 47
2383                             },
2384                             {
2385                                 "index": 74
2386                             },
2387                             {
2388                                 "index": 73
2389                             },
2390                             {
2391                                 "index": 76
2392                             },
2393                             {
2394                                 "index": 75
2395                             },
2396                             {
2397                                 "index": 70
2398                             },
2399                             {
2400                                 "index": 69
2401                             },
2402                             {
2403                                 "index": 72
2404                             },
2405                             {
2406                                 "index": 71
2407                             },
2408                             {
2409                                 "index": 66
2410                             },
2411                             {
2412                                 "index": 65
2413                             },
2414                             {
2415                                 "index": 68
2416                             },
2417                             {
2418                                 "index": 67
2419                             },
2420                             {
2421                                 "index": 62
2422                             },
2423                             {
2424                                 "index": 61
2425                             },
2426                             {
2427                                 "index": 64
2428                             },
2429                             {
2430                                 "index": 63
2431                             },
2432                             {
2433                                 "index": 90
2434                             },
2435                             {
2436                                 "index": 89
2437                             },
2438                             {
2439                                 "index": 92
2440                             },
2441                             {
2442                                 "index": 91
2443                             },
2444                             {
2445                                 "index": 86
2446                             },
2447                             {
2448                                 "index": 85
2449                             },
2450                             {
2451                                 "index": 88
2452                             },
2453                             {
2454                                 "index": 87
2455                             },
2456                             {
2457                                 "index": 82
2458                             },
2459                             {
2460                                 "index": 81
2461                             },
2462                             {
2463                                 "index": 84
2464                             },
2465                             {
2466                                 "index": 83
2467                             },
2468                             {
2469                                 "index": 78
2470                             },
2471                             {
2472                                 "index": 77
2473                             },
2474                             {
2475                                 "index": 80
2476                             },
2477                             {
2478                                 "index": 79
2479                             },
2480                             {
2481                                 "index": 10
2482                             },
2483                             {
2484                                 "index": 9
2485                             },
2486                             {
2487                                 "index": 12
2488                             },
2489                             {
2490                                 "index": 11
2491                             },
2492                             {
2493                                 "index": 6
2494                             },
2495                             {
2496                                 "index": 5
2497                             },
2498                             {
2499                                 "index": 8
2500                             },
2501                             {
2502                                 "index": 7
2503                             },
2504                             {
2505                                 "index": 2
2506                             },
2507                             {
2508                                 "index": 1
2509                             },
2510                             {
2511                                 "index": 4
2512                             },
2513                             {
2514                                 "index": 3
2515                             },
2516                             {
2517                                 "index": 26
2518                             },
2519                             {
2520                                 "index": 25
2521                             },
2522                             {
2523                                 "index": 28
2524                             },
2525                             {
2526                                 "index": 27
2527                             },
2528                             {
2529                                 "index": 22
2530                             },
2531                             {
2532                                 "index": 21
2533                             },
2534                             {
2535                                 "index": 24
2536                             },
2537                             {
2538                                 "index": 23
2539                             },
2540                             {
2541                                 "index": 18
2542                             },
2543                             {
2544                                 "index": 17
2545                             },
2546                             {
2547                                 "index": 20
2548                             },
2549                             {
2550                                 "index": 19
2551                             },
2552                             {
2553                                 "index": 14
2554                             },
2555                             {
2556                                 "index": 13
2557                             },
2558                             {
2559                                 "index": 16
2560                             },
2561                             {
2562                                 "index": 15
2563                             }
2564                         ]
2565                     },
2566                     "org-openroadm-network-topology:node-type": "DEGREE",
2567                     "ietf-network-topology:termination-point": [
2568                         {
2569                             "tp-id": "DEG1-TTP-TXRX",
2570                             "org-openroadm-network-topology:tp-type": "DEGREE-TXRX-TTP"
2571                         },
2572                         {
2573                             "tp-id": "DEG1-CTP-TXRX",
2574                             "org-openroadm-network-topology:tp-type": "DEGREE-TXRX-CTP"
2575                         }
2576                     ],
2577                     "supporting-node": [
2578                         {
2579                             "network-ref": "openroadm-network",
2580                             "node-ref": "ROADMB"
2581                         }
2582                     ]
2583                 },
2584                 {
2585                     "node-id": "ROADMA-SRG1",
2586                     "org-openroadm-network-topology:srg-attributes": {
2587                         "available-wavelengths": [
2588                             {
2589                                 "index": 94
2590                             },
2591                             {
2592                                 "index": 93
2593                             },
2594                             {
2595                                 "index": 96
2596                             },
2597                             {
2598                                 "index": 95
2599                             },
2600                             {
2601                                 "index": 42
2602                             },
2603                             {
2604                                 "index": 41
2605                             },
2606                             {
2607                                 "index": 44
2608                             },
2609                             {
2610                                 "index": 43
2611                             },
2612                             {
2613                                 "index": 38
2614                             },
2615                             {
2616                                 "index": 37
2617                             },
2618                             {
2619                                 "index": 40
2620                             },
2621                             {
2622                                 "index": 39
2623                             },
2624                             {
2625                                 "index": 34
2626                             },
2627                             {
2628                                 "index": 33
2629                             },
2630                             {
2631                                 "index": 36
2632                             },
2633                             {
2634                                 "index": 35
2635                             },
2636                             {
2637                                 "index": 30
2638                             },
2639                             {
2640                                 "index": 29
2641                             },
2642                             {
2643                                 "index": 32
2644                             },
2645                             {
2646                                 "index": 31
2647                             },
2648                             {
2649                                 "index": 58
2650                             },
2651                             {
2652                                 "index": 57
2653                             },
2654                             {
2655                                 "index": 60
2656                             },
2657                             {
2658                                 "index": 59
2659                             },
2660                             {
2661                                 "index": 54
2662                             },
2663                             {
2664                                 "index": 53
2665                             },
2666                             {
2667                                 "index": 56
2668                             },
2669                             {
2670                                 "index": 55
2671                             },
2672                             {
2673                                 "index": 50
2674                             },
2675                             {
2676                                 "index": 49
2677                             },
2678                             {
2679                                 "index": 52
2680                             },
2681                             {
2682                                 "index": 51
2683                             },
2684                             {
2685                                 "index": 46
2686                             },
2687                             {
2688                                 "index": 45
2689                             },
2690                             {
2691                                 "index": 48
2692                             },
2693                             {
2694                                 "index": 47
2695                             },
2696                             {
2697                                 "index": 74
2698                             },
2699                             {
2700                                 "index": 73
2701                             },
2702                             {
2703                                 "index": 76
2704                             },
2705                             {
2706                                 "index": 75
2707                             },
2708                             {
2709                                 "index": 70
2710                             },
2711                             {
2712                                 "index": 69
2713                             },
2714                             {
2715                                 "index": 72
2716                             },
2717                             {
2718                                 "index": 71
2719                             },
2720                             {
2721                                 "index": 66
2722                             },
2723                             {
2724                                 "index": 65
2725                             },
2726                             {
2727                                 "index": 68
2728                             },
2729                             {
2730                                 "index": 67
2731                             },
2732                             {
2733                                 "index": 62
2734                             },
2735                             {
2736                                 "index": 61
2737                             },
2738                             {
2739                                 "index": 64
2740                             },
2741                             {
2742                                 "index": 63
2743                             },
2744                             {
2745                                 "index": 90
2746                             },
2747                             {
2748                                 "index": 89
2749                             },
2750                             {
2751                                 "index": 92
2752                             },
2753                             {
2754                                 "index": 91
2755                             },
2756                             {
2757                                 "index": 86
2758                             },
2759                             {
2760                                 "index": 85
2761                             },
2762                             {
2763                                 "index": 88
2764                             },
2765                             {
2766                                 "index": 87
2767                             },
2768                             {
2769                                 "index": 82
2770                             },
2771                             {
2772                                 "index": 81
2773                             },
2774                             {
2775                                 "index": 84
2776                             },
2777                             {
2778                                 "index": 83
2779                             },
2780                             {
2781                                 "index": 78
2782                             },
2783                             {
2784                                 "index": 77
2785                             },
2786                             {
2787                                 "index": 80
2788                             },
2789                             {
2790                                 "index": 79
2791                             },
2792                             {
2793                                 "index": 10
2794                             },
2795                             {
2796                                 "index": 9
2797                             },
2798                             {
2799                                 "index": 12
2800                             },
2801                             {
2802                                 "index": 11
2803                             },
2804                             {
2805                                 "index": 6
2806                             },
2807                             {
2808                                 "index": 5
2809                             },
2810                             {
2811                                 "index": 8
2812                             },
2813                             {
2814                                 "index": 7
2815                             },
2816                             {
2817                                 "index": 2
2818                             },
2819                             {
2820                                 "index": 1
2821                             },
2822                             {
2823                                 "index": 4
2824                             },
2825                             {
2826                                 "index": 3
2827                             },
2828                             {
2829                                 "index": 26
2830                             },
2831                             {
2832                                 "index": 25
2833                             },
2834                             {
2835                                 "index": 28
2836                             },
2837                             {
2838                                 "index": 27
2839                             },
2840                             {
2841                                 "index": 22
2842                             },
2843                             {
2844                                 "index": 21
2845                             },
2846                             {
2847                                 "index": 24
2848                             },
2849                             {
2850                                 "index": 23
2851                             },
2852                             {
2853                                 "index": 18
2854                             },
2855                             {
2856                                 "index": 17
2857                             },
2858                             {
2859                                 "index": 20
2860                             },
2861                             {
2862                                 "index": 19
2863                             },
2864                             {
2865                                 "index": 14
2866                             },
2867                             {
2868                                 "index": 13
2869                             },
2870                             {
2871                                 "index": 16
2872                             },
2873                             {
2874                                 "index": 15
2875                             }
2876                         ]
2877                     },
2878                     "org-openroadm-network-topology:node-type": "SRG",
2879                     "ietf-network-topology:termination-point": [
2880                         {
2881                             "tp-id": "SRG1-PP16-TXRX",
2882                             "org-openroadm-network-topology:tp-type": "SRG-TXRX-PP"
2883                         },
2884                         {
2885                             "tp-id": "SRG1-PP10-TXRX",
2886                             "org-openroadm-network-topology:tp-type": "SRG-TXRX-PP"
2887                         },
2888                         {
2889                             "tp-id": "SRG1-PP3-TXRX",
2890                             "org-openroadm-network-topology:tp-type": "SRG-TXRX-PP"
2891                         },
2892                         {
2893                             "tp-id": "SRG1-PP6-TXRX",
2894                             "org-openroadm-network-topology:tp-type": "SRG-TXRX-PP"
2895                         },
2896                         {
2897                             "tp-id": "SRG1-PP9-TXRX",
2898                             "org-openroadm-network-topology:tp-type": "SRG-TXRX-PP"
2899                         },
2900                         {
2901                             "tp-id": "SRG1-PP1-TXRX",
2902                             "org-openroadm-network-topology:tp-type": "SRG-TXRX-PP"
2903                         },
2904                         {
2905                             "tp-id": "SRG1-PP13-TXRX",
2906                             "org-openroadm-network-topology:tp-type": "SRG-TXRX-PP"
2907                         },
2908                         {
2909                             "tp-id": "SRG1-PP4-TXRX",
2910                             "org-openroadm-network-topology:tp-type": "SRG-TXRX-PP"
2911                         },
2912                         {
2913                             "tp-id": "SRG1-PP7-TXRX",
2914                             "org-openroadm-network-topology:tp-type": "SRG-TXRX-PP"
2915                         },
2916                         {
2917                             "tp-id": "SRG1-PP11-TXRX",
2918                             "org-openroadm-network-topology:tp-type": "SRG-TXRX-PP"
2919                         },
2920                         {
2921                             "tp-id": "SRG1-PP15-TXRX",
2922                             "org-openroadm-network-topology:tp-type": "SRG-TXRX-PP"
2923                         },
2924                         {
2925                             "tp-id": "SRG1-PP8-TXRX",
2926                             "org-openroadm-network-topology:tp-type": "SRG-TXRX-PP"
2927                         },
2928                         {
2929                             "tp-id": "SRG1-CP-TXRX",
2930                             "org-openroadm-network-topology:tp-type": "SRG-TXRX-CP"
2931                         },
2932                         {
2933                             "tp-id": "SRG1-PP12-TXRX",
2934                             "org-openroadm-network-topology:tp-type": "SRG-TXRX-PP"
2935                         },
2936                         {
2937                             "tp-id": "SRG1-PP14-TXRX",
2938                             "org-openroadm-network-topology:tp-type": "SRG-TXRX-PP"
2939                         },
2940                         {
2941                             "tp-id": "SRG1-PP2-TXRX",
2942                             "org-openroadm-network-topology:tp-type": "SRG-TXRX-PP"
2943                         },
2944                         {
2945                             "tp-id": "SRG1-PP5-TXRX",
2946                             "org-openroadm-network-topology:tp-type": "SRG-TXRX-PP"
2947                         }
2948                     ],
2949                     "supporting-node": [
2950                         {
2951                             "network-ref": "openroadm-network",
2952                             "node-ref": "ROADMA"
2953                         }
2954                     ]
2955                 },
2956                 {
2957                     "node-id": "ROADMB-DEG2",
2958                     "org-openroadm-network-topology:degree-attributes": {
2959                         "degree-number": 2,
2960                         "available-wavelengths": [
2961                             {
2962                                 "index": 94
2963                             },
2964                             {
2965                                 "index": 93
2966                             },
2967                             {
2968                                 "index": 96
2969                             },
2970                             {
2971                                 "index": 95
2972                             },
2973                             {
2974                                 "index": 42
2975                             },
2976                             {
2977                                 "index": 41
2978                             },
2979                             {
2980                                 "index": 44
2981                             },
2982                             {
2983                                 "index": 43
2984                             },
2985                             {
2986                                 "index": 38
2987                             },
2988                             {
2989                                 "index": 37
2990                             },
2991                             {
2992                                 "index": 40
2993                             },
2994                             {
2995                                 "index": 39
2996                             },
2997                             {
2998                                 "index": 34
2999                             },
3000                             {
3001                                 "index": 33
3002                             },
3003                             {
3004                                 "index": 36
3005                             },
3006                             {
3007                                 "index": 35
3008                             },
3009                             {
3010                                 "index": 30
3011                             },
3012                             {
3013                                 "index": 29
3014                             },
3015                             {
3016                                 "index": 32
3017                             },
3018                             {
3019                                 "index": 31
3020                             },
3021                             {
3022                                 "index": 58
3023                             },
3024                             {
3025                                 "index": 57
3026                             },
3027                             {
3028                                 "index": 60
3029                             },
3030                             {
3031                                 "index": 59
3032                             },
3033                             {
3034                                 "index": 54
3035                             },
3036                             {
3037                                 "index": 53
3038                             },
3039                             {
3040                                 "index": 56
3041                             },
3042                             {
3043                                 "index": 55
3044                             },
3045                             {
3046                                 "index": 50
3047                             },
3048                             {
3049                                 "index": 49
3050                             },
3051                             {
3052                                 "index": 52
3053                             },
3054                             {
3055                                 "index": 51
3056                             },
3057                             {
3058                                 "index": 46
3059                             },
3060                             {
3061                                 "index": 45
3062                             },
3063                             {
3064                                 "index": 48
3065                             },
3066                             {
3067                                 "index": 47
3068                             },
3069                             {
3070                                 "index": 74
3071                             },
3072                             {
3073                                 "index": 73
3074                             },
3075                             {
3076                                 "index": 76
3077                             },
3078                             {
3079                                 "index": 75
3080                             },
3081                             {
3082                                 "index": 70
3083                             },
3084                             {
3085                                 "index": 69
3086                             },
3087                             {
3088                                 "index": 72
3089                             },
3090                             {
3091                                 "index": 71
3092                             },
3093                             {
3094                                 "index": 66
3095                             },
3096                             {
3097                                 "index": 65
3098                             },
3099                             {
3100                                 "index": 68
3101                             },
3102                             {
3103                                 "index": 67
3104                             },
3105                             {
3106                                 "index": 62
3107                             },
3108                             {
3109                                 "index": 61
3110                             },
3111                             {
3112                                 "index": 64
3113                             },
3114                             {
3115                                 "index": 63
3116                             },
3117                             {
3118                                 "index": 90
3119                             },
3120                             {
3121                                 "index": 89
3122                             },
3123                             {
3124                                 "index": 92
3125                             },
3126                             {
3127                                 "index": 91
3128                             },
3129                             {
3130                                 "index": 86
3131                             },
3132                             {
3133                                 "index": 85
3134                             },
3135                             {
3136                                 "index": 88
3137                             },
3138                             {
3139                                 "index": 87
3140                             },
3141                             {
3142                                 "index": 82
3143                             },
3144                             {
3145                                 "index": 81
3146                             },
3147                             {
3148                                 "index": 84
3149                             },
3150                             {
3151                                 "index": 83
3152                             },
3153                             {
3154                                 "index": 78
3155                             },
3156                             {
3157                                 "index": 77
3158                             },
3159                             {
3160                                 "index": 80
3161                             },
3162                             {
3163                                 "index": 79
3164                             },
3165                             {
3166                                 "index": 10
3167                             },
3168                             {
3169                                 "index": 9
3170                             },
3171                             {
3172                                 "index": 12
3173                             },
3174                             {
3175                                 "index": 11
3176                             },
3177                             {
3178                                 "index": 6
3179                             },
3180                             {
3181                                 "index": 5
3182                             },
3183                             {
3184                                 "index": 8
3185                             },
3186                             {
3187                                 "index": 7
3188                             },
3189                             {
3190                                 "index": 2
3191                             },
3192                             {
3193                                 "index": 1
3194                             },
3195                             {
3196                                 "index": 4
3197                             },
3198                             {
3199                                 "index": 3
3200                             },
3201                             {
3202                                 "index": 26
3203                             },
3204                             {
3205                                 "index": 25
3206                             },
3207                             {
3208                                 "index": 28
3209                             },
3210                             {
3211                                 "index": 27
3212                             },
3213                             {
3214                                 "index": 22
3215                             },
3216                             {
3217                                 "index": 21
3218                             },
3219                             {
3220                                 "index": 24
3221                             },
3222                             {
3223                                 "index": 23
3224                             },
3225                             {
3226                                 "index": 18
3227                             },
3228                             {
3229                                 "index": 17
3230                             },
3231                             {
3232                                 "index": 20
3233                             },
3234                             {
3235                                 "index": 19
3236                             },
3237                             {
3238                                 "index": 14
3239                             },
3240                             {
3241                                 "index": 13
3242                             },
3243                             {
3244                                 "index": 16
3245                             },
3246                             {
3247                                 "index": 15
3248                             }
3249                         ]
3250                     },
3251                     "org-openroadm-network-topology:node-type": "DEGREE",
3252                     "ietf-network-topology:termination-point": [
3253                         {
3254                             "tp-id": "DEG2-CTP-TXRX",
3255                             "org-openroadm-network-topology:tp-type": "DEGREE-TXRX-CTP"
3256                         },
3257                         {
3258                             "tp-id": "DEG2-TTP-TXRX",
3259                             "org-openroadm-network-topology:tp-type": "DEGREE-TXRX-TTP"
3260                         }
3261                     ],
3262                     "supporting-node": [
3263                         {
3264                             "network-ref": "openroadm-network",
3265                             "node-ref": "ROADMB"
3266                         }
3267                     ]
3268                 }
3269             ],
3270             "network-types": {
3271                 "org-openroadm-common-network:openroadm-common-network": {}
3272             },
3273             "ietf-network-topology:link": [
3274                 {
3275                     "link-id": "ROADMA-DEG1-DEG1-CTP-TXRXtoROADMA-SRG1-SRG1-CP-TXRX",
3276                     "source": {
3277                         "source-node": "ROADMA-DEG1",
3278                         "source-tp": "DEG1-CTP-TXRX"
3279                     },
3280                     "org-openroadm-network-topology:link-type": "DROP-LINK",
3281                     "destination": {
3282                         "dest-node": "ROADMA-SRG1",
3283                         "dest-tp": "SRG1-CP-TXRX"
3284                     },
3285                     "org-openroadm-common-network:opposite-link": "ROADMA-SRG1-SRG1-CP-TXRXtoROADMA-DEG1-DEG1-CTP-TXRX"
3286                 },
3287                 {
3288                     "link-id": "ROADMA-DEG2-DEG2-CTP-TXRXtoROADMA-SRG1-SRG1-CP-TXRX",
3289                     "source": {
3290                         "source-node": "ROADMA-DEG2",
3291                         "source-tp": "DEG2-CTP-TXRX"
3292                     },
3293                     "org-openroadm-network-topology:link-type": "DROP-LINK",
3294                     "destination": {
3295                         "dest-node": "ROADMA-SRG1",
3296                         "dest-tp": "SRG1-CP-TXRX"
3297                     },
3298                     "org-openroadm-common-network:opposite-link": "ROADMA-SRG1-SRG1-CP-TXRXtoROADMA-DEG2-DEG2-CTP-TXRX"
3299                 },
3300                 {
3301                     "link-id": "ROADMA-DEG1-DEG1-CTP-TXRXtoROADMA-DEG2-DEG2-CTP-TXRX",
3302                     "source": {
3303                         "source-node": "ROADMA-DEG1",
3304                         "source-tp": "DEG1-CTP-TXRX"
3305                     },
3306                     "org-openroadm-network-topology:link-type": "EXPRESS-LINK",
3307                     "destination": {
3308                         "dest-node": "ROADMA-DEG2",
3309                         "dest-tp": "DEG2-CTP-TXRX"
3310                     },
3311                     "org-openroadm-common-network:opposite-link": "ROADMA-DEG2-DEG2-CTP-TXRXtoROADMA-DEG1-DEG1-CTP-TXRX"
3312                 },
3313                 {
3314                     "link-id": "ROADMC-DEG1-DEG1-CTP-TXRXtoROADMC-SRG1-SRG1-CP-TXRX",
3315                     "source": {
3316                         "source-node": "ROADMC-DEG1",
3317                         "source-tp": "DEG1-CTP-TXRX"
3318                     },
3319                     "org-openroadm-network-topology:link-type": "DROP-LINK",
3320                     "destination": {
3321                         "dest-node": "ROADMC-SRG1",
3322                         "dest-tp": "SRG1-CP-TXRX"
3323                     },
3324                     "org-openroadm-common-network:opposite-link": "ROADMC-SRG1-SRG1-CP-TXRXtoROADMC-DEG1-DEG1-CTP-TXRX"
3325                 },
3326                 {
3327                     "link-id": "ROADMB-DEG1-DEG1-CTP-TXRXtoROADMB-SRG1-SRG1-CP-TXRX",
3328                     "source": {
3329                         "source-node": "ROADMB-DEG1",
3330                         "source-tp": "DEG1-CTP-TXRX"
3331                     },
3332                     "org-openroadm-network-topology:link-type": "DROP-LINK",
3333                     "destination": {
3334                         "dest-node": "ROADMB-SRG1",
3335                         "dest-tp": "SRG1-CP-TXRX"
3336                     },
3337                     "org-openroadm-common-network:opposite-link": "ROADMB-SRG1-SRG1-CP-TXRXtoROADMB-DEG1-DEG1-CTP-TXRX"
3338                 },
3339                 {
3340                     "link-id": "ROADMB-DEG2-DEG2-CTP-TXRXtoROADMB-SRG1-SRG1-CP-TXRX",
3341                     "source": {
3342                         "source-node": "ROADMB-DEG2",
3343                         "source-tp": "DEG2-CTP-TXRX"
3344                     },
3345                     "org-openroadm-network-topology:link-type": "DROP-LINK",
3346                     "destination": {
3347                         "dest-node": "ROADMB-SRG1",
3348                         "dest-tp": "SRG1-CP-TXRX"
3349                     },
3350                     "org-openroadm-common-network:opposite-link": "ROADMB-SRG1-SRG1-CP-TXRXtoROADMB-DEG2-DEG2-CTP-TXRX"
3351                 },
3352                 {
3353                     "link-id": "ROADMC-DEG2-DEG2-CTP-TXRXtoROADMC-SRG1-SRG1-CP-TXRX",
3354                     "source": {
3355                         "source-node": "ROADMC-DEG2",
3356                         "source-tp": "DEG2-CTP-TXRX"
3357                     },
3358                     "org-openroadm-network-topology:link-type": "DROP-LINK",
3359                     "destination": {
3360                         "dest-node": "ROADMC-SRG1",
3361                         "dest-tp": "SRG1-CP-TXRX"
3362                     },
3363                     "org-openroadm-common-network:opposite-link": "ROADMC-SRG1-SRG1-CP-TXRXtoROADMC-DEG2-DEG2-CTP-TXRX"
3364                 },
3365                 {
3366                     "link-id": "ROADMC-DEG1-DEG1-CTP-TXRXtoROADMC-DEG2-DEG2-CTP-TXRX",
3367                     "source": {
3368                         "source-node": "ROADMC-DEG1",
3369                         "source-tp": "DEG1-CTP-TXRX"
3370                     },
3371                     "org-openroadm-network-topology:link-type": "EXPRESS-LINK",
3372                     "destination": {
3373                         "dest-node": "ROADMC-DEG2",
3374                         "dest-tp": "DEG2-CTP-TXRX"
3375                     },
3376                     "org-openroadm-common-network:opposite-link": "ROADMC-DEG2-DEG2-CTP-TXRXtoROADMC-DEG1-DEG1-CTP-TXRX"
3377                 },
3378                 {
3379                     "link-id": "ROADMB-DEG1-DEG1-CTP-TXRXtoROADMB-DEG2-DEG2-CTP-TXRX",
3380                     "source": {
3381                         "source-node": "ROADMB-DEG1",
3382                         "source-tp": "DEG1-CTP-TXRX"
3383                     },
3384                     "org-openroadm-network-topology:link-type": "EXPRESS-LINK",
3385                     "destination": {
3386                         "dest-node": "ROADMB-DEG2",
3387                         "dest-tp": "DEG2-CTP-TXRX"
3388                     },
3389                     "org-openroadm-common-network:opposite-link": "ROADMB-DEG2-DEG2-CTP-TXRXtoROADMB-DEG1-DEG1-CTP-TXRX"
3390                 },
3391                 {
3392                     "link-id": "ROADMA-DEG1-DEG1-TTP-TXRXtoROADMC-DEG2-DEG2-TTP-TXRX",
3393                     "source": {
3394                         "source-node": "ROADMA-DEG1",
3395                         "source-tp": "DEG1-TTP-TXRX"
3396                     },
3397                     "org-openroadm-network-topology:OMS-attributes": {
3398                         "opposite-link": "ROADMC-DEG2-DEG2-TTP-TXRXtoROADMA-DEG1-DEG1-TTP-TXRX",
3399                         "span": {
3400                             "spanloss-base": 11.4,
3401                             "link-concatenation": [
3402                                 {
3403                                     "SRLG-Id": 0,
3404                                     "SRLG-length": 100000,
3405                                     "pmd": 0.5,
3406                                     "fiber-type": "smf"
3407                                 }
3408                             ],
3409                             "spanloss-current": 12,
3410                             "engineered-spanloss": 12.2,
3411                             "clfi": "fiber1",
3412                             "auto-spanloss": "true"
3413                         }
3414                     },
3415                     "org-openroadm-network-topology:link-type": "ROADM-TO-ROADM",
3416                     "destination": {
3417                         "dest-node": "ROADMC-DEG2",
3418                         "dest-tp": "DEG2-TTP-TXRX"
3419                     },
3420                     "org-openroadm-common-network:opposite-link": "ROADMC-DEG2-DEG2-TTP-TXRXtoROADMA-DEG1-DEG1-TTP-TXRX"
3421                 },
3422                 {
3423                     "link-id": "XPDRA-XPDR1-XPDR1-NETWORK1toROADMA-SRG1-SRG1-PP1-TXRX",
3424                     "source": {
3425                         "source-node": "XPDRA-XPDR1",
3426                         "source-tp": "XPDR1-NETWORK1"
3427                     },
3428                     "org-openroadm-network-topology:opposite-link": "ROADMA-SRG1-SRG1-PP1-TXRXtoXPDRA-XPDR1-XPDR1-NETWORK1",
3429                     "org-openroadm-network-topology:link-type": "XPONDER-OUTPUT",
3430                     "destination": {
3431                         "dest-node": "ROADMA-SRG1",
3432                         "dest-tp": "SRG1-PP1-TXRX"
3433                     },
3434                     "org-openroadm-common-network:opposite-link": "ROADMA-SRG1-SRG1-PP1-TXRXtoXPDRA-XPDR1-XPDR1-NETWORK1"
3435                 },
3436                 {
3437                     "link-id": "ROADMC-DEG1-DEG1-TTP-TXRXtoROADMB-DEG2-DEG2-TTP-TXRX",
3438                     "source": {
3439                         "source-node": "ROADMC-DEG1",
3440                         "source-tp": "DEG1-TTP-TXRX"
3441                     },
3442                     "org-openroadm-network-topology:OMS-attributes": {
3443                         "opposite-link": "ROADMB-DEG2-DEG2-TTP-TXRXtoROADMC-DEG1-DEG1-TTP-TXRX",
3444                         "span": {
3445                             "spanloss-base": 11.4,
3446                             "link-concatenation": [
3447                                 {
3448                                     "SRLG-Id": 0,
3449                                     "SRLG-length": 100000,
3450                                     "pmd": 0.5,
3451                                     "fiber-type": "smf"
3452                                 }
3453                             ],
3454                             "spanloss-current": 12,
3455                             "engineered-spanloss": 12.2,
3456                             "clfi": "fiber2",
3457                             "auto-spanloss": "true"
3458                         }
3459                     },
3460                     "org-openroadm-network-topology:link-type": "ROADM-TO-ROADM",
3461                     "destination": {
3462                         "dest-node": "ROADMB-DEG2",
3463                         "dest-tp": "DEG2-TTP-TXRX"
3464                     },
3465                     "org-openroadm-common-network:opposite-link": "ROADMB-DEG2-DEG2-TTP-TXRXtoROADMC-DEG1-DEG1-TTP-TXRX"
3466                 },
3467                 {
3468                     "link-id": "ROADMB-DEG1-DEG1-TTP-TXRXtoROADMA-DEG2-DEG2-TTP-TXRX",
3469                     "source": {
3470                         "source-node": "ROADMB-DEG1",
3471                         "source-tp": "DEG1-TTP-TXRX"
3472                     },
3473                     "org-openroadm-network-topology:OMS-attributes": {
3474                         "opposite-link": "ROADMA-DEG2-DEG2-TTP-TXRXtoROADMB-DEG1-DEG1-TTP-TXRX",
3475                         "span": {
3476                             "spanloss-base": 11.4,
3477                             "link-concatenation": [
3478                                 {
3479                                     "SRLG-Id": 0,
3480                                     "SRLG-length": 100000,
3481                                     "pmd": 0.5,
3482                                     "fiber-type": "smf"
3483                                 }
3484                             ],
3485                             "spanloss-current": 12,
3486                             "engineered-spanloss": 12.2,
3487                             "clfi": "fiber3",
3488                             "auto-spanloss": "true"
3489                         }
3490                     },
3491                     "org-openroadm-network-topology:link-type": "ROADM-TO-ROADM",
3492                     "destination": {
3493                         "dest-node": "ROADMA-DEG2",
3494                         "dest-tp": "DEG2-TTP-TXRX"
3495                     },
3496                     "org-openroadm-common-network:opposite-link": "ROADMA-DEG2-DEG2-TTP-TXRXtoROADMB-DEG1-DEG1-TTP-TXRX"
3497                 },
3498                 {
3499                     "link-id": "ROADMA-SRG1-SRG1-CP-TXRXtoROADMA-DEG2-DEG2-CTP-TXRX",
3500                     "source": {
3501                         "source-node": "ROADMA-SRG1",
3502                         "source-tp": "SRG1-CP-TXRX"
3503                     },
3504                     "org-openroadm-network-topology:link-type": "ADD-LINK",
3505                     "destination": {
3506                         "dest-node": "ROADMA-DEG2",
3507                         "dest-tp": "DEG2-CTP-TXRX"
3508                     },
3509                     "org-openroadm-common-network:opposite-link": "ROADMA-DEG2-DEG2-CTP-TXRXtoROADMA-SRG1-SRG1-CP-TXRX"
3510                 },
3511                 {
3512                     "link-id": "ROADMA-DEG2-DEG2-CTP-TXRXtoROADMA-DEG1-DEG1-CTP-TXRX",
3513                     "source": {
3514                         "source-node": "ROADMA-DEG2",
3515                         "source-tp": "DEG2-CTP-TXRX"
3516                     },
3517                     "org-openroadm-network-topology:link-type": "EXPRESS-LINK",
3518                     "destination": {
3519                         "dest-node": "ROADMA-DEG1",
3520                         "dest-tp": "DEG1-CTP-TXRX"
3521                     },
3522                     "org-openroadm-common-network:opposite-link": "ROADMA-DEG1-DEG1-CTP-TXRXtoROADMA-DEG2-DEG2-CTP-TXRX"
3523                 },
3524                 {
3525                     "link-id": "XPDRB-XPDR1-XPDR1-NETWORK1toROADMB-SRG1-SRG1-PP1-TXRX",
3526                     "source": {
3527                         "source-node": "XPDRB-XPDR1",
3528                         "source-tp": "XPDR1-NETWORK1"
3529                     },
3530                     "org-openroadm-network-topology:opposite-link": "ROADMB-SRG1-SRG1-PP1-TXRXtoXPDRB-XPDR1-XPDR1-NETWORK1",
3531                     "org-openroadm-network-topology:link-type": "XPONDER-OUTPUT",
3532                     "destination": {
3533                         "dest-node": "ROADMB-SRG1",
3534                         "dest-tp": "SRG1-PP1-TXRX"
3535                     },
3536                     "org-openroadm-common-network:opposite-link": "ROADMB-SRG1-SRG1-PP1-TXRXtoXPDRB-XPDR1-XPDR1-NETWORK1"
3537                 },
3538                 {
3539                     "link-id": "ROADMA-SRG1-SRG1-CP-TXRXtoROADMA-DEG1-DEG1-CTP-TXRX",
3540                     "source": {
3541                         "source-node": "ROADMA-SRG1",
3542                         "source-tp": "SRG1-CP-TXRX"
3543                     },
3544                     "org-openroadm-network-topology:link-type": "ADD-LINK",
3545                     "destination": {
3546                         "dest-node": "ROADMA-DEG1",
3547                         "dest-tp": "DEG1-CTP-TXRX"
3548                     },
3549                     "org-openroadm-common-network:opposite-link": "ROADMA-DEG1-DEG1-CTP-TXRXtoROADMA-SRG1-SRG1-CP-TXRX"
3550                 },
3551                 {
3552                     "link-id": "ROADMA-SRG1-SRG1-PP1-TXRXtoXPDRA-XPDR1-XPDR1-NETWORK1",
3553                     "source": {
3554                         "source-node": "ROADMA-SRG1",
3555                         "source-tp": "SRG1-PP1-TXRX"
3556                     },
3557                     "org-openroadm-network-topology:opposite-link": "XPDRA-XPDR1-XPDR1-NETWORK1toROADMA-SRG1-SRG1-PP1-TXRX",
3558                     "org-openroadm-network-topology:link-type": "XPONDER-INPUT",
3559                     "destination": {
3560                         "dest-node": "XPDRA-XPDR1",
3561                         "dest-tp": "XPDR1-NETWORK1"
3562                     },
3563                     "org-openroadm-common-network:opposite-link": "XPDRA-XPDR1-XPDR1-NETWORK1toROADMA-SRG1-SRG1-PP1-TXRX"
3564                 },
3565                 {
3566                     "link-id": "ROADMC-DEG2-DEG2-CTP-TXRXtoROADMC-DEG1-DEG1-CTP-TXRX",
3567                     "source": {
3568                         "source-node": "ROADMC-DEG2",
3569                         "source-tp": "DEG2-CTP-TXRX"
3570                     },
3571                     "org-openroadm-network-topology:link-type": "EXPRESS-LINK",
3572                     "destination": {
3573                         "dest-node": "ROADMC-DEG1",
3574                         "dest-tp": "DEG1-CTP-TXRX"
3575                     },
3576                     "org-openroadm-common-network:opposite-link": "ROADMC-DEG1-DEG1-CTP-TXRXtoROADMC-DEG2-DEG2-CTP-TXRX"
3577                 },
3578                 {
3579                     "link-id": "ROADMB-DEG2-DEG2-TTP-TXRXtoROADMC-DEG1-DEG1-TTP-TXRX",
3580                     "source": {
3581                         "source-node": "ROADMB-DEG2",
3582                         "source-tp": "DEG2-TTP-TXRX"
3583                     },
3584                     "org-openroadm-network-topology:OMS-attributes": {
3585                         "opposite-link": "ROADMC-DEG1-DEG1-TTP-TXRXtoROADMB-DEG2-DEG2-TTP-TXRX",
3586                         "span": {
3587                             "spanloss-base": 11.4,
3588                             "link-concatenation": [
3589                                 {
3590                                     "SRLG-Id": 0,
3591                                     "SRLG-length": 100000,
3592                                     "pmd": 0.5,
3593                                     "fiber-type": "smf"
3594                                 }
3595                             ],
3596                             "spanloss-current": 12,
3597                             "engineered-spanloss": 12.2,
3598                             "clfi": "fiber4",
3599                             "auto-spanloss": "true"
3600                         }
3601                     },
3602                     "org-openroadm-network-topology:link-type": "ROADM-TO-ROADM",
3603                     "destination": {
3604                         "dest-node": "ROADMC-DEG1",
3605                         "dest-tp": "DEG1-TTP-TXRX"
3606                     },
3607                     "org-openroadm-common-network:opposite-link": "ROADMC-DEG1-DEG1-TTP-TXRXtoROADMB-DEG2-DEG2-TTP-TXRX"
3608                 },
3609                 {
3610                     "link-id": "ROADMB-DEG2-DEG2-CTP-TXRXtoROADMB-DEG1-DEG1-CTP-TXRX",
3611                     "source": {
3612                         "source-node": "ROADMB-DEG2",
3613                         "source-tp": "DEG2-CTP-TXRX"
3614                     },
3615                     "org-openroadm-network-topology:link-type": "EXPRESS-LINK",
3616                     "destination": {
3617                         "dest-node": "ROADMB-DEG1",
3618                         "dest-tp": "DEG1-CTP-TXRX"
3619                     },
3620                     "org-openroadm-common-network:opposite-link": "ROADMB-DEG1-DEG1-CTP-TXRXtoROADMB-DEG2-DEG2-CTP-TXRX"
3621                 },
3622                 {
3623                     "link-id": "ROADMA-DEG2-DEG2-TTP-TXRXtoROADMB-DEG1-DEG1-TTP-TXRX",
3624                     "source": {
3625                         "source-node": "ROADMA-DEG2",
3626                         "source-tp": "DEG2-TTP-TXRX"
3627                     },
3628                     "org-openroadm-network-topology:OMS-attributes": {
3629                         "opposite-link": "ROADMB-DEG1-DEG1-TTP-TXRXtoROADMA-DEG2-DEG2-TTP-TXRX",
3630                         "span": {
3631                             "spanloss-base": 11.4,
3632                             "link-concatenation": [
3633                                 {
3634                                     "SRLG-Id": 0,
3635                                     "SRLG-length": 100000,
3636                                     "pmd": 0.5,
3637                                     "fiber-type": "smf"
3638                                 }
3639                             ],
3640                             "spanloss-current": 12,
3641                             "engineered-spanloss": 12.2,
3642                             "clfi": "fiber5",
3643                             "auto-spanloss": "true"
3644                         }
3645                     },
3646                     "org-openroadm-network-topology:link-type": "ROADM-TO-ROADM",
3647                     "destination": {
3648                         "dest-node": "ROADMB-DEG1",
3649                         "dest-tp": "DEG1-TTP-TXRX"
3650                     },
3651                     "org-openroadm-common-network:opposite-link": "ROADMB-DEG1-DEG1-TTP-TXRXtoROADMA-DEG2-DEG2-TTP-TXRX"
3652                 },
3653                 {
3654                     "link-id": "ROADMC-SRG1-SRG1-CP-TXRXtoROADMC-DEG2-DEG2-CTP-TXRX",
3655                     "source": {
3656                         "source-node": "ROADMC-SRG1",
3657                         "source-tp": "SRG1-CP-TXRX"
3658                     },
3659                     "org-openroadm-network-topology:link-type": "ADD-LINK",
3660                     "destination": {
3661                         "dest-node": "ROADMC-DEG2",
3662                         "dest-tp": "DEG2-CTP-TXRX"
3663                     },
3664                     "org-openroadm-common-network:opposite-link": "ROADMC-DEG2-DEG2-CTP-TXRXtoROADMC-SRG1-SRG1-CP-TXRX"
3665                 },
3666                 {
3667                     "link-id": "ROADMC-DEG2-DEG2-TTP-TXRXtoROADMA-DEG1-DEG1-TTP-TXRX",
3668                     "source": {
3669                         "source-node": "ROADMC-DEG2",
3670                         "source-tp": "DEG2-TTP-TXRX"
3671                     },
3672                     "org-openroadm-network-topology:OMS-attributes": {
3673                         "opposite-link": "ROADMA-DEG1-DEG1-TTP-TXRXtoROADMC-DEG2-DEG2-TTP-TXRX",
3674                         "span": {
3675                             "spanloss-base": 11.4,
3676                             "link-concatenation": [
3677                                 {
3678                                     "SRLG-Id": 0,
3679                                     "SRLG-length": 100000,
3680                                     "pmd": 0.5,
3681                                     "fiber-type": "smf"
3682                                 }
3683                             ],
3684                             "spanloss-current": 12,
3685                             "engineered-spanloss": 12.2,
3686                             "clfi": "fiber6",
3687                             "auto-spanloss": "true"
3688                         }
3689                     },
3690                     "org-openroadm-network-topology:link-type": "ROADM-TO-ROADM",
3691                     "destination": {
3692                         "dest-node": "ROADMA-DEG1",
3693                         "dest-tp": "DEG1-TTP-TXRX"
3694                     },
3695                     "org-openroadm-common-network:opposite-link": "ROADMA-DEG1-DEG1-TTP-TXRXtoROADMC-DEG2-DEG2-TTP-TXRX"
3696                 },
3697                 {
3698                     "link-id": "ROADMC-SRG1-SRG1-CP-TXRXtoROADMC-DEG1-DEG1-CTP-TXRX",
3699                     "source": {
3700                         "source-node": "ROADMC-SRG1",
3701                         "source-tp": "SRG1-CP-TXRX"
3702                     },
3703                     "org-openroadm-network-topology:link-type": "ADD-LINK",
3704                     "destination": {
3705                         "dest-node": "ROADMC-DEG1",
3706                         "dest-tp": "DEG1-CTP-TXRX"
3707                     },
3708                     "org-openroadm-common-network:opposite-link": "ROADMC-DEG1-DEG1-CTP-TXRXtoROADMC-SRG1-SRG1-CP-TXRX"
3709                 },
3710                 {
3711                     "link-id": "ROADMB-SRG1-SRG1-CP-TXRXtoROADMB-DEG1-DEG1-CTP-TXRX",
3712                     "source": {
3713                         "source-node": "ROADMB-SRG1",
3714                         "source-tp": "SRG1-CP-TXRX"
3715                     },
3716                     "org-openroadm-network-topology:link-type": "ADD-LINK",
3717                     "destination": {
3718                         "dest-node": "ROADMB-DEG1",
3719                         "dest-tp": "DEG1-CTP-TXRX"
3720                     },
3721                     "org-openroadm-common-network:opposite-link": "ROADMB-DEG1-DEG1-CTP-TXRXtoROADMB-SRG1-SRG1-CP-TXRX"
3722                 },
3723                 {
3724                     "link-id": "ROADMB-SRG1-SRG1-CP-TXRXtoROADMB-DEG2-DEG2-CTP-TXRX",
3725                     "source": {
3726                         "source-node": "ROADMB-SRG1",
3727                         "source-tp": "SRG1-CP-TXRX"
3728                     },
3729                     "org-openroadm-network-topology:link-type": "ADD-LINK",
3730                     "destination": {
3731                         "dest-node": "ROADMB-DEG2",
3732                         "dest-tp": "DEG2-CTP-TXRX"
3733                     },
3734                     "org-openroadm-common-network:opposite-link": "ROADMB-DEG2-DEG2-CTP-TXRXtoROADMB-SRG1-SRG1-CP-TXRX"
3735                 },
3736                 {
3737                     "link-id": "ROADMB-SRG1-SRG1-PP1-TXRXtoXPDRB-XPDR1-XPDR1-NETWORK1",
3738                     "source": {
3739                         "source-node": "ROADMB-SRG1",
3740                         "source-tp": "SRG1-PP1-TXRX"
3741                     },
3742                     "org-openroadm-network-topology:opposite-link": "XPDRB-XPDR1-XPDR1-NETWORK1toROADMB-SRG1-SRG1-PP1-TXRX",
3743                     "org-openroadm-network-topology:link-type": "XPONDER-INPUT",
3744                     "destination": {
3745                         "dest-node": "XPDRB-XPDR1",
3746                         "dest-tp": "XPDR1-NETWORK1"
3747                     },
3748                     "org-openroadm-common-network:opposite-link": "XPDRB-XPDR1-XPDR1-NETWORK1toROADMB-SRG1-SRG1-PP1-TXRX"
3749                 }
3750             ]
3751             }]
3752         }
3753         headers = {'content-type': 'application/json'}
3754         response = requests.request(
3755              "PUT", url, data=json.dumps(data), headers=headers,
3756              auth=('admin', 'admin'))
3757         self.assertEqual(response.status_code, requests.codes.ok)
3758         time.sleep(3)
3759
3760     #Test the gnpy
3761     def test_04_path_computation_xpdr_bi(self):
3762         url = ("{}/operations/transportpce-pce:path-computation-request"
3763               .format(self.restconf_baseurl))
3764         body = {"input": {
3765                 "service-name": "service-1",
3766                 "resource-reserve": "true",
3767                 "pce-metric": "hop-count",
3768                 "service-handler-header": {
3769                     "request-id": "request-1"
3770                 },
3771                 "service-a-end": {
3772                     "node-id": "XPDRA",
3773                     "service-rate": "100",
3774                     "clli": "nodeA"
3775                 },
3776                 "service-z-end": {
3777                     "node-id": "XPDRB",
3778                     "service-rate": "100",
3779                     "clli": "nodeB"
3780                 }
3781             }
3782         }
3783         headers = {'content-type': 'application/json',
3784         "Accept": "application/json"}
3785         response = requests.request(
3786             "POST", url, data=json.dumps(body), headers=headers,
3787             auth=('admin', 'admin'))
3788         self.assertEqual(response.status_code, requests.codes.ok)
3789         res = response.json()
3790         self.assertEqual(res['output']['gnpy-response'][0]['path-dir'], 'A-to-Z')
3791         self.assertEqual(res['output']['gnpy-response'][0]['feasibility'],True)
3792         self.assertEqual(res['output']['gnpy-response'][1]['path-dir'], 'Z-to-A')
3793         self.assertEqual(res['output']['gnpy-response'][1]['feasibility'],True)
3794         time.sleep(5)
3795
3796     #Disconnect the different topology
3797     def test_05_disconnect_openroadmTopology(self):
3798         url = ("{}/config/ietf-network:networks/network/openroadm-topology"
3799                .format(self.restconf_baseurl))
3800         data = {}
3801         headers = {'content-type': 'application/json'}
3802         response = requests.request(
3803              "DELETE", url, data=json.dumps(data), headers=headers,
3804              auth=('admin', 'admin'))
3805         self.assertEqual(response.status_code, requests.codes.ok)
3806         time.sleep(3)
3807
3808     def test_06_disconnect_openroadmNetwork(self):
3809         #Config ROADMA
3810         url = ("{}/config/ietf-network:networks/network/openroadm-network"
3811                .format(self.restconf_baseurl))
3812         data = {}
3813         headers = {'content-type': 'application/json'}
3814         response = requests.request(
3815              "DELETE", url, data=json.dumps(data), headers=headers,
3816              auth=('admin', 'admin'))
3817         self.assertEqual(response.status_code, requests.codes.ok)
3818         time.sleep(3)
3819
3820     def test_07_disconnect_clliNetwork(self):
3821         url = ("{}/config/ietf-network:networks/network/clli-network"
3822                .format(self.restconf_baseurl))
3823         data = {}
3824         headers = {'content-type': 'application/json'}
3825         response = requests.request(
3826              "DELETE", url, data=json.dumps(data), headers=headers,
3827              auth=('admin', 'admin'))
3828         self.assertEqual(response.status_code, requests.codes.ok)
3829         time.sleep(3)
3830
3831 if __name__ == "__main__":
3832     #logging.basicConfig(filename='./transportpce_tests/log/response.log',filemode='w',level=logging.DEBUG)
3833     unittest.main(verbosity=2)