diff --git a/.xml.log.swp b/.xml.log.swp
deleted file mode 100644
index 539f6c801161b5eb6acc9d22f619a9f537b53952..0000000000000000000000000000000000000000
Binary files a/.xml.log.swp and /dev/null differ
diff --git a/bands.json b/bands.json
index e5d82554b1f0b64825411382c20f964fe980f3fe..59851eb21cbd17f41db74231593cf1e9e09d17a3 100644
--- a/bands.json
+++ b/bands.json
@@ -1 +1,62 @@
-{"1": {"optical_band_id": 1, "bidir": 0, "src": "R1", "dst": "R2", "flows": {"R1": {"f": {"in": "0", "out": "port-1-out"}, "b": {}}, "R2": {"f": {"in": "port-1-in", "out": "0"}, "b": {}}}, "band_type": "c_slots", "fiber_forward": {}, "fiber_backward": {}, "op-mode": 0, "n_slots": 16, "links": ["R1-R2"], "path": ["R1", "R2"], "band": 200000, "freq": 192106250, "is_active": false, "src_port": "port-1-out", "dst_port": "port-1-in", "rev_dst_port": "port-1-in", "rev_src_port": "port-1-out", "c_slots": {"1": 1, "2": 1, "3": 1, "4": 1, "5": 1, "6": 1, "7": 1, "8": 1, "9": 1, "10": 1, "11": 1, "12": 1, "13": 1, "14": 1, "15": 1, "16": 1}, "served_lightpaths": []}, "2": {"optical_band_id": 2, "bidir": 0, "src": "R1", "dst": "R2", "flows": {"R1": {"f": {"in": "0", "out": "port-1-out"}, "b": {}}, "R2": {"f": {"in": "port-1-in", "out": "0"}, "b": {}}}, "band_type": "c_slots", "fiber_forward": {}, "fiber_backward": {}, "op-mode": 0, "n_slots": 16, "links": ["R1-R2"], "path": ["R1", "R2"], "band": 200000, "freq": 192106250, "is_active": true, "src_port": "port-1-out", "dst_port": "port-1-in", "rev_dst_port": "port-1-in", "rev_src_port": "port-1-out", "c_slots": {"1": 0, "2": 0, "3": 0, "4": 0, "5": 0, "6": 0, "7": 0, "8": 0, "9": 0, "10": 0, "11": 0, "12": 0, "13": 0, "14": 0, "15": 0, "16": 0}, "served_lightpaths": [2, 3]}}
+{
+    "1": {
+        "optical_band_id": 1,
+        "bidir": 0,
+        "src": "R1",
+        "dst": "R2",
+        "flows": {
+            "R1": {
+                "f": {
+                    "in": "0",
+                    "out": "101"
+                },
+                "b": {}
+            },
+            "R2": {
+                "f": {
+                    "in": "111",
+                    "out": "0"
+                },
+                "b": {}
+            }
+        },
+        "band_type": "c_slots",
+        "fiber_forward": {},
+        "fiber_backward": {},
+        "op-mode": 0,
+        "n_slots": 16,
+        "links": [
+            "R1-R2"
+        ],
+        "path": [
+            "R1",
+            "R2"
+        ],
+        "band": 200000,
+        "freq": 192106250,
+        "is_active": false,
+        "src_port": "101",
+        "dst_port": "111",
+        "rev_dst_port": "111",
+        "rev_src_port": "101",
+        "c_slots": {
+            "1": 1,
+            "2": 1,
+            "3": 1,
+            "4": 1,
+            "5": 1,
+            "6": 1,
+            "7": 1,
+            "8": 1,
+            "9": 1,
+            "10": 1,
+            "11": 1,
+            "12": 1,
+            "13": 1,
+            "14": 1,
+            "15": 1,
+            "16": 1
+        },
+        "served_lightpaths": []
+    }
+}
\ No newline at end of file
diff --git a/lightpath.json b/lightpath.json
new file mode 100644
index 0000000000000000000000000000000000000000..9ea25bbb8eedcb1ff3b80cb3c783eea1d11c1ab1
--- /dev/null
+++ b/lightpath.json
@@ -0,0 +1,63 @@
+{
+    "1": {
+        "flow_id": 1,
+        "src": "T1.1",
+        "dst": "T2.1",
+        "bitrate": 100,
+        "bidir": 0,
+        "flows": {
+            "T1.1": {
+                "f": {
+                    "in": "0",
+                    "out": "1"
+                },
+                "b": {}
+            },
+            "R1": {
+                "f": {
+                    "in": "12",
+                    "out": "101"
+                },
+                "b": {}
+            },
+            "R2": {
+                "f": {
+                    "in": "111",
+                    "out": "2"
+                },
+                "b": {}
+            },
+            "T2.1": {
+                "f": {
+                    "in": "6",
+                    "out": "0"
+                },
+                "b": {}
+            }
+        },
+        "band_type": "c_slots",
+        "slots": [
+            1,
+            2,
+            3,
+            4
+        ],
+        "fiber_forward": {},
+        "fiber_backward": {},
+        "op-mode": 1,
+        "n_slots": 4,
+        "links": [
+            "T1.1-R1",
+            "R2-T2.1"
+        ],
+        "path": [
+            "R1",
+            "R2"
+        ],
+        "band": 50000,
+        "freq": 192031250,
+        "is_active": false,
+        "parent_opt_band": 1,
+        "new_optical_band": 1
+    }
+}
\ No newline at end of file
diff --git a/links.json b/links.json
index bd13886a3f39114573782e03182d146edac759f1..70b08939ac979fed8682aad7e03ea8bee6cdceec 100644
--- a/links.json
+++ b/links.json
@@ -1 +1,1712 @@
-{"optical_links": [{"name": "R2-T2.1", "optical_details": {"src_port": "port-33-out", "dst_port": "1", "local_peer_port": "port-33-in", "remote_peer_port": "1", "c_slots": {"1": 0, "2": 0, "3": 0, "4": 0, "5": 0, "6": 0, "7": 0, "8": 0, "9": 1, "10": 1, "11": 1, "12": 1, "13": 1, "14": 1, "15": 1, "16": 1, "17": 1, "18": 1, "19": 1, "20": 1, "21": 1, "22": 1, "23": 1, "24": 1, "25": 1, "26": 1, "27": 1, "28": 1, "29": 1, "30": 1}, "l_slots": {"101": 1, "102": 1, "103": 1, "104": 1, "105": 1, "106": 1, "107": 1, "108": 1, "109": 1, "110": 1, "111": 1, "112": 1, "113": 1, "114": 1, "115": 1, "116": 1, "117": 1, "118": 1, "119": 1, "120": 1}, "s_slots": {"501": 1, "502": 1, "503": 1, "504": 1, "505": 1, "506": 1, "507": 1, "508": 1, "509": 1, "510": 1, "511": 1, "512": 1, "513": 1, "514": 1, "515": 1, "516": 1, "517": 1, "518": 1, "519": 1, "520": 1}}, "link_id": {"link_uuid": {"uuid": "5ba1d9b6-120a-5680-b745-2ea24aec1cc3"}}, "link_endpoint_ids": [{"topology_id": {"context_id": {"context_uuid": {"uuid": "43813baf-195e-5da6-af20-b3d0922e71a7"}}, "topology_uuid": {"uuid": "c76135e3-24a8-5e92-9bed-c3c9139359c8"}}, "device_id": {"device_uuid": {"uuid": "87d74166-65e3-595e-b643-122b4fd0303f"}}, "endpoint_uuid": {"uuid": "2a307a8e-d326-5ea2-9437-b0320fb4c2a6"}}, {"topology_id": {"context_id": {"context_uuid": {"uuid": "43813baf-195e-5da6-af20-b3d0922e71a7"}}, "topology_uuid": {"uuid": "c76135e3-24a8-5e92-9bed-c3c9139359c8"}}, "device_id": {"device_uuid": {"uuid": "c944aaeb-bbdf-5f2d-b31c-8cc8903045b6"}}, "endpoint_uuid": {"uuid": "76d3c064-04eb-5edf-95ac-645cb6348b61"}}]}, {"name": "R2-T2.2", "optical_details": {"src_port": "port-34-out", "dst_port": "2", "local_peer_port": "port-34-in", "remote_peer_port": "2", "c_slots": {"1": 1, "2": 1, "3": 1, "4": 1, "5": 1, "6": 1, "7": 1, "8": 1, "9": 0, "10": 0, "11": 0, "12": 0, "13": 0, "14": 0, "15": 0, "16": 0, "17": 1, "18": 1, "19": 1, "20": 1, "21": 1, "22": 1, "23": 1, "24": 1, "25": 1, "26": 1, "27": 1, "28": 1, "29": 1, "30": 1}, "l_slots": {"101": 1, "102": 1, "103": 1, "104": 1, "105": 1, "106": 1, "107": 1, "108": 1, "109": 1, "110": 1, "111": 1, "112": 1, "113": 1, "114": 1, "115": 1, "116": 1, "117": 1, "118": 1, "119": 1, "120": 1}, "s_slots": {"501": 1, "502": 1, "503": 1, "504": 1, "505": 1, "506": 1, "507": 1, "508": 1, "509": 1, "510": 1, "511": 1, "512": 1, "513": 1, "514": 1, "515": 1, "516": 1, "517": 1, "518": 1, "519": 1, "520": 1}}, "link_id": {"link_uuid": {"uuid": "5f9f4309-d24d-52e0-9d60-ba84839a5bda"}}, "link_endpoint_ids": [{"topology_id": {"context_id": {"context_uuid": {"uuid": "43813baf-195e-5da6-af20-b3d0922e71a7"}}, "topology_uuid": {"uuid": "c76135e3-24a8-5e92-9bed-c3c9139359c8"}}, "device_id": {"device_uuid": {"uuid": "c944aaeb-bbdf-5f2d-b31c-8cc8903045b6"}}, "endpoint_uuid": {"uuid": "5dd55ad7-b980-562e-b579-d724a3655d31"}}, {"topology_id": {"context_id": {"context_uuid": {"uuid": "43813baf-195e-5da6-af20-b3d0922e71a7"}}, "topology_uuid": {"uuid": "c76135e3-24a8-5e92-9bed-c3c9139359c8"}}, "device_id": {"device_uuid": {"uuid": "012c4e67-0024-5f30-b527-55ec6daf2639"}}, "endpoint_uuid": {"uuid": "c4b8eb66-2fcf-5f66-802f-6cd9590fe70b"}}]}, {"name": "R1-T1.1", "optical_details": {"src_port": "port-33-out", "dst_port": "1", "local_peer_port": "port-33-in", "remote_peer_port": "1", "c_slots": {"1": 1, "2": 1, "3": 1, "4": 1, "5": 1, "6": 1, "7": 1, "8": 1, "9": 1, "10": 1, "11": 1, "12": 1, "13": 1, "14": 1, "15": 1, "16": 1, "17": 1, "18": 1, "19": 1, "20": 1, "21": 1, "22": 1, "23": 1, "24": 1, "25": 1, "26": 1, "27": 1, "28": 1, "29": 1, "30": 1}, "l_slots": {"101": 1, "102": 1, "103": 1, "104": 1, "105": 1, "106": 1, "107": 1, "108": 1, "109": 1, "110": 1, "111": 1, "112": 1, "113": 1, "114": 1, "115": 1, "116": 1, "117": 1, "118": 1, "119": 1, "120": 1}, "s_slots": {"501": 1, "502": 1, "503": 1, "504": 1, "505": 1, "506": 1, "507": 1, "508": 1, "509": 1, "510": 1, "511": 1, "512": 1, "513": 1, "514": 1, "515": 1, "516": 1, "517": 1, "518": 1, "519": 1, "520": 1}}, "link_id": {"link_uuid": {"uuid": "63c6a257-f171-59f8-b1e8-e3c4086ba36a"}}, "link_endpoint_ids": [{"topology_id": {"context_id": {"context_uuid": {"uuid": "43813baf-195e-5da6-af20-b3d0922e71a7"}}, "topology_uuid": {"uuid": "c76135e3-24a8-5e92-9bed-c3c9139359c8"}}, "device_id": {"device_uuid": {"uuid": "4dbdc2d8-cbde-5e48-a3c0-5161387a58c7"}}, "endpoint_uuid": {"uuid": "5eb4f156-7811-53f3-9172-8402127cf7b9"}}, {"topology_id": {"context_id": {"context_uuid": {"uuid": "43813baf-195e-5da6-af20-b3d0922e71a7"}}, "topology_uuid": {"uuid": "c76135e3-24a8-5e92-9bed-c3c9139359c8"}}, "device_id": {"device_uuid": {"uuid": "68741528-2e94-5274-ab3c-fddcd8dc05ef"}}, "endpoint_uuid": {"uuid": "cd539095-12a6-5460-8b07-481ec1901c9a"}}]}, {"name": "T1.2-R1", "optical_details": {"src_port": "2", "dst_port": "port-34-in", "local_peer_port": "2", "remote_peer_port": "port-34-out", "c_slots": {"1": 1, "2": 1, "3": 1, "4": 1, "5": 1, "6": 1, "7": 1, "8": 1, "9": 0, "10": 0, "11": 0, "12": 0, "13": 0, "14": 0, "15": 0, "16": 0, "17": 1, "18": 1, "19": 1, "20": 1, "21": 1, "22": 1, "23": 1, "24": 1, "25": 1, "26": 1, "27": 1, "28": 1, "29": 1, "30": 1}, "l_slots": {"101": 1, "102": 1, "103": 1, "104": 1, "105": 1, "106": 1, "107": 1, "108": 1, "109": 1, "110": 1, "111": 1, "112": 1, "113": 1, "114": 1, "115": 1, "116": 1, "117": 1, "118": 1, "119": 1, "120": 1}, "s_slots": {"501": 1, "502": 1, "503": 1, "504": 1, "505": 1, "506": 1, "507": 1, "508": 1, "509": 1, "510": 1, "511": 1, "512": 1, "513": 1, "514": 1, "515": 1, "516": 1, "517": 1, "518": 1, "519": 1, "520": 1}}, "link_id": {"link_uuid": {"uuid": "817a2fcb-5dfd-55a6-b669-a141014cc38d"}}, "link_endpoint_ids": [{"topology_id": {"context_id": {"context_uuid": {"uuid": "43813baf-195e-5da6-af20-b3d0922e71a7"}}, "topology_uuid": {"uuid": "c76135e3-24a8-5e92-9bed-c3c9139359c8"}}, "device_id": {"device_uuid": {"uuid": "27c2ed23-e74a-518f-820d-ae2c8ae23086"}}, "endpoint_uuid": {"uuid": "7dc65d0e-af57-5d3c-9ba6-f6ec81a354c6"}}, {"topology_id": {"context_id": {"context_uuid": {"uuid": "43813baf-195e-5da6-af20-b3d0922e71a7"}}, "topology_uuid": {"uuid": "c76135e3-24a8-5e92-9bed-c3c9139359c8"}}, "device_id": {"device_uuid": {"uuid": "68741528-2e94-5274-ab3c-fddcd8dc05ef"}}, "endpoint_uuid": {"uuid": "904c4b18-10a6-512b-9bb2-8ec81e74fda4"}}]}, {"name": "T2.2-R2", "optical_details": {"src_port": "2", "dst_port": "port-34-in", "local_peer_port": "2", "remote_peer_port": "port-34-out", "c_slots": {"1": 1, "2": 1, "3": 1, "4": 1, "5": 1, "6": 1, "7": 1, "8": 1, "9": 1, "10": 1, "11": 1, "12": 1, "13": 1, "14": 1, "15": 1, "16": 1, "17": 1, "18": 1, "19": 1, "20": 1, "21": 1, "22": 1, "23": 1, "24": 1, "25": 1, "26": 1, "27": 1, "28": 1, "29": 1, "30": 1}, "l_slots": {"101": 1, "102": 1, "103": 1, "104": 1, "105": 1, "106": 1, "107": 1, "108": 1, "109": 1, "110": 1, "111": 1, "112": 1, "113": 1, "114": 1, "115": 1, "116": 1, "117": 1, "118": 1, "119": 1, "120": 1}, "s_slots": {"501": 1, "502": 1, "503": 1, "504": 1, "505": 1, "506": 1, "507": 1, "508": 1, "509": 1, "510": 1, "511": 1, "512": 1, "513": 1, "514": 1, "515": 1, "516": 1, "517": 1, "518": 1, "519": 1, "520": 1}}, "link_id": {"link_uuid": {"uuid": "884c6c6a-ad1b-5228-a48f-e9db4bc174df"}}, "link_endpoint_ids": [{"topology_id": {"context_id": {"context_uuid": {"uuid": "43813baf-195e-5da6-af20-b3d0922e71a7"}}, "topology_uuid": {"uuid": "c76135e3-24a8-5e92-9bed-c3c9139359c8"}}, "device_id": {"device_uuid": {"uuid": "c944aaeb-bbdf-5f2d-b31c-8cc8903045b6"}}, "endpoint_uuid": {"uuid": "6e9b83ef-b9a4-5898-9495-38c45635aac7"}}, {"topology_id": {"context_id": {"context_uuid": {"uuid": "43813baf-195e-5da6-af20-b3d0922e71a7"}}, "topology_uuid": {"uuid": "c76135e3-24a8-5e92-9bed-c3c9139359c8"}}, "device_id": {"device_uuid": {"uuid": "012c4e67-0024-5f30-b527-55ec6daf2639"}}, "endpoint_uuid": {"uuid": "c4b8eb66-2fcf-5f66-802f-6cd9590fe70b"}}]}, {"name": "R1-T1.3", "optical_details": {"src_port": "port-35-out", "dst_port": "3", "local_peer_port": "port-35-in", "remote_peer_port": "3", "c_slots": {"1": 1, "2": 1, "3": 1, "4": 1, "5": 1, "6": 1, "7": 1, "8": 1, "9": 1, "10": 1, "11": 1, "12": 1, "13": 1, "14": 1, "15": 1, "16": 1, "17": 1, "18": 1, "19": 1, "20": 1, "21": 1, "22": 1, "23": 1, "24": 1, "25": 1, "26": 1, "27": 1, "28": 1, "29": 1, "30": 1}, "l_slots": {"101": 1, "102": 1, "103": 1, "104": 1, "105": 1, "106": 1, "107": 1, "108": 1, "109": 1, "110": 1, "111": 1, "112": 1, "113": 1, "114": 1, "115": 1, "116": 1, "117": 1, "118": 1, "119": 1, "120": 1}, "s_slots": {"501": 1, "502": 1, "503": 1, "504": 1, "505": 1, "506": 1, "507": 1, "508": 1, "509": 1, "510": 1, "511": 1, "512": 1, "513": 1, "514": 1, "515": 1, "516": 1, "517": 1, "518": 1, "519": 1, "520": 1}}, "link_id": {"link_uuid": {"uuid": "89e3a6c6-d613-55bf-925c-c817ee24a133"}}, "link_endpoint_ids": [{"topology_id": {"context_id": {"context_uuid": {"uuid": "43813baf-195e-5da6-af20-b3d0922e71a7"}}, "topology_uuid": {"uuid": "c76135e3-24a8-5e92-9bed-c3c9139359c8"}}, "device_id": {"device_uuid": {"uuid": "68741528-2e94-5274-ab3c-fddcd8dc05ef"}}, "endpoint_uuid": {"uuid": "b9fbeed8-e304-5bd5-90e1-3e43c6af5a16"}}, {"topology_id": {"context_id": {"context_uuid": {"uuid": "43813baf-195e-5da6-af20-b3d0922e71a7"}}, "topology_uuid": {"uuid": "c76135e3-24a8-5e92-9bed-c3c9139359c8"}}, "device_id": {"device_uuid": {"uuid": "cf618e18-c0a1-58c4-9827-943a2c0523d6"}}, "endpoint_uuid": {"uuid": "bbdfc5ef-4f8b-5921-9d1f-33dd9a5f18c8"}}]}, {"name": "R1-T1.2", "optical_details": {"src_port": "port-34-out", "dst_port": "2", "local_peer_port": "port-34-in", "remote_peer_port": "2", "c_slots": {"1": 1, "2": 1, "3": 1, "4": 1, "5": 1, "6": 1, "7": 1, "8": 1, "9": 1, "10": 1, "11": 1, "12": 1, "13": 1, "14": 1, "15": 1, "16": 1, "17": 1, "18": 1, "19": 1, "20": 1, "21": 1, "22": 1, "23": 1, "24": 1, "25": 1, "26": 1, "27": 1, "28": 1, "29": 1, "30": 1}, "l_slots": {"101": 1, "102": 1, "103": 1, "104": 1, "105": 1, "106": 1, "107": 1, "108": 1, "109": 1, "110": 1, "111": 1, "112": 1, "113": 1, "114": 1, "115": 1, "116": 1, "117": 1, "118": 1, "119": 1, "120": 1}, "s_slots": {"501": 1, "502": 1, "503": 1, "504": 1, "505": 1, "506": 1, "507": 1, "508": 1, "509": 1, "510": 1, "511": 1, "512": 1, "513": 1, "514": 1, "515": 1, "516": 1, "517": 1, "518": 1, "519": 1, "520": 1}}, "link_id": {"link_uuid": {"uuid": "b11e2e7b-ef00-5c11-9dc6-5fd34bd11f6e"}}, "link_endpoint_ids": [{"topology_id": {"context_id": {"context_uuid": {"uuid": "43813baf-195e-5da6-af20-b3d0922e71a7"}}, "topology_uuid": {"uuid": "c76135e3-24a8-5e92-9bed-c3c9139359c8"}}, "device_id": {"device_uuid": {"uuid": "68741528-2e94-5274-ab3c-fddcd8dc05ef"}}, "endpoint_uuid": {"uuid": "12b4419f-9ae9-5839-ad52-9684b1f30878"}}, {"topology_id": {"context_id": {"context_uuid": {"uuid": "43813baf-195e-5da6-af20-b3d0922e71a7"}}, "topology_uuid": {"uuid": "c76135e3-24a8-5e92-9bed-c3c9139359c8"}}, "device_id": {"device_uuid": {"uuid": "27c2ed23-e74a-518f-820d-ae2c8ae23086"}}, "endpoint_uuid": {"uuid": "7dc65d0e-af57-5d3c-9ba6-f6ec81a354c6"}}]}, {"name": "T2.3-R2", "optical_details": {"src_port": "3", "dst_port": "port-35-in", "local_peer_port": "3", "remote_peer_port": "port-35-out", "c_slots": {"1": 1, "2": 1, "3": 1, "4": 1, "5": 1, "6": 1, "7": 1, "8": 1, "9": 1, "10": 1, "11": 1, "12": 1, "13": 1, "14": 1, "15": 1, "16": 1, "17": 1, "18": 1, "19": 1, "20": 1, "21": 1, "22": 1, "23": 1, "24": 1, "25": 1, "26": 1, "27": 1, "28": 1, "29": 1, "30": 1}, "l_slots": {"101": 1, "102": 1, "103": 1, "104": 1, "105": 1, "106": 1, "107": 1, "108": 1, "109": 1, "110": 1, "111": 1, "112": 1, "113": 1, "114": 1, "115": 1, "116": 1, "117": 1, "118": 1, "119": 1, "120": 1}, "s_slots": {"501": 1, "502": 1, "503": 1, "504": 1, "505": 1, "506": 1, "507": 1, "508": 1, "509": 1, "510": 1, "511": 1, "512": 1, "513": 1, "514": 1, "515": 1, "516": 1, "517": 1, "518": 1, "519": 1, "520": 1}}, "link_id": {"link_uuid": {"uuid": "be7afc05-6e45-5899-896b-b331d6ab65c8"}}, "link_endpoint_ids": [{"topology_id": {"context_id": {"context_uuid": {"uuid": "43813baf-195e-5da6-af20-b3d0922e71a7"}}, "topology_uuid": {"uuid": "c76135e3-24a8-5e92-9bed-c3c9139359c8"}}, "device_id": {"device_uuid": {"uuid": "c944aaeb-bbdf-5f2d-b31c-8cc8903045b6"}}, "endpoint_uuid": {"uuid": "5cfa4f91-cbce-5721-b612-e6b5eaa76721"}}, {"topology_id": {"context_id": {"context_uuid": {"uuid": "43813baf-195e-5da6-af20-b3d0922e71a7"}}, "topology_uuid": {"uuid": "c76135e3-24a8-5e92-9bed-c3c9139359c8"}}, "device_id": {"device_uuid": {"uuid": "ce0cdfdd-2182-5027-8177-676ca3244f9d"}}, "endpoint_uuid": {"uuid": "b1acaee3-904d-5106-ac3d-5ae6c42b5333"}}]}, {"name": "R2-T2.3", "optical_details": {"src_port": "port-35-out", "dst_port": "3", "local_peer_port": "port-35-in", "remote_peer_port": "3", "c_slots": {"1": 1, "2": 1, "3": 1, "4": 1, "5": 1, "6": 1, "7": 1, "8": 1, "9": 1, "10": 1, "11": 1, "12": 1, "13": 1, "14": 1, "15": 1, "16": 1, "17": 1, "18": 1, "19": 1, "20": 1, "21": 1, "22": 1, "23": 1, "24": 1, "25": 1, "26": 1, "27": 1, "28": 1, "29": 1, "30": 1}, "l_slots": {"101": 1, "102": 1, "103": 1, "104": 1, "105": 1, "106": 1, "107": 1, "108": 1, "109": 1, "110": 1, "111": 1, "112": 1, "113": 1, "114": 1, "115": 1, "116": 1, "117": 1, "118": 1, "119": 1, "120": 1}, "s_slots": {"501": 1, "502": 1, "503": 1, "504": 1, "505": 1, "506": 1, "507": 1, "508": 1, "509": 1, "510": 1, "511": 1, "512": 1, "513": 1, "514": 1, "515": 1, "516": 1, "517": 1, "518": 1, "519": 1, "520": 1}}, "link_id": {"link_uuid": {"uuid": "d4e89764-11c5-5f59-b7d6-a3aa2dab43df"}}, "link_endpoint_ids": [{"topology_id": {"context_id": {"context_uuid": {"uuid": "43813baf-195e-5da6-af20-b3d0922e71a7"}}, "topology_uuid": {"uuid": "c76135e3-24a8-5e92-9bed-c3c9139359c8"}}, "device_id": {"device_uuid": {"uuid": "c944aaeb-bbdf-5f2d-b31c-8cc8903045b6"}}, "endpoint_uuid": {"uuid": "261a53b4-d257-5f35-bf5b-b2f975d7d2ed"}}, {"topology_id": {"context_id": {"context_uuid": {"uuid": "43813baf-195e-5da6-af20-b3d0922e71a7"}}, "topology_uuid": {"uuid": "c76135e3-24a8-5e92-9bed-c3c9139359c8"}}, "device_id": {"device_uuid": {"uuid": "ce0cdfdd-2182-5027-8177-676ca3244f9d"}}, "endpoint_uuid": {"uuid": "b1acaee3-904d-5106-ac3d-5ae6c42b5333"}}]}, {"name": "R1-R2", "optical_details": {"src_port": "port-1-out", "dst_port": "port-1-in", "local_peer_port": "port-1-in", "remote_peer_port": "port-1-out", "c_slots": {"1": 0, "2": 0, "3": 0, "4": 0, "5": 0, "6": 0, "7": 0, "8": 0, "9": 0, "10": 0, "11": 0, "12": 0, "13": 0, "14": 0, "15": 0, "16": 0, "17": 1, "18": 1, "19": 1, "20": 1, "21": 1, "22": 1, "23": 1, "24": 1, "25": 1, "26": 1, "27": 1, "28": 1, "29": 1, "30": 1}, "l_slots": {"101": 1, "102": 1, "103": 1, "104": 1, "105": 1, "106": 1, "107": 1, "108": 1, "109": 1, "110": 1, "111": 1, "112": 1, "113": 1, "114": 1, "115": 1, "116": 1, "117": 1, "118": 1, "119": 1, "120": 1}, "s_slots": {"501": 1, "502": 1, "503": 1, "504": 1, "505": 1, "506": 1, "507": 1, "508": 1, "509": 1, "510": 1, "511": 1, "512": 1, "513": 1, "514": 1, "515": 1, "516": 1, "517": 1, "518": 1, "519": 1, "520": 1}}, "link_id": {"link_uuid": {"uuid": "e273644c-0dfa-5053-8850-0722995e7ba3"}}, "link_endpoint_ids": [{"topology_id": {"context_id": {"context_uuid": {"uuid": "43813baf-195e-5da6-af20-b3d0922e71a7"}}, "topology_uuid": {"uuid": "c76135e3-24a8-5e92-9bed-c3c9139359c8"}}, "device_id": {"device_uuid": {"uuid": "68741528-2e94-5274-ab3c-fddcd8dc05ef"}}, "endpoint_uuid": {"uuid": "77df46fd-6d6e-5726-9960-ca439c925dea"}}, {"topology_id": {"context_id": {"context_uuid": {"uuid": "43813baf-195e-5da6-af20-b3d0922e71a7"}}, "topology_uuid": {"uuid": "c76135e3-24a8-5e92-9bed-c3c9139359c8"}}, "device_id": {"device_uuid": {"uuid": "c944aaeb-bbdf-5f2d-b31c-8cc8903045b6"}}, "endpoint_uuid": {"uuid": "bcfb768c-e8fb-5e0b-9559-821d120b5410"}}]}, {"name": "T1.1-R1", "optical_details": {"src_port": "1", "dst_port": "port-33-in", "local_peer_port": "1", "remote_peer_port": "port-33-out", "c_slots": {"1": 0, "2": 0, "3": 0, "4": 0, "5": 0, "6": 0, "7": 0, "8": 0, "9": 1, "10": 1, "11": 1, "12": 1, "13": 1, "14": 1, "15": 1, "16": 1, "17": 1, "18": 1, "19": 1, "20": 1, "21": 1, "22": 1, "23": 1, "24": 1, "25": 1, "26": 1, "27": 1, "28": 1, "29": 1, "30": 1, "31": 1, "32": 1, "33": 1, "34": 1, "35": 1}, "l_slots": {"101": 1, "102": 1, "103": 1, "104": 1, "105": 1, "106": 1, "107": 1, "108": 1, "109": 1, "110": 1, "111": 1, "112": 1, "113": 1, "114": 1, "115": 1, "116": 1, "117": 1, "118": 1, "119": 1, "120": 1}, "s_slots": {"501": 1, "502": 1, "503": 1, "504": 1, "505": 1, "506": 1, "507": 1, "508": 1, "509": 1, "510": 1, "511": 1, "512": 1, "513": 1, "514": 1, "515": 1, "516": 1, "517": 1, "518": 1, "519": 1, "520": 1}}, "link_id": {"link_uuid": {"uuid": "e8bd9082-ebad-55b8-b110-7c21fddaf1cf"}}, "link_endpoint_ids": [{"topology_id": {"context_id": {"context_uuid": {"uuid": "43813baf-195e-5da6-af20-b3d0922e71a7"}}, "topology_uuid": {"uuid": "c76135e3-24a8-5e92-9bed-c3c9139359c8"}}, "device_id": {"device_uuid": {"uuid": "68741528-2e94-5274-ab3c-fddcd8dc05ef"}}, "endpoint_uuid": {"uuid": "0b1c4d0e-5140-5085-ab66-2def390b650f"}}, {"topology_id": {"context_id": {"context_uuid": {"uuid": "43813baf-195e-5da6-af20-b3d0922e71a7"}}, "topology_uuid": {"uuid": "c76135e3-24a8-5e92-9bed-c3c9139359c8"}}, "device_id": {"device_uuid": {"uuid": "4dbdc2d8-cbde-5e48-a3c0-5161387a58c7"}}, "endpoint_uuid": {"uuid": "5eb4f156-7811-53f3-9172-8402127cf7b9"}}]}, {"name": "R2-R1", "optical_details": {"src_port": "port-1-out", "dst_port": "port-1-in", "local_peer_port": "port-1-in", "remote_peer_port": "port-1-out", "c_slots": {"1": 1, "2": 1, "3": 1, "4": 1, "5": 1, "6": 1, "7": 1, "8": 1, "9": 1, "10": 1, "11": 1, "12": 1, "13": 1, "14": 1, "15": 1, "16": 1, "17": 1, "18": 1, "19": 1, "20": 1, "21": 1, "22": 1, "23": 1, "24": 1, "25": 1, "26": 1, "27": 1, "28": 1, "29": 1, "30": 1}, "l_slots": {"101": 1, "102": 1, "103": 1, "104": 1, "105": 1, "106": 1, "107": 1, "108": 1, "109": 1, "110": 1, "111": 1, "112": 1, "113": 1, "114": 1, "115": 1, "116": 1, "117": 1, "118": 1, "119": 1, "120": 1}, "s_slots": {"501": 1, "502": 1, "503": 1, "504": 1, "505": 1, "506": 1, "507": 1, "508": 1, "509": 1, "510": 1, "511": 1, "512": 1, "513": 1, "514": 1, "515": 1, "516": 1, "517": 1, "518": 1, "519": 1, "520": 1}}, "link_id": {"link_uuid": {"uuid": "eae23f48-40de-5aae-b3d1-fa3cda231678"}}, "link_endpoint_ids": [{"topology_id": {"context_id": {"context_uuid": {"uuid": "43813baf-195e-5da6-af20-b3d0922e71a7"}}, "topology_uuid": {"uuid": "c76135e3-24a8-5e92-9bed-c3c9139359c8"}}, "device_id": {"device_uuid": {"uuid": "c944aaeb-bbdf-5f2d-b31c-8cc8903045b6"}}, "endpoint_uuid": {"uuid": "3efedbc2-7363-53cf-a0b9-fc4a2bcbd245"}}, {"topology_id": {"context_id": {"context_uuid": {"uuid": "43813baf-195e-5da6-af20-b3d0922e71a7"}}, "topology_uuid": {"uuid": "c76135e3-24a8-5e92-9bed-c3c9139359c8"}}, "device_id": {"device_uuid": {"uuid": "68741528-2e94-5274-ab3c-fddcd8dc05ef"}}, "endpoint_uuid": {"uuid": "436bb32a-c8a0-5718-bbdb-382c79d96587"}}]}, {"name": "T2.1-R2", "optical_details": {"src_port": "1", "dst_port": "port-33-in", "local_peer_port": "1", "remote_peer_port": "port-33-out", "c_slots": {"1": 1, "2": 1, "3": 1, "4": 1, "5": 1, "6": 1, "7": 1, "8": 1, "9": 1, "10": 1, "11": 1, "12": 1, "13": 1, "14": 1, "15": 1, "16": 1, "17": 1, "18": 1, "19": 1, "20": 1, "21": 1, "22": 1, "23": 1, "24": 1, "25": 1, "26": 1, "27": 1, "28": 1, "29": 1, "30": 1}, "l_slots": {"101": 1, "102": 1, "103": 1, "104": 1, "105": 1, "106": 1, "107": 1, "108": 1, "109": 1, "110": 1, "111": 1, "112": 1, "113": 1, "114": 1, "115": 1, "116": 1, "117": 1, "118": 1, "119": 1, "120": 1}, "s_slots": {"501": 1, "502": 1, "503": 1, "504": 1, "505": 1, "506": 1, "507": 1, "508": 1, "509": 1, "510": 1, "511": 1, "512": 1, "513": 1, "514": 1, "515": 1, "516": 1, "517": 1, "518": 1, "519": 1, "520": 1}}, "link_id": {"link_uuid": {"uuid": "ebb2ca0f-d4c1-51c4-ab41-dceea90f811f"}}, "link_endpoint_ids": [{"topology_id": {"context_id": {"context_uuid": {"uuid": "43813baf-195e-5da6-af20-b3d0922e71a7"}}, "topology_uuid": {"uuid": "c76135e3-24a8-5e92-9bed-c3c9139359c8"}}, "device_id": {"device_uuid": {"uuid": "87d74166-65e3-595e-b643-122b4fd0303f"}}, "endpoint_uuid": {"uuid": "2a307a8e-d326-5ea2-9437-b0320fb4c2a6"}}, {"topology_id": {"context_id": {"context_uuid": {"uuid": "43813baf-195e-5da6-af20-b3d0922e71a7"}}, "topology_uuid": {"uuid": "c76135e3-24a8-5e92-9bed-c3c9139359c8"}}, "device_id": {"device_uuid": {"uuid": "c944aaeb-bbdf-5f2d-b31c-8cc8903045b6"}}, "endpoint_uuid": {"uuid": "be1b3bb0-8aed-569a-be91-e888b0c0985d"}}]}, {"name": "T1.3-R1", "optical_details": {"src_port": "3", "dst_port": "port-35-in", "local_peer_port": "3", "remote_peer_port": "port-35-out", "c_slots": {"1": 1, "2": 1, "3": 1, "4": 1, "5": 1, "6": 1, "7": 1, "8": 1, "9": 1, "10": 1, "11": 1, "12": 1, "13": 1, "14": 1, "15": 1, "16": 1, "17": 1, "18": 1, "19": 1, "20": 1, "21": 1, "22": 1, "23": 1, "24": 1, "25": 1, "26": 1, "27": 1, "28": 1, "29": 1, "30": 1}, "l_slots": {"101": 1, "102": 1, "103": 1, "104": 1, "105": 1, "106": 1, "107": 1, "108": 1, "109": 1, "110": 1, "111": 1, "112": 1, "113": 1, "114": 1, "115": 1, "116": 1, "117": 1, "118": 1, "119": 1, "120": 1}, "s_slots": {"501": 1, "502": 1, "503": 1, "504": 1, "505": 1, "506": 1, "507": 1, "508": 1, "509": 1, "510": 1, "511": 1, "512": 1, "513": 1, "514": 1, "515": 1, "516": 1, "517": 1, "518": 1, "519": 1, "520": 1}}, "link_id": {"link_uuid": {"uuid": "f79a817c-a6a0-55d5-9398-a582a9835be9"}}, "link_endpoint_ids": [{"topology_id": {"context_id": {"context_uuid": {"uuid": "43813baf-195e-5da6-af20-b3d0922e71a7"}}, "topology_uuid": {"uuid": "c76135e3-24a8-5e92-9bed-c3c9139359c8"}}, "device_id": {"device_uuid": {"uuid": "68741528-2e94-5274-ab3c-fddcd8dc05ef"}}, "endpoint_uuid": {"uuid": "435a198b-cd6f-5d29-a72d-ea4f04cb658a"}}, {"topology_id": {"context_id": {"context_uuid": {"uuid": "43813baf-195e-5da6-af20-b3d0922e71a7"}}, "topology_uuid": {"uuid": "c76135e3-24a8-5e92-9bed-c3c9139359c8"}}, "device_id": {"device_uuid": {"uuid": "cf618e18-c0a1-58c4-9827-943a2c0523d6"}}, "endpoint_uuid": {"uuid": "bbdfc5ef-4f8b-5921-9d1f-33dd9a5f18c8"}}]}]}
+{
+    "optical_links": [
+        {
+            "name": "R2-T2.1",
+            "optical_details": {
+                "src_port": "2",
+                "dst_port": "6",
+                "local_peer_port": "12",
+                "remote_peer_port": "6",
+                "c_slots": {
+                    "1": 1,
+                    "2": 1,
+                    "3": 1,
+                    "4": 1,
+                    "5": 1,
+                    "6": 1,
+                    "7": 1,
+                    "8": 1,
+                    "9": 1,
+                    "10": 1,
+                    "11": 1,
+                    "12": 1,
+                    "13": 1,
+                    "14": 1,
+                    "15": 1,
+                    "16": 1,
+                    "17": 1,
+                    "18": 1,
+                    "19": 1,
+                    "20": 1
+                },
+                "l_slots": {
+                    "101": 1,
+                    "102": 1,
+                    "103": 1,
+                    "104": 1,
+                    "105": 1,
+                    "106": 1,
+                    "107": 1,
+                    "108": 1,
+                    "109": 1,
+                    "110": 1,
+                    "111": 1,
+                    "112": 1,
+                    "113": 1,
+                    "114": 1,
+                    "115": 1,
+                    "116": 1,
+                    "117": 1,
+                    "118": 1,
+                    "119": 1,
+                    "120": 1
+                },
+                "s_slots": {
+                    "501": 1,
+                    "502": 1,
+                    "503": 1,
+                    "504": 1,
+                    "505": 1,
+                    "506": 1,
+                    "507": 1,
+                    "508": 1,
+                    "509": 1,
+                    "510": 1,
+                    "511": 1,
+                    "512": 1,
+                    "513": 1,
+                    "514": 1,
+                    "515": 1,
+                    "516": 1,
+                    "517": 1,
+                    "518": 1,
+                    "519": 1,
+                    "520": 1
+                }
+            },
+            "link_id": {
+                "link_uuid": {
+                    "uuid": "5ba1d9b6-120a-5680-b745-2ea24aec1cc3"
+                }
+            },
+            "link_endpoint_ids": [
+                {
+                    "topology_id": {
+                        "context_id": {
+                            "context_uuid": {
+                                "uuid": "43813baf-195e-5da6-af20-b3d0922e71a7"
+                            }
+                        },
+                        "topology_uuid": {
+                            "uuid": "c76135e3-24a8-5e92-9bed-c3c9139359c8"
+                        }
+                    },
+                    "device_id": {
+                        "device_uuid": {
+                            "uuid": "87d74166-65e3-595e-b643-122b4fd0303f"
+                        }
+                    },
+                    "endpoint_uuid": {
+                        "uuid": "61fd51ea-9896-5528-bcf3-3202a7668efb"
+                    }
+                },
+                {
+                    "topology_id": {
+                        "context_id": {
+                            "context_uuid": {
+                                "uuid": "43813baf-195e-5da6-af20-b3d0922e71a7"
+                            }
+                        },
+                        "topology_uuid": {
+                            "uuid": "c76135e3-24a8-5e92-9bed-c3c9139359c8"
+                        }
+                    },
+                    "device_id": {
+                        "device_uuid": {
+                            "uuid": "c944aaeb-bbdf-5f2d-b31c-8cc8903045b6"
+                        }
+                    },
+                    "endpoint_uuid": {
+                        "uuid": "d1e7e6c7-f1d7-56f3-be32-8982a72966f6"
+                    }
+                }
+            ]
+        },
+        {
+            "name": "R2-T2.2",
+            "optical_details": {
+                "src_port": "3",
+                "dst_port": "6",
+                "local_peer_port": "13",
+                "remote_peer_port": "6",
+                "c_slots": {
+                    "1": 1,
+                    "2": 1,
+                    "3": 1,
+                    "4": 1,
+                    "5": 1,
+                    "6": 1,
+                    "7": 1,
+                    "8": 1,
+                    "9": 1,
+                    "10": 1,
+                    "11": 1,
+                    "12": 1,
+                    "13": 1,
+                    "14": 1,
+                    "15": 1,
+                    "16": 1,
+                    "17": 1,
+                    "18": 1,
+                    "19": 1,
+                    "20": 1
+                },
+                "l_slots": {
+                    "101": 1,
+                    "102": 1,
+                    "103": 1,
+                    "104": 1,
+                    "105": 1,
+                    "106": 1,
+                    "107": 1,
+                    "108": 1,
+                    "109": 1,
+                    "110": 1,
+                    "111": 1,
+                    "112": 1,
+                    "113": 1,
+                    "114": 1,
+                    "115": 1,
+                    "116": 1,
+                    "117": 1,
+                    "118": 1,
+                    "119": 1,
+                    "120": 1
+                },
+                "s_slots": {
+                    "501": 1,
+                    "502": 1,
+                    "503": 1,
+                    "504": 1,
+                    "505": 1,
+                    "506": 1,
+                    "507": 1,
+                    "508": 1,
+                    "509": 1,
+                    "510": 1,
+                    "511": 1,
+                    "512": 1,
+                    "513": 1,
+                    "514": 1,
+                    "515": 1,
+                    "516": 1,
+                    "517": 1,
+                    "518": 1,
+                    "519": 1,
+                    "520": 1
+                }
+            },
+            "link_id": {
+                "link_uuid": {
+                    "uuid": "5f9f4309-d24d-52e0-9d60-ba84839a5bda"
+                }
+            },
+            "link_endpoint_ids": [
+                {
+                    "topology_id": {
+                        "context_id": {
+                            "context_uuid": {
+                                "uuid": "43813baf-195e-5da6-af20-b3d0922e71a7"
+                            }
+                        },
+                        "topology_uuid": {
+                            "uuid": "c76135e3-24a8-5e92-9bed-c3c9139359c8"
+                        }
+                    },
+                    "device_id": {
+                        "device_uuid": {
+                            "uuid": "c944aaeb-bbdf-5f2d-b31c-8cc8903045b6"
+                        }
+                    },
+                    "endpoint_uuid": {
+                        "uuid": "463f5b52-bb8e-54e7-a63d-aeb4ad4b72bc"
+                    }
+                },
+                {
+                    "topology_id": {
+                        "context_id": {
+                            "context_uuid": {
+                                "uuid": "43813baf-195e-5da6-af20-b3d0922e71a7"
+                            }
+                        },
+                        "topology_uuid": {
+                            "uuid": "c76135e3-24a8-5e92-9bed-c3c9139359c8"
+                        }
+                    },
+                    "device_id": {
+                        "device_uuid": {
+                            "uuid": "012c4e67-0024-5f30-b527-55ec6daf2639"
+                        }
+                    },
+                    "endpoint_uuid": {
+                        "uuid": "f2c1749b-0052-5ecb-931f-1b7889d7ed4d"
+                    }
+                }
+            ]
+        },
+        {
+            "name": "R1-T1.1",
+            "optical_details": {
+                "src_port": "2",
+                "dst_port": "1",
+                "local_peer_port": "12",
+                "remote_peer_port": "1",
+                "c_slots": {
+                    "1": 1,
+                    "2": 1,
+                    "3": 1,
+                    "4": 1,
+                    "5": 1,
+                    "6": 1,
+                    "7": 1,
+                    "8": 1,
+                    "9": 1,
+                    "10": 1,
+                    "11": 1,
+                    "12": 1,
+                    "13": 1,
+                    "14": 1,
+                    "15": 1,
+                    "16": 1,
+                    "17": 1,
+                    "18": 1,
+                    "19": 1,
+                    "20": 1
+                },
+                "l_slots": {
+                    "101": 1,
+                    "102": 1,
+                    "103": 1,
+                    "104": 1,
+                    "105": 1,
+                    "106": 1,
+                    "107": 1,
+                    "108": 1,
+                    "109": 1,
+                    "110": 1,
+                    "111": 1,
+                    "112": 1,
+                    "113": 1,
+                    "114": 1,
+                    "115": 1,
+                    "116": 1,
+                    "117": 1,
+                    "118": 1,
+                    "119": 1,
+                    "120": 1
+                },
+                "s_slots": {
+                    "501": 1,
+                    "502": 1,
+                    "503": 1,
+                    "504": 1,
+                    "505": 1,
+                    "506": 1,
+                    "507": 1,
+                    "508": 1,
+                    "509": 1,
+                    "510": 1,
+                    "511": 1,
+                    "512": 1,
+                    "513": 1,
+                    "514": 1,
+                    "515": 1,
+                    "516": 1,
+                    "517": 1,
+                    "518": 1,
+                    "519": 1,
+                    "520": 1
+                }
+            },
+            "link_id": {
+                "link_uuid": {
+                    "uuid": "63c6a257-f171-59f8-b1e8-e3c4086ba36a"
+                }
+            },
+            "link_endpoint_ids": [
+                {
+                    "topology_id": {
+                        "context_id": {
+                            "context_uuid": {
+                                "uuid": "43813baf-195e-5da6-af20-b3d0922e71a7"
+                            }
+                        },
+                        "topology_uuid": {
+                            "uuid": "c76135e3-24a8-5e92-9bed-c3c9139359c8"
+                        }
+                    },
+                    "device_id": {
+                        "device_uuid": {
+                            "uuid": "4dbdc2d8-cbde-5e48-a3c0-5161387a58c7"
+                        }
+                    },
+                    "endpoint_uuid": {
+                        "uuid": "5eb4f156-7811-53f3-9172-8402127cf7b9"
+                    }
+                },
+                {
+                    "topology_id": {
+                        "context_id": {
+                            "context_uuid": {
+                                "uuid": "43813baf-195e-5da6-af20-b3d0922e71a7"
+                            }
+                        },
+                        "topology_uuid": {
+                            "uuid": "c76135e3-24a8-5e92-9bed-c3c9139359c8"
+                        }
+                    },
+                    "device_id": {
+                        "device_uuid": {
+                            "uuid": "68741528-2e94-5274-ab3c-fddcd8dc05ef"
+                        }
+                    },
+                    "endpoint_uuid": {
+                        "uuid": "c7b7a565-0469-5463-809b-8ef4851d89c4"
+                    }
+                }
+            ]
+        },
+        {
+            "name": "T1.2-R1",
+            "optical_details": {
+                "src_port": "1",
+                "dst_port": "13",
+                "local_peer_port": "1",
+                "remote_peer_port": "3",
+                "c_slots": {
+                    "1": 1,
+                    "2": 1,
+                    "3": 1,
+                    "4": 1,
+                    "5": 1,
+                    "6": 1,
+                    "7": 1,
+                    "8": 1,
+                    "9": 1,
+                    "10": 1,
+                    "11": 1,
+                    "12": 1,
+                    "13": 1,
+                    "14": 1,
+                    "15": 1,
+                    "16": 1,
+                    "17": 1,
+                    "18": 1,
+                    "19": 1,
+                    "20": 1
+                },
+                "l_slots": {
+                    "101": 1,
+                    "102": 1,
+                    "103": 1,
+                    "104": 1,
+                    "105": 1,
+                    "106": 1,
+                    "107": 1,
+                    "108": 1,
+                    "109": 1,
+                    "110": 1,
+                    "111": 1,
+                    "112": 1,
+                    "113": 1,
+                    "114": 1,
+                    "115": 1,
+                    "116": 1,
+                    "117": 1,
+                    "118": 1,
+                    "119": 1,
+                    "120": 1
+                },
+                "s_slots": {
+                    "501": 1,
+                    "502": 1,
+                    "503": 1,
+                    "504": 1,
+                    "505": 1,
+                    "506": 1,
+                    "507": 1,
+                    "508": 1,
+                    "509": 1,
+                    "510": 1,
+                    "511": 1,
+                    "512": 1,
+                    "513": 1,
+                    "514": 1,
+                    "515": 1,
+                    "516": 1,
+                    "517": 1,
+                    "518": 1,
+                    "519": 1,
+                    "520": 1
+                }
+            },
+            "link_id": {
+                "link_uuid": {
+                    "uuid": "817a2fcb-5dfd-55a6-b669-a141014cc38d"
+                }
+            },
+            "link_endpoint_ids": [
+                {
+                    "topology_id": {
+                        "context_id": {
+                            "context_uuid": {
+                                "uuid": "43813baf-195e-5da6-af20-b3d0922e71a7"
+                            }
+                        },
+                        "topology_uuid": {
+                            "uuid": "c76135e3-24a8-5e92-9bed-c3c9139359c8"
+                        }
+                    },
+                    "device_id": {
+                        "device_uuid": {
+                            "uuid": "68741528-2e94-5274-ab3c-fddcd8dc05ef"
+                        }
+                    },
+                    "endpoint_uuid": {
+                        "uuid": "27b6ed2a-b0d1-5be9-b9be-cc9a540ac0d1"
+                    }
+                },
+                {
+                    "topology_id": {
+                        "context_id": {
+                            "context_uuid": {
+                                "uuid": "43813baf-195e-5da6-af20-b3d0922e71a7"
+                            }
+                        },
+                        "topology_uuid": {
+                            "uuid": "c76135e3-24a8-5e92-9bed-c3c9139359c8"
+                        }
+                    },
+                    "device_id": {
+                        "device_uuid": {
+                            "uuid": "27c2ed23-e74a-518f-820d-ae2c8ae23086"
+                        }
+                    },
+                    "endpoint_uuid": {
+                        "uuid": "cef46beb-6533-5a93-8541-ed5adc875452"
+                    }
+                }
+            ]
+        },
+        {
+            "name": "T2.2-R2",
+            "optical_details": {
+                "src_port": "6",
+                "dst_port": "13",
+                "local_peer_port": "6",
+                "remote_peer_port": "3",
+                "c_slots": {
+                    "1": 1,
+                    "2": 1,
+                    "3": 1,
+                    "4": 1,
+                    "5": 1,
+                    "6": 1,
+                    "7": 1,
+                    "8": 1,
+                    "9": 1,
+                    "10": 1,
+                    "11": 1,
+                    "12": 1,
+                    "13": 1,
+                    "14": 1,
+                    "15": 1,
+                    "16": 1,
+                    "17": 1,
+                    "18": 1,
+                    "19": 1,
+                    "20": 1
+                },
+                "l_slots": {
+                    "101": 1,
+                    "102": 1,
+                    "103": 1,
+                    "104": 1,
+                    "105": 1,
+                    "106": 1,
+                    "107": 1,
+                    "108": 1,
+                    "109": 1,
+                    "110": 1,
+                    "111": 1,
+                    "112": 1,
+                    "113": 1,
+                    "114": 1,
+                    "115": 1,
+                    "116": 1,
+                    "117": 1,
+                    "118": 1,
+                    "119": 1,
+                    "120": 1
+                },
+                "s_slots": {
+                    "501": 1,
+                    "502": 1,
+                    "503": 1,
+                    "504": 1,
+                    "505": 1,
+                    "506": 1,
+                    "507": 1,
+                    "508": 1,
+                    "509": 1,
+                    "510": 1,
+                    "511": 1,
+                    "512": 1,
+                    "513": 1,
+                    "514": 1,
+                    "515": 1,
+                    "516": 1,
+                    "517": 1,
+                    "518": 1,
+                    "519": 1,
+                    "520": 1
+                }
+            },
+            "link_id": {
+                "link_uuid": {
+                    "uuid": "884c6c6a-ad1b-5228-a48f-e9db4bc174df"
+                }
+            },
+            "link_endpoint_ids": [
+                {
+                    "topology_id": {
+                        "context_id": {
+                            "context_uuid": {
+                                "uuid": "43813baf-195e-5da6-af20-b3d0922e71a7"
+                            }
+                        },
+                        "topology_uuid": {
+                            "uuid": "c76135e3-24a8-5e92-9bed-c3c9139359c8"
+                        }
+                    },
+                    "device_id": {
+                        "device_uuid": {
+                            "uuid": "c944aaeb-bbdf-5f2d-b31c-8cc8903045b6"
+                        }
+                    },
+                    "endpoint_uuid": {
+                        "uuid": "be24d4af-c784-50cc-baa4-976a499fcd5a"
+                    }
+                },
+                {
+                    "topology_id": {
+                        "context_id": {
+                            "context_uuid": {
+                                "uuid": "43813baf-195e-5da6-af20-b3d0922e71a7"
+                            }
+                        },
+                        "topology_uuid": {
+                            "uuid": "c76135e3-24a8-5e92-9bed-c3c9139359c8"
+                        }
+                    },
+                    "device_id": {
+                        "device_uuid": {
+                            "uuid": "012c4e67-0024-5f30-b527-55ec6daf2639"
+                        }
+                    },
+                    "endpoint_uuid": {
+                        "uuid": "f2c1749b-0052-5ecb-931f-1b7889d7ed4d"
+                    }
+                }
+            ]
+        },
+        {
+            "name": "R1-T1.3",
+            "optical_details": {
+                "src_port": "4",
+                "dst_port": "1",
+                "local_peer_port": "14",
+                "remote_peer_port": "1",
+                "c_slots": {
+                    "1": 1,
+                    "2": 1,
+                    "3": 1,
+                    "4": 1,
+                    "5": 1,
+                    "6": 1,
+                    "7": 1,
+                    "8": 1,
+                    "9": 1,
+                    "10": 1,
+                    "11": 1,
+                    "12": 1,
+                    "13": 1,
+                    "14": 1,
+                    "15": 1,
+                    "16": 1,
+                    "17": 1,
+                    "18": 1,
+                    "19": 1,
+                    "20": 1
+                },
+                "l_slots": {
+                    "101": 1,
+                    "102": 1,
+                    "103": 1,
+                    "104": 1,
+                    "105": 1,
+                    "106": 1,
+                    "107": 1,
+                    "108": 1,
+                    "109": 1,
+                    "110": 1,
+                    "111": 1,
+                    "112": 1,
+                    "113": 1,
+                    "114": 1,
+                    "115": 1,
+                    "116": 1,
+                    "117": 1,
+                    "118": 1,
+                    "119": 1,
+                    "120": 1
+                },
+                "s_slots": {
+                    "501": 1,
+                    "502": 1,
+                    "503": 1,
+                    "504": 1,
+                    "505": 1,
+                    "506": 1,
+                    "507": 1,
+                    "508": 1,
+                    "509": 1,
+                    "510": 1,
+                    "511": 1,
+                    "512": 1,
+                    "513": 1,
+                    "514": 1,
+                    "515": 1,
+                    "516": 1,
+                    "517": 1,
+                    "518": 1,
+                    "519": 1,
+                    "520": 1
+                }
+            },
+            "link_id": {
+                "link_uuid": {
+                    "uuid": "89e3a6c6-d613-55bf-925c-c817ee24a133"
+                }
+            },
+            "link_endpoint_ids": [
+                {
+                    "topology_id": {
+                        "context_id": {
+                            "context_uuid": {
+                                "uuid": "43813baf-195e-5da6-af20-b3d0922e71a7"
+                            }
+                        },
+                        "topology_uuid": {
+                            "uuid": "c76135e3-24a8-5e92-9bed-c3c9139359c8"
+                        }
+                    },
+                    "device_id": {
+                        "device_uuid": {
+                            "uuid": "68741528-2e94-5274-ab3c-fddcd8dc05ef"
+                        }
+                    },
+                    "endpoint_uuid": {
+                        "uuid": "4fca89b8-237c-52bd-8131-9129316b524f"
+                    }
+                },
+                {
+                    "topology_id": {
+                        "context_id": {
+                            "context_uuid": {
+                                "uuid": "43813baf-195e-5da6-af20-b3d0922e71a7"
+                            }
+                        },
+                        "topology_uuid": {
+                            "uuid": "c76135e3-24a8-5e92-9bed-c3c9139359c8"
+                        }
+                    },
+                    "device_id": {
+                        "device_uuid": {
+                            "uuid": "cf618e18-c0a1-58c4-9827-943a2c0523d6"
+                        }
+                    },
+                    "endpoint_uuid": {
+                        "uuid": "dcaae3e3-42c5-50b5-bafb-d3097d567d09"
+                    }
+                }
+            ]
+        },
+        {
+            "name": "R1-T1.2",
+            "optical_details": {
+                "src_port": "3",
+                "dst_port": "1",
+                "local_peer_port": "13",
+                "remote_peer_port": "1",
+                "c_slots": {
+                    "1": 1,
+                    "2": 1,
+                    "3": 1,
+                    "4": 1,
+                    "5": 1,
+                    "6": 1,
+                    "7": 1,
+                    "8": 1,
+                    "9": 1,
+                    "10": 1,
+                    "11": 1,
+                    "12": 1,
+                    "13": 1,
+                    "14": 1,
+                    "15": 1,
+                    "16": 1,
+                    "17": 1,
+                    "18": 1,
+                    "19": 1,
+                    "20": 1
+                },
+                "l_slots": {
+                    "101": 1,
+                    "102": 1,
+                    "103": 1,
+                    "104": 1,
+                    "105": 1,
+                    "106": 1,
+                    "107": 1,
+                    "108": 1,
+                    "109": 1,
+                    "110": 1,
+                    "111": 1,
+                    "112": 1,
+                    "113": 1,
+                    "114": 1,
+                    "115": 1,
+                    "116": 1,
+                    "117": 1,
+                    "118": 1,
+                    "119": 1,
+                    "120": 1
+                },
+                "s_slots": {
+                    "501": 1,
+                    "502": 1,
+                    "503": 1,
+                    "504": 1,
+                    "505": 1,
+                    "506": 1,
+                    "507": 1,
+                    "508": 1,
+                    "509": 1,
+                    "510": 1,
+                    "511": 1,
+                    "512": 1,
+                    "513": 1,
+                    "514": 1,
+                    "515": 1,
+                    "516": 1,
+                    "517": 1,
+                    "518": 1,
+                    "519": 1,
+                    "520": 1
+                }
+            },
+            "link_id": {
+                "link_uuid": {
+                    "uuid": "b11e2e7b-ef00-5c11-9dc6-5fd34bd11f6e"
+                }
+            },
+            "link_endpoint_ids": [
+                {
+                    "topology_id": {
+                        "context_id": {
+                            "context_uuid": {
+                                "uuid": "43813baf-195e-5da6-af20-b3d0922e71a7"
+                            }
+                        },
+                        "topology_uuid": {
+                            "uuid": "c76135e3-24a8-5e92-9bed-c3c9139359c8"
+                        }
+                    },
+                    "device_id": {
+                        "device_uuid": {
+                            "uuid": "68741528-2e94-5274-ab3c-fddcd8dc05ef"
+                        }
+                    },
+                    "endpoint_uuid": {
+                        "uuid": "1a8d66e2-5d94-520f-b94a-0aca4cfd891f"
+                    }
+                },
+                {
+                    "topology_id": {
+                        "context_id": {
+                            "context_uuid": {
+                                "uuid": "43813baf-195e-5da6-af20-b3d0922e71a7"
+                            }
+                        },
+                        "topology_uuid": {
+                            "uuid": "c76135e3-24a8-5e92-9bed-c3c9139359c8"
+                        }
+                    },
+                    "device_id": {
+                        "device_uuid": {
+                            "uuid": "27c2ed23-e74a-518f-820d-ae2c8ae23086"
+                        }
+                    },
+                    "endpoint_uuid": {
+                        "uuid": "cef46beb-6533-5a93-8541-ed5adc875452"
+                    }
+                }
+            ]
+        },
+        {
+            "name": "T2.3-R2",
+            "optical_details": {
+                "src_port": "6",
+                "dst_port": "14",
+                "local_peer_port": "6",
+                "remote_peer_port": "4",
+                "c_slots": {
+                    "1": 1,
+                    "2": 1,
+                    "3": 1,
+                    "4": 1,
+                    "5": 1,
+                    "6": 1,
+                    "7": 1,
+                    "8": 1,
+                    "9": 1,
+                    "10": 1,
+                    "11": 1,
+                    "12": 1,
+                    "13": 1,
+                    "14": 1,
+                    "15": 1,
+                    "16": 1,
+                    "17": 1,
+                    "18": 1,
+                    "19": 1,
+                    "20": 1
+                },
+                "l_slots": {
+                    "101": 1,
+                    "102": 1,
+                    "103": 1,
+                    "104": 1,
+                    "105": 1,
+                    "106": 1,
+                    "107": 1,
+                    "108": 1,
+                    "109": 1,
+                    "110": 1,
+                    "111": 1,
+                    "112": 1,
+                    "113": 1,
+                    "114": 1,
+                    "115": 1,
+                    "116": 1,
+                    "117": 1,
+                    "118": 1,
+                    "119": 1,
+                    "120": 1
+                },
+                "s_slots": {
+                    "501": 1,
+                    "502": 1,
+                    "503": 1,
+                    "504": 1,
+                    "505": 1,
+                    "506": 1,
+                    "507": 1,
+                    "508": 1,
+                    "509": 1,
+                    "510": 1,
+                    "511": 1,
+                    "512": 1,
+                    "513": 1,
+                    "514": 1,
+                    "515": 1,
+                    "516": 1,
+                    "517": 1,
+                    "518": 1,
+                    "519": 1,
+                    "520": 1
+                }
+            },
+            "link_id": {
+                "link_uuid": {
+                    "uuid": "be7afc05-6e45-5899-896b-b331d6ab65c8"
+                }
+            },
+            "link_endpoint_ids": [
+                {
+                    "topology_id": {
+                        "context_id": {
+                            "context_uuid": {
+                                "uuid": "43813baf-195e-5da6-af20-b3d0922e71a7"
+                            }
+                        },
+                        "topology_uuid": {
+                            "uuid": "c76135e3-24a8-5e92-9bed-c3c9139359c8"
+                        }
+                    },
+                    "device_id": {
+                        "device_uuid": {
+                            "uuid": "ce0cdfdd-2182-5027-8177-676ca3244f9d"
+                        }
+                    },
+                    "endpoint_uuid": {
+                        "uuid": "615c29eb-3528-5e70-9f43-2491aeb6478b"
+                    }
+                },
+                {
+                    "topology_id": {
+                        "context_id": {
+                            "context_uuid": {
+                                "uuid": "43813baf-195e-5da6-af20-b3d0922e71a7"
+                            }
+                        },
+                        "topology_uuid": {
+                            "uuid": "c76135e3-24a8-5e92-9bed-c3c9139359c8"
+                        }
+                    },
+                    "device_id": {
+                        "device_uuid": {
+                            "uuid": "c944aaeb-bbdf-5f2d-b31c-8cc8903045b6"
+                        }
+                    },
+                    "endpoint_uuid": {
+                        "uuid": "ac9e9079-6cf5-5d21-834d-1940c76fd78d"
+                    }
+                }
+            ]
+        },
+        {
+            "name": "R2-T2.3",
+            "optical_details": {
+                "src_port": "4",
+                "dst_port": "6",
+                "local_peer_port": "14",
+                "remote_peer_port": "6",
+                "c_slots": {
+                    "1": 1,
+                    "2": 1,
+                    "3": 1,
+                    "4": 1,
+                    "5": 1,
+                    "6": 1,
+                    "7": 1,
+                    "8": 1,
+                    "9": 1,
+                    "10": 1,
+                    "11": 1,
+                    "12": 1,
+                    "13": 1,
+                    "14": 1,
+                    "15": 1,
+                    "16": 1,
+                    "17": 1,
+                    "18": 1,
+                    "19": 1,
+                    "20": 1
+                },
+                "l_slots": {
+                    "101": 1,
+                    "102": 1,
+                    "103": 1,
+                    "104": 1,
+                    "105": 1,
+                    "106": 1,
+                    "107": 1,
+                    "108": 1,
+                    "109": 1,
+                    "110": 1,
+                    "111": 1,
+                    "112": 1,
+                    "113": 1,
+                    "114": 1,
+                    "115": 1,
+                    "116": 1,
+                    "117": 1,
+                    "118": 1,
+                    "119": 1,
+                    "120": 1
+                },
+                "s_slots": {
+                    "501": 1,
+                    "502": 1,
+                    "503": 1,
+                    "504": 1,
+                    "505": 1,
+                    "506": 1,
+                    "507": 1,
+                    "508": 1,
+                    "509": 1,
+                    "510": 1,
+                    "511": 1,
+                    "512": 1,
+                    "513": 1,
+                    "514": 1,
+                    "515": 1,
+                    "516": 1,
+                    "517": 1,
+                    "518": 1,
+                    "519": 1,
+                    "520": 1
+                }
+            },
+            "link_id": {
+                "link_uuid": {
+                    "uuid": "d4e89764-11c5-5f59-b7d6-a3aa2dab43df"
+                }
+            },
+            "link_endpoint_ids": [
+                {
+                    "topology_id": {
+                        "context_id": {
+                            "context_uuid": {
+                                "uuid": "43813baf-195e-5da6-af20-b3d0922e71a7"
+                            }
+                        },
+                        "topology_uuid": {
+                            "uuid": "c76135e3-24a8-5e92-9bed-c3c9139359c8"
+                        }
+                    },
+                    "device_id": {
+                        "device_uuid": {
+                            "uuid": "ce0cdfdd-2182-5027-8177-676ca3244f9d"
+                        }
+                    },
+                    "endpoint_uuid": {
+                        "uuid": "615c29eb-3528-5e70-9f43-2491aeb6478b"
+                    }
+                },
+                {
+                    "topology_id": {
+                        "context_id": {
+                            "context_uuid": {
+                                "uuid": "43813baf-195e-5da6-af20-b3d0922e71a7"
+                            }
+                        },
+                        "topology_uuid": {
+                            "uuid": "c76135e3-24a8-5e92-9bed-c3c9139359c8"
+                        }
+                    },
+                    "device_id": {
+                        "device_uuid": {
+                            "uuid": "c944aaeb-bbdf-5f2d-b31c-8cc8903045b6"
+                        }
+                    },
+                    "endpoint_uuid": {
+                        "uuid": "88a0bc2f-1ebf-5aca-b472-c339a1c302f9"
+                    }
+                }
+            ]
+        },
+        {
+            "name": "R1-R2",
+            "optical_details": {
+                "src_port": "101",
+                "dst_port": "111",
+                "local_peer_port": "111",
+                "remote_peer_port": "101",
+                "c_slots": {
+                    "1": 1,
+                    "2": 1,
+                    "3": 1,
+                    "4": 1,
+                    "5": 1,
+                    "6": 1,
+                    "7": 1,
+                    "8": 1,
+                    "9": 1,
+                    "10": 1,
+                    "11": 1,
+                    "12": 1,
+                    "13": 1,
+                    "14": 1,
+                    "15": 1,
+                    "16": 1,
+                    "17": 1,
+                    "18": 1,
+                    "19": 1,
+                    "20": 1
+                },
+                "l_slots": {
+                    "101": 1,
+                    "102": 1,
+                    "103": 1,
+                    "104": 1,
+                    "105": 1,
+                    "106": 1,
+                    "107": 1,
+                    "108": 1,
+                    "109": 1,
+                    "110": 1,
+                    "111": 1,
+                    "112": 1,
+                    "113": 1,
+                    "114": 1,
+                    "115": 1,
+                    "116": 1,
+                    "117": 1,
+                    "118": 1,
+                    "119": 1,
+                    "120": 1
+                },
+                "s_slots": {
+                    "501": 1,
+                    "502": 1,
+                    "503": 1,
+                    "504": 1,
+                    "505": 1,
+                    "506": 1,
+                    "507": 1,
+                    "508": 1,
+                    "509": 1,
+                    "510": 1,
+                    "511": 1,
+                    "512": 1,
+                    "513": 1,
+                    "514": 1,
+                    "515": 1,
+                    "516": 1,
+                    "517": 1,
+                    "518": 1,
+                    "519": 1,
+                    "520": 1
+                }
+            },
+            "link_id": {
+                "link_uuid": {
+                    "uuid": "e273644c-0dfa-5053-8850-0722995e7ba3"
+                }
+            },
+            "link_endpoint_ids": [
+                {
+                    "topology_id": {
+                        "context_id": {
+                            "context_uuid": {
+                                "uuid": "43813baf-195e-5da6-af20-b3d0922e71a7"
+                            }
+                        },
+                        "topology_uuid": {
+                            "uuid": "c76135e3-24a8-5e92-9bed-c3c9139359c8"
+                        }
+                    },
+                    "device_id": {
+                        "device_uuid": {
+                            "uuid": "68741528-2e94-5274-ab3c-fddcd8dc05ef"
+                        }
+                    },
+                    "endpoint_uuid": {
+                        "uuid": "811b34f9-112c-5cc5-a4e0-6e5f5e0bdada"
+                    }
+                },
+                {
+                    "topology_id": {
+                        "context_id": {
+                            "context_uuid": {
+                                "uuid": "43813baf-195e-5da6-af20-b3d0922e71a7"
+                            }
+                        },
+                        "topology_uuid": {
+                            "uuid": "c76135e3-24a8-5e92-9bed-c3c9139359c8"
+                        }
+                    },
+                    "device_id": {
+                        "device_uuid": {
+                            "uuid": "c944aaeb-bbdf-5f2d-b31c-8cc8903045b6"
+                        }
+                    },
+                    "endpoint_uuid": {
+                        "uuid": "d777e553-af96-5ee7-a957-ce70b49e36ac"
+                    }
+                }
+            ]
+        },
+        {
+            "name": "T1.1-R1",
+            "optical_details": {
+                "src_port": "1",
+                "dst_port": "12",
+                "local_peer_port": "1",
+                "remote_peer_port": "2",
+                "c_slots": {
+                    "1": 1,
+                    "2": 1,
+                    "3": 1,
+                    "4": 1,
+                    "5": 1,
+                    "6": 1,
+                    "7": 1,
+                    "8": 1,
+                    "9": 1,
+                    "10": 1,
+                    "11": 1,
+                    "12": 1,
+                    "13": 1,
+                    "14": 1,
+                    "15": 1,
+                    "16": 1,
+                    "17": 1,
+                    "18": 1,
+                    "19": 1,
+                    "20": 1
+                },
+                "l_slots": {
+                    "101": 1,
+                    "102": 1,
+                    "103": 1,
+                    "104": 1,
+                    "105": 1,
+                    "106": 1,
+                    "107": 1,
+                    "108": 1,
+                    "109": 1,
+                    "110": 1,
+                    "111": 1,
+                    "112": 1,
+                    "113": 1,
+                    "114": 1,
+                    "115": 1,
+                    "116": 1,
+                    "117": 1,
+                    "118": 1,
+                    "119": 1,
+                    "120": 1
+                },
+                "s_slots": {
+                    "501": 1,
+                    "502": 1,
+                    "503": 1,
+                    "504": 1,
+                    "505": 1,
+                    "506": 1,
+                    "507": 1,
+                    "508": 1,
+                    "509": 1,
+                    "510": 1,
+                    "511": 1,
+                    "512": 1,
+                    "513": 1,
+                    "514": 1,
+                    "515": 1,
+                    "516": 1,
+                    "517": 1,
+                    "518": 1,
+                    "519": 1,
+                    "520": 1
+                }
+            },
+            "link_id": {
+                "link_uuid": {
+                    "uuid": "e8bd9082-ebad-55b8-b110-7c21fddaf1cf"
+                }
+            },
+            "link_endpoint_ids": [
+                {
+                    "topology_id": {
+                        "context_id": {
+                            "context_uuid": {
+                                "uuid": "43813baf-195e-5da6-af20-b3d0922e71a7"
+                            }
+                        },
+                        "topology_uuid": {
+                            "uuid": "c76135e3-24a8-5e92-9bed-c3c9139359c8"
+                        }
+                    },
+                    "device_id": {
+                        "device_uuid": {
+                            "uuid": "4dbdc2d8-cbde-5e48-a3c0-5161387a58c7"
+                        }
+                    },
+                    "endpoint_uuid": {
+                        "uuid": "5eb4f156-7811-53f3-9172-8402127cf7b9"
+                    }
+                },
+                {
+                    "topology_id": {
+                        "context_id": {
+                            "context_uuid": {
+                                "uuid": "43813baf-195e-5da6-af20-b3d0922e71a7"
+                            }
+                        },
+                        "topology_uuid": {
+                            "uuid": "c76135e3-24a8-5e92-9bed-c3c9139359c8"
+                        }
+                    },
+                    "device_id": {
+                        "device_uuid": {
+                            "uuid": "68741528-2e94-5274-ab3c-fddcd8dc05ef"
+                        }
+                    },
+                    "endpoint_uuid": {
+                        "uuid": "690284c6-a8f7-54a0-82ed-19e721976221"
+                    }
+                }
+            ]
+        },
+        {
+            "name": "R2-R1",
+            "optical_details": {
+                "src_port": "101",
+                "dst_port": "111",
+                "local_peer_port": "111",
+                "remote_peer_port": "101",
+                "c_slots": {
+                    "1": 1,
+                    "2": 1,
+                    "3": 1,
+                    "4": 1,
+                    "5": 1,
+                    "6": 1,
+                    "7": 1,
+                    "8": 1,
+                    "9": 1,
+                    "10": 1,
+                    "11": 1,
+                    "12": 1,
+                    "13": 1,
+                    "14": 1,
+                    "15": 1,
+                    "16": 1,
+                    "17": 1,
+                    "18": 1,
+                    "19": 1,
+                    "20": 1
+                },
+                "l_slots": {
+                    "101": 1,
+                    "102": 1,
+                    "103": 1,
+                    "104": 1,
+                    "105": 1,
+                    "106": 1,
+                    "107": 1,
+                    "108": 1,
+                    "109": 1,
+                    "110": 1,
+                    "111": 1,
+                    "112": 1,
+                    "113": 1,
+                    "114": 1,
+                    "115": 1,
+                    "116": 1,
+                    "117": 1,
+                    "118": 1,
+                    "119": 1,
+                    "120": 1
+                },
+                "s_slots": {
+                    "501": 1,
+                    "502": 1,
+                    "503": 1,
+                    "504": 1,
+                    "505": 1,
+                    "506": 1,
+                    "507": 1,
+                    "508": 1,
+                    "509": 1,
+                    "510": 1,
+                    "511": 1,
+                    "512": 1,
+                    "513": 1,
+                    "514": 1,
+                    "515": 1,
+                    "516": 1,
+                    "517": 1,
+                    "518": 1,
+                    "519": 1,
+                    "520": 1
+                }
+            },
+            "link_id": {
+                "link_uuid": {
+                    "uuid": "eae23f48-40de-5aae-b3d1-fa3cda231678"
+                }
+            },
+            "link_endpoint_ids": [
+                {
+                    "topology_id": {
+                        "context_id": {
+                            "context_uuid": {
+                                "uuid": "43813baf-195e-5da6-af20-b3d0922e71a7"
+                            }
+                        },
+                        "topology_uuid": {
+                            "uuid": "c76135e3-24a8-5e92-9bed-c3c9139359c8"
+                        }
+                    },
+                    "device_id": {
+                        "device_uuid": {
+                            "uuid": "68741528-2e94-5274-ab3c-fddcd8dc05ef"
+                        }
+                    },
+                    "endpoint_uuid": {
+                        "uuid": "4255273d-5038-512d-9838-d5dd921cb858"
+                    }
+                },
+                {
+                    "topology_id": {
+                        "context_id": {
+                            "context_uuid": {
+                                "uuid": "43813baf-195e-5da6-af20-b3d0922e71a7"
+                            }
+                        },
+                        "topology_uuid": {
+                            "uuid": "c76135e3-24a8-5e92-9bed-c3c9139359c8"
+                        }
+                    },
+                    "device_id": {
+                        "device_uuid": {
+                            "uuid": "c944aaeb-bbdf-5f2d-b31c-8cc8903045b6"
+                        }
+                    },
+                    "endpoint_uuid": {
+                        "uuid": "f45593bb-41b1-50af-8944-524212ca012a"
+                    }
+                }
+            ]
+        },
+        {
+            "name": "T2.1-R2",
+            "optical_details": {
+                "src_port": "6",
+                "dst_port": "12",
+                "local_peer_port": "6",
+                "remote_peer_port": "2",
+                "c_slots": {
+                    "1": 1,
+                    "2": 1,
+                    "3": 1,
+                    "4": 1,
+                    "5": 1,
+                    "6": 1,
+                    "7": 1,
+                    "8": 1,
+                    "9": 1,
+                    "10": 1,
+                    "11": 1,
+                    "12": 1,
+                    "13": 1,
+                    "14": 1,
+                    "15": 1,
+                    "16": 1,
+                    "17": 1,
+                    "18": 1,
+                    "19": 1,
+                    "20": 1
+                },
+                "l_slots": {
+                    "101": 1,
+                    "102": 1,
+                    "103": 1,
+                    "104": 1,
+                    "105": 1,
+                    "106": 1,
+                    "107": 1,
+                    "108": 1,
+                    "109": 1,
+                    "110": 1,
+                    "111": 1,
+                    "112": 1,
+                    "113": 1,
+                    "114": 1,
+                    "115": 1,
+                    "116": 1,
+                    "117": 1,
+                    "118": 1,
+                    "119": 1,
+                    "120": 1
+                },
+                "s_slots": {
+                    "501": 1,
+                    "502": 1,
+                    "503": 1,
+                    "504": 1,
+                    "505": 1,
+                    "506": 1,
+                    "507": 1,
+                    "508": 1,
+                    "509": 1,
+                    "510": 1,
+                    "511": 1,
+                    "512": 1,
+                    "513": 1,
+                    "514": 1,
+                    "515": 1,
+                    "516": 1,
+                    "517": 1,
+                    "518": 1,
+                    "519": 1,
+                    "520": 1
+                }
+            },
+            "link_id": {
+                "link_uuid": {
+                    "uuid": "ebb2ca0f-d4c1-51c4-ab41-dceea90f811f"
+                }
+            },
+            "link_endpoint_ids": [
+                {
+                    "topology_id": {
+                        "context_id": {
+                            "context_uuid": {
+                                "uuid": "43813baf-195e-5da6-af20-b3d0922e71a7"
+                            }
+                        },
+                        "topology_uuid": {
+                            "uuid": "c76135e3-24a8-5e92-9bed-c3c9139359c8"
+                        }
+                    },
+                    "device_id": {
+                        "device_uuid": {
+                            "uuid": "c944aaeb-bbdf-5f2d-b31c-8cc8903045b6"
+                        }
+                    },
+                    "endpoint_uuid": {
+                        "uuid": "1b9f85aa-8cc9-5b9d-99dc-8f0eec714d67"
+                    }
+                },
+                {
+                    "topology_id": {
+                        "context_id": {
+                            "context_uuid": {
+                                "uuid": "43813baf-195e-5da6-af20-b3d0922e71a7"
+                            }
+                        },
+                        "topology_uuid": {
+                            "uuid": "c76135e3-24a8-5e92-9bed-c3c9139359c8"
+                        }
+                    },
+                    "device_id": {
+                        "device_uuid": {
+                            "uuid": "87d74166-65e3-595e-b643-122b4fd0303f"
+                        }
+                    },
+                    "endpoint_uuid": {
+                        "uuid": "61fd51ea-9896-5528-bcf3-3202a7668efb"
+                    }
+                }
+            ]
+        },
+        {
+            "name": "T1.3-R1",
+            "optical_details": {
+                "src_port": "1",
+                "dst_port": "14",
+                "local_peer_port": "1",
+                "remote_peer_port": "4",
+                "c_slots": {
+                    "1": 1,
+                    "2": 1,
+                    "3": 1,
+                    "4": 1,
+                    "5": 1,
+                    "6": 1,
+                    "7": 1,
+                    "8": 1,
+                    "9": 1,
+                    "10": 1,
+                    "11": 1,
+                    "12": 1,
+                    "13": 1,
+                    "14": 1,
+                    "15": 1,
+                    "16": 1,
+                    "17": 1,
+                    "18": 1,
+                    "19": 1,
+                    "20": 1
+                },
+                "l_slots": {
+                    "101": 1,
+                    "102": 1,
+                    "103": 1,
+                    "104": 1,
+                    "105": 1,
+                    "106": 1,
+                    "107": 1,
+                    "108": 1,
+                    "109": 1,
+                    "110": 1,
+                    "111": 1,
+                    "112": 1,
+                    "113": 1,
+                    "114": 1,
+                    "115": 1,
+                    "116": 1,
+                    "117": 1,
+                    "118": 1,
+                    "119": 1,
+                    "120": 1
+                },
+                "s_slots": {
+                    "501": 1,
+                    "502": 1,
+                    "503": 1,
+                    "504": 1,
+                    "505": 1,
+                    "506": 1,
+                    "507": 1,
+                    "508": 1,
+                    "509": 1,
+                    "510": 1,
+                    "511": 1,
+                    "512": 1,
+                    "513": 1,
+                    "514": 1,
+                    "515": 1,
+                    "516": 1,
+                    "517": 1,
+                    "518": 1,
+                    "519": 1,
+                    "520": 1
+                }
+            },
+            "link_id": {
+                "link_uuid": {
+                    "uuid": "f79a817c-a6a0-55d5-9398-a582a9835be9"
+                }
+            },
+            "link_endpoint_ids": [
+                {
+                    "topology_id": {
+                        "context_id": {
+                            "context_uuid": {
+                                "uuid": "43813baf-195e-5da6-af20-b3d0922e71a7"
+                            }
+                        },
+                        "topology_uuid": {
+                            "uuid": "c76135e3-24a8-5e92-9bed-c3c9139359c8"
+                        }
+                    },
+                    "device_id": {
+                        "device_uuid": {
+                            "uuid": "68741528-2e94-5274-ab3c-fddcd8dc05ef"
+                        }
+                    },
+                    "endpoint_uuid": {
+                        "uuid": "dad62073-9e4f-5b05-947d-571e6c3a6068"
+                    }
+                },
+                {
+                    "topology_id": {
+                        "context_id": {
+                            "context_uuid": {
+                                "uuid": "43813baf-195e-5da6-af20-b3d0922e71a7"
+                            }
+                        },
+                        "topology_uuid": {
+                            "uuid": "c76135e3-24a8-5e92-9bed-c3c9139359c8"
+                        }
+                    },
+                    "device_id": {
+                        "device_uuid": {
+                            "uuid": "cf618e18-c0a1-58c4-9827-943a2c0523d6"
+                        }
+                    },
+                    "endpoint_uuid": {
+                        "uuid": "dcaae3e3-42c5-50b5-bafb-d3097d567d09"
+                    }
+                }
+            ]
+        }
+    ]
+}
\ No newline at end of file
diff --git a/src/common/DeviceTypes.py b/src/common/DeviceTypes.py
index 23ebe19d681bd0ba774c8f3f4435c233369d0e28..6f003042c953ae52827eef8c05fde5b7e71d570a 100644
--- a/src/common/DeviceTypes.py
+++ b/src/common/DeviceTypes.py
@@ -48,6 +48,7 @@ class DeviceTypeEnum(Enum):
     PACKET_SWITCH                   = 'packet-switch'
     XR_CONSTELLATION                = 'xr-constellation'
     QKD_NODE                        = 'qkd-node'
+    OPEN_ROADM                      = 'openroadm'
 
     # ETSI TeraFlowSDN controller
     TERAFLOWSDN_CONTROLLER          = 'teraflowsdn'
diff --git a/src/context/service/database/OpticalConfig.py b/src/context/service/database/OpticalConfig.py
index 33233df6c64759306a0710f4a8a9663555f268d7..d502a0a43680a908664a1c8377b576d914b63240 100644
--- a/src/context/service/database/OpticalConfig.py
+++ b/src/context/service/database/OpticalConfig.py
@@ -165,7 +165,10 @@ def set_opticalconfig(db_engine : Engine, request : OpticalConfig):
                     "roadm_uuid":roadm_get_uuid(device_id),
                     "opticalconfig_uuid":opticalconfig_uuid,
                 })
+            if    config_type == DeviceTypeEnum.OPEN_ROADM._value_: 
+                LOGGER.info(f"open_roadm")
                 
+                 
                    
         OpticalConfig_data.append(
            {
diff --git a/src/device/service/drivers/oc_driver/templates/descovery_tool/roadms.py b/src/device/service/drivers/oc_driver/templates/descovery_tool/roadms.py
index d638c903a22a83c34299cc1bf827eb0dd58342ca..a1ef517b6db5f2f6bf7035f8235c034c494ff5b8 100644
--- a/src/device/service/drivers/oc_driver/templates/descovery_tool/roadms.py
+++ b/src/device/service/drivers/oc_driver/templates/descovery_tool/roadms.py
@@ -253,8 +253,9 @@ def extract_roadm_circuits_pack (xml_data:str):
                         port_info["port_name"]=port_name.text
                     if port_qual is not None :
                         port_info["port_qual"]=port_qual.text
-                    if port_info["port_qual"] == 'roadm-external':
-                       circuit_ports.append(port_info)            
+                    circuit_ports.append(port_info)      
+                    # if port_info["port_qual"] == 'roadm-external':
+                    #    circuit_ports.append(port_info)            
             if (circuit_name is not None):
                 circuit_info["circuit_name"]=circuit_name.text
             if (circuit_type is not None):
diff --git a/src/service/service/tools/OpticalTools.py b/src/service/service/tools/OpticalTools.py
index 7b3736a3a47e92e6a9bc6e4f7d396755dfcbd37b..52bda1d5ef4fb1a89dac91830ef876ed4059c8b3 100644
--- a/src/service/service/tools/OpticalTools.py
+++ b/src/service/service/tools/OpticalTools.py
@@ -66,11 +66,11 @@ def get_optical_controller_base_url() -> str:
     return base_url
 
 opticalcontrollers_url = find_environment_variables([
-    VAR_NAME_OPTICAL_CONTROLLER_HOST,
-    VAR_NAME_OPTICAL_CONTROLLER_PORT,
+    VAR_NAME_OPTICAL_CTRL_HOST,
+    VAR_NAME_OPTICAL_CTRL_PORT,
 ])
-OPTICAL_IP   = opticalcontrollers_url.get(VAR_NAME_OPTICAL_CONTROLLER_HOST)
-OPTICAL_PORT = opticalcontrollers_url.get(VAR_NAME_OPTICAL_CONTROLLER_PORT)
+OPTICAL_IP   = opticalcontrollers_url.get(VAR_NAME_OPTICAL_CTRL_HOST)
+OPTICAL_PORT = opticalcontrollers_url.get(VAR_NAME_OPTICAL_CTRL_PORT)
 
 
 def get_uuids_from_names(devices: List[Device], device_name: str, port_name: str):
@@ -162,7 +162,7 @@ def get_optical_band(idx) -> str:
 def delete_lightpath( src, dst, bitrate, ob_id,delete_band,flow_id=None) -> str:
     reply = "200"
     delete_band=1 if delete_band else 0
-    if not testing:
+    if not TESTING:
         urlx=None
         if flow_id is not None:
            urlx = "http://{}:{}/OpticalTFS/DelFlexLightpath/{}/{}/{}/{}/{}/{}".format(OPTICAL_IP, OPTICAL_PORT, src, dst, bitrate, ob_id,delete_band,flow_id)
@@ -178,7 +178,7 @@ def delete_lightpath( src, dst, bitrate, ob_id,delete_band,flow_id=None) -> str:
 
 def DelFlexLightpath (flow_id,src,dst,bitrate,o_band_id):
     reply = "200"
-    if not testing:
+    if not TESTING:
         urlx = "http://{}:{}/OpticalTFS/DelFlexLightpath/{}/{}/{}/{}/{}".format(OPTICAL_IP, OPTICAL_PORT, flow_id, src, dst, bitrate,o_band_id)
 
         headers = {"Content-Type": "application/json"}
diff --git a/src/tests/ofc24/or/openroadm4deg.tar b/src/tests/ofc24/or/openroadm4deg.tar
new file mode 100644
index 0000000000000000000000000000000000000000..100b7d038d5fd6a162c50e3fa2096e06752f12ed
Binary files /dev/null and b/src/tests/ofc24/or/openroadm4deg.tar differ
diff --git a/test.py b/test.py
index eab2d07cd678a7b4f1792c5281ce5cea0854044f..a96de8a65ffd39a6ecce0a87a9b783c107bd306c 100644
--- a/test.py
+++ b/test.py
@@ -6,166 +6,135 @@ from typing import Optional, Union
 from uuid import UUID, uuid4, uuid5
 import logging
 
+create_mc_err= '''
+ <config xmlns="urn:ietf:params:xml:ns:netconf:base:1.0">
+<org-openroadm-device xmlns="http://org/openroadm/device" xmlns:openROADM-if="http://org/openroadm/interfaces">
+  <interface>
+    <name>MC-TTP-DEG1-RX-193.3</name>
+    <description>Media-Channel-TTP-193.3THz-degree-1-in</description>
+    <type>openROADM-if:mediaChannelTrailTerminationPoint</type>
+    <administrative-state>inService</administrative-state>
+    <supporting-circuit-pack-name>DEG1-AMPRX</supporting-circuit-pack-name>
+    <supporting-port>DEG1-AMPRX-IN</supporting-port>
+    <supporting-interface-list>OMS-DEG1-TTP-RX</supporting-interface-list>
+    <mc-ttp xmlns="http://org/openroadm/media-channel-interfaces">
+      <min-freq>193.25</min-freq>
+      <max-freq>193.35</max-freq>
+    </mc-ttp>
+  </interface>
+  <interface>
+    <name>MC-TTP-DEG1-TX-193.3</name>
+    <description>Media-Channel-TTP-193.3THz-degree-1-out</description>
+    <type>openROADM-if:mediaChannelTrailTerminationPoint</type>
+    <administrative-state>inService</administrative-state>
+    <supporting-circuit-pack-name>DEG1-AMPTX</supporting-circuit-pack-name>
+    <supporting-port>DEG1-AMPTX-OUT</supporting-port>
+    <supporting-interface-list>OMS-DEG1-TTP-TX</supporting-interface-list>
+    <mc-ttp xmlns="http://org/openroadm/media-channel-interfaces">
+      <min-freq>193.25</min-freq>
+      <max-freq>193.35</max-freq>
+    </mc-ttp>
+  </interface>
+</org-openroadm-device>
 
-create_media='''
-<config xmlns="urn:ietf:params:xml:ns:netconf:base:1.0"> 
- <wavelength-router xmlns="http://openconfig.net/yang/wavelength-router">    
-   <media-channels>      
-     <channel operation="create">        
-       <index>2</index>        
-       <config>          
-         <name>C_BAND</name>          
-         <optical-band-parent xmlns="http://flex-scale-project.eu/yang/flex-scale-mg-on">1</optical-band-parent>          
-         <index>2</index>          
-         <lower-frequency>192006250</lower-frequency>          
-         <upper-frequency>192106250</upper-frequency>        
-       </config>        
-       <source>          
-        <config>            
-         <port-name>port-1-in</port-name>         
-        </config>        
-       </source>      
-      </channel>    
-    </media-channels>  
-  </wavelength-router>
-</config>
-'''
 
-delete_media_channel='''
-<config xmlns="urn:ietf:params:xml:ns:netconf:base:1.0">  
-  <wavelength-router xmlns="http://openconfig.net/yang/wavelength-router">  
-   <media-channels>      
-     <channel operation="delete">        
-      <index>1</index>        
-      <config>          
-        <index>1</index>        
-      </config>      
-     </channel>    
-   </media-channels>  
-  </wavelength-router>
 </config>
-'''
 
-delete_optical_band= '''
-<config xmlns="urn:ietf:params:xml:ns:netconf:base:1.0"> 
- <wavelength-router xmlns="http://openconfig.net/yang/wavelength-router">   
-   <optical-bands xmlns="http://flex-scale-project.eu/yang/flex-scale-mg-on">     
-      <optical-band operation="delete">      
-        <index>1</index>        
-        <config>          
-          <index>1</index>   
-        </config>      
-      </optical-band>    
-   </optical-bands>  
- </wavelength-router>
-</config>
 '''
 
-edit_optical_channel= '''
-<config xmlns="urn:ietf:params:xml:ns:netconf:base:1.0">  
-    <components xmlns="http://openconfig.net/yang/platform">   
-    <component>      
-      <name>channel-7</name>     
-      <config>        
-        <name>channel-7</name>      
-      </config>      
-      <optical-channel xmlns="http://openconfig.net/yang/terminal-device">      
-        <config>          
-          <target-output-power>300</target-output-power>          
-          <frequency>3400000</frequency>          
-          <operational-mode>1</operational-mode>   
-        </config>      
-      </optical-channel>    
-    </component>  
-    </components> 
-  <terminal-device xmlns="http://openconfig.net/yang/terminal-device">   
-    <logical-channels>      
-      <channel>        
-        <index>7</index>        
-        <config>          
-          <index>7</index>          
-          <admin-state>ENABLED</admin-state>        
-        </config>      
-      </channel>   
-    </logical-channels>  
-  </terminal-device>
+create_srg = '''
+ <config xmlns="urn:ietf:params:xml:ns:netconf:base:1.0">
+ <org-openroadm-device xmlns="http://org/openroadm/device">
+  <interface>
+     <name>SRG1-PP01-TX-193.3</name>
+     <description>Network-Media-Channel-CTP-193.3THz-srg-1-out</description>
+     <type>openROADM-if:networkMediaChannelConnectionTerminationPoint</type>
+     <administrative-state>inService</administrative-state>
+     <supporting-circuit-pack-name>SRG1-WSS</supporting-circuit-pack-name>
+     <supporting-port>SRG1-OUT1</supporting-port>
+     <nmc-ctp xmlns="http://org/openroadm/network-media-channel-interfaces">
+        <frequency>193.30</frequency>
+        <width>100</width>
+     </nmc-ctp>
+  </interface>
+  <interface>
+     <name>SRG1-PP01-RX-193.3</name>
+     <description>Network-Media-Channel-CTP-193.3THz-srg-1-in</description>
+     <type>openROADM-if:networkMediaChannelConnectionTerminationPoint</type>
+     <administrative-state>inService</administrative-state>
+     <supporting-circuit-pack-name>SRG1-WSS</supporting-circuit-pack-name>
+     <supporting-port>SRG1-IN1</supporting-port>
+     <nmc-ctp xmlns="http://org/openroadm/network-media-channel-interfaces">
+        <frequency>193.30</frequency>
+        <width>100</width>
+     </nmc-ctp>
+  </interface>
+</org-openroadm-device>
+
+
+
 </config>
 '''
+create_nmc = '''
+ <config xmlns="urn:ietf:params:xml:ns:netconf:base:1.0">
+   <org-openroadm-device xmlns="http://org/openroadm/device">
+  <interface>
+     <name>NMC-CTP-DEG1-TX-193.3</name>
+     <description>Network-Media-Channel-CTP-193.3THz-degree-1-out</description>
+     <type>openROADM-if:networkMediaChannelConnectionTerminationPoint</type>
+     <administrative-state>inService</administrative-state>
+     <supporting-circuit-pack-name>DEG1-AMPTX</supporting-circuit-pack-name>
+     <supporting-interface-list>MC-TTP-DEG1-TX-193.3</supporting-interface-list>
+     <supporting-port>DEG1-AMPTX-OUT</supporting-port>
+     <nmc-ctp xmlns="http://org/openroadm/network-media-channel-interfaces">
+        <frequency>193.30</frequency>
+        <width>100</width>
+     </nmc-ctp>
+  </interface>
+  <interface>
+     <name>NMC-CTP-DEG1-RX-193.3</name>
+     <description>Network-Media-Channel-CTP-193.3THz-degree-1-in</description>
+     <type>openROADM-if:networkMediaChannelConnectionTerminationPoint</type>
+     <administrative-state>inService</administrative-state>
+     <supporting-circuit-pack-name>DEG1-AMPRX</supporting-circuit-pack-name>
+     <supporting-port>DEG1-AMPRX-IN</supporting-port>
+     <supporting-interface-list>MC-TTP-DEG1-RX-193.3</supporting-interface-list>
+     <nmc-ctp xmlns="http://org/openroadm/network-media-channel-interfaces">
+        <frequency>193.30</frequency>
+        <width>100</width>
+     </nmc-ctp>
+  </interface>
+</org-openroadm-device>
 
+</config>
 
-def extract_channel_xmlns (data_xml:str,is_opticalband:bool):
-    xml_bytes = data_xml.encode("utf-8")
-    root = ET.fromstring(xml_bytes) 
- 
-    namespace=None
-    channels=None
-  
-    if (not is_opticalband) :
-      
-        optical_channel_namespaces = {
-        'ns': 'urn:ietf:params:xml:ns:netconf:base:1.0',
-          'oc': 'http://openconfig.net/yang/platform',
-        }
-       
-        channels= root.find('.//{*}optical-channel',optical_channel_namespaces)
-        if channels is not None :
-          optical_channel_namespace = channels.tag.replace("optical-channel", "")
-          namespace=optical_channel_namespace.replace("{", "").replace("}", "")
-    else :       
-        optical_band_namespaces= {
-          'oc':'http://openconfig.net/yang/wavelength-router'
-        }
-        
-        channels= root.find('.//{*}optical-bands',optical_band_namespaces)
-        if channels is not None: 
-          optical_channel_namespace = channels.tag.replace("optical-bands", "")
-          namespace=optical_channel_namespace.replace("{", "").replace("}", "")
-        
-   
-    return namespace
-  
-def extract_roadm_ports (xml_data:str):
-  
-    ports =[]
-    pattern2=r'\bMG_ON_PORT_TYPE'
-    pattern = r'\bMG_ON_OPTICAL_PORT_WAVEBAND\b'
-    xml_bytes = xml_data.encode("utf-8")
-    root = ET.fromstring(xml_bytes)
-
-    
+'''
 
-    namespace = {'oc': 'http://openconfig.net/yang/platform'}
-    ports = []
-    components = root.findall('.//oc:component',namespace)
-    #print(f"component {components}")
-    
-    
-    for component  in components:
-       
-        properties = component.find(".//oc:properties",namespace)
-       
-        if (properties is not None):
-            for property in properties :
-                value = property.find(".//oc:value",namespace)
-                name= property.find('.//oc:name',namespace)
-                if (re.search(pattern2,name.text)):
-                   value = property.find(".//oc:value",namespace)
-                   name_element= component.find(".//oc:name",namespace)
-                   print('value',value.text)
-                   ports.append((name_element.text,value.text))
-                # if (re.search(pattern2,value.text)):
-                #     #print('value',value.text)
-                #     name_element= component.find(".//oc:name",namespace)
-                #     ports.append(name_element.text)
-    return ports                
 
+create_connec= '''
+ <config xmlns="urn:ietf:params:xml:ns:netconf:base:1.0">
+    <org-openroadm-device xmlns="http://org/openroadm/device">
+      <roadm-connections>
+        <connection-name>NMC-CTP-DEG1-RX-193.3-to-SRG1-TX-193.3</connection-name>
+        <opticalControlMode>off</opticalControlMode>
+        <target-output-power>0</target-output-power>
+        <source>
+          <src-if>NMC-CTP-DEG1-RX-193.3</src-if>
+        </source>
+        <destination>
+          <dst-if>SRG1-PP01-TX-193.3</dst-if>
+        </destination>
+      </roadm-connections>
+    </org-openroadm-device>
 
+</config>
+'''
 
 device = {
-    'host': '172.17.254.22',        # IP address or hostname of the remote machine
-    'port': 2022,                # SSH port (default: 22)
-    'username': 'admin',    # SSH username
-    'password': 'admin',    # SSH password
+    'host':'172.17.0.2',        # IP address or hostname of the remote machine  '172.17.0.2'
+    'port': 830,                # SSH port (default: 22)
+    'username': 'openroadm',    # SSH username
+    'password': 'openroadm',    # SSH password
     'device_params': {'name': 'default'},
      'hostkey_verify':False,
      "allow_agent":False
@@ -183,7 +152,7 @@ if __name__ == '__main__':
                           ,hostkey_verify=device['hostkey_verify']
                           ,allow_agent=device['allow_agent']
                           ,look_for_keys=device['look_for_keys']) as m :
-         #edit_result = m.edit_config (target="running",config=delete_media_channel )
+         edit_result = m.edit_config (target="running",config=create_connec )
          result = m.get_config (source="running").data_xml
          #ports = extract_roadm_ports(result)
         # optical_band_namespaces="http://flex-scale-project.eu/yang/flex-scale-mg-on"
@@ -193,13 +162,13 @@ if __name__ == '__main__':
         # road_info= extract_openroadm_info(result)
         # circuits=extract_roadm_circuits_pack(result)
          #print (f'edit result {edit_result}')
-         print(f"result {result}")
+         #print(f"result {result}")
          #print(f"media_cahnnels {obj}")
          #print(f"optical_bands {obj1}")
 
         #print(f"circuits {circuits}")
-        # with open("context.log","w") as f:
-        #      print (result,file=f)
+         with open("xml.log","w") as f:
+              print (result,file=f)