Resolve "Implement Optical component"

Closes #106 (closed)

Merge request reports

Loading
+29.6 KiB
Loading image diff...
+39 −0
Changes for src/opticalcontroller/json_files/nodes.json: 39 added lines, 0 removed lines.
Original line number Diff line number Diff line
{
    "R1":{
        "id":0,
        "ip":"10.30.2.207",
        "port":"50001",
        "type":"OC-ROADM",
        "driver": "OpticalOC"
    },

    "R2":{
        "id":1,
        "ip":"10.30.2.208",
        "port":"50001",
        "type":"OC-ROADM",
        "driver": "OpticalOC"
    },

    "R3":{
        "id":2,
        "ip":"10.30.2.209",
        "port":"50001",
        "type":"OC-ROADM",
        "driver": "OpticalOC"
    },
    "T1":{
        "id":3,
        "ip":"10.30.2.210",
        "port":"50001",
        "type":"OC-TP",
        "driver": "OpticalOC"
    },
    "T2":{
        "id":4,
        "ip":"10.30.2.211",
        "port":"50001",
        "type":"OC-TP",
        "driver": "OpticalOC"
    }
}
+486 −0
Changes for src/opticalcontroller/json_files/optical_TFSworking.json: 486 added lines, 0 removed lines.
Original line number Diff line number Diff line
{
  "R1-R2": {
    "length": 80,
    "source": "d1",
    "target": "d1",
    "fibers": {
      "d1-1": {
        "length": 80,
        "src_port": "3",
        "dst_port": "14",
        "local_peer_port": "13",
        "remote_peer_port": "4",
        "c_slots": [
          1,
          2,
          3,
          4,
          5,
          6,
          7,
          8,
          9,
          10,
          11,
          12,
          13,
          14,
          15,
          16,
          17,
          18,
          19,
          20
        ],
        "l_slots": [
          101,
          102,
          103,
          104,
          105,
          106,
          107,
          108,
          109,
          110,
          111,
          112,
          113,
          114,
          115,
          116,
          117,
          118,
          119,
          120
        ],
        "s_slots": [
          501,
          502,
          503,
          504,
          505,
          506,
          507,
          508,
          509,
          510,
          511,
          512,
          513,
          514,
          515,
          516,
          517,
          518,
          519,
          520
        ]
      }
    }
  },
  "R2-R1": {
    "length": 80,
    "source": "d1",
    "target": "d1",
    "fibers": {
      "d1-1": {
        "length": 80,
        "src_port": "4",
        "dst_port": "13",
        "local_peer_port": "14",
        "remote_peer_port": "3",
        "c_slots": [
          1,
          2,
          3,
          4,
          5,
          6,
          7,
          8,
          9,
          10,
          11,
          12,
          13,
          14,
          15,
          16,
          17,
          18,
          19,
          20
        ],
        "l_slots": [
          101,
          102,
          103,
          104,
          105,
          106,
          107,
          108,
          109,
          110,
          111,
          112,
          113,
          114,
          115,
          116,
          117,
          118,
          119,
          120
        ],
        "s_slots": [
          501,
          502,
          503,
          504,
          505,
          506,
          507,
          508,
          509,
          510,
          511,
          512,
          513,
          514,
          515,
          516,
          517,
          518,
          519,
          520
        ]
      }
    }
  },
  "T1-R1": {
    "length": 0,
    "source": "muxT",
    "target": "srgR",
    "fibers": {
      "M1": {
        "length": 0,
        "src_port": "1",
        "dst_port": "12",
        "local_peer_port": "1",
        "remote_peer_port": "2",
        "used": false,
        "c_slots": [
          1,
          2,
          3,
          4,
          5,
          6,
          7,
          8,
          9,
          10,
          11,
          12,
          13,
          14,
          15,
          16,
          17,
          18,
          19,
          20
        ],
        "l_slots": [
          101,
          102,
          103,
          104,
          105,
          106,
          107,
          108,
          109,
          110,
          111,
          112,
          113,
          114,
          115,
          116,
          117,
          118,
          119,
          120
        ],
        "s_slots": [
          501,
          502,
          503,
          504,
          505,
          506,
          507,
          508,
          509,
          510,
          511,
          512,
          513,
          514,
          515,
          516,
          517,
          518,
          519,
          520
        ]
      }
    }
  },
  "R1-T1": {
    "length": 0,
    "source": "srgT",
    "target": "muxR",
    "fibers": {
      "S1": {
        "length": 0,
        "src_port": "2",
        "dst_port": "1",
        "local_peer_port": "12",
        "remote_peer_port": "1",
        "used": false,
        "c_slots": [
          1,
          2,
          3,
          4,
          5,
          6,
          7,
          8,
          9,
          10,
          11,
          12,
          13,
          14,
          15,
          16,
          17,
          18,
          19,
          20
        ],
        "l_slots": [
          101,
          102,
          103,
          104,
          105,
          106,
          107,
          108,
          109,
          110,
          111,
          112,
          113,
          114,
          115,
          116,
          117,
          118,
          119,
          120
        ],
        "s_slots": [
          501,
          502,
          503,
          504,
          505,
          506,
          507,
          508,
          509,
          510,
          511,
          512,
          513,
          514,
          515,
          516,
          517,
          518,
          519,
          520
        ]
      }
    }
  },
  "T2-R2": {
    "length": 0,
    "source": "muxT",
    "target": "srgR",
    "fibers": {
      "M1": {
        "length": 0,
        "src_port": "6",
        "dst_port": "15",
        "local_peer_port": "6",
        "remote_peer_port": "5",
        "used": false,
        "c_slots": [
          1,
          2,
          3,
          4,
          5,
          6,
          7,
          8,
          9,
          10,
          11,
          12,
          13,
          14,
          15,
          16,
          17,
          18,
          19,
          20
        ],
        "l_slots": [
          101,
          102,
          103,
          104,
          105,
          106,
          107,
          108,
          109,
          110,
          111,
          112,
          113,
          114,
          115,
          116,
          117,
          118,
          119,
          120
        ],
        "s_slots": [
          501,
          502,
          503,
          504,
          505,
          506,
          507,
          508,
          509,
          510,
          511,
          512,
          513,
          514,
          515,
          516,
          517,
          518,
          519,
          520
        ]
      }
    }
  },
  "R2-T2": {
    "length": 0,
    "source": "srgT",
    "target": "muxR",
    "fibers": {
      "S1": {
        "length": 0,
        "src_port": "5",
        "dst_port": "6",
        "local_peer_port": "15",
        "remote_peer_port": "6",
        "used": false,
        "c_slots": [
          1,
          2,
          3,
          4,
          5,
          6,
          7,
          8,
          9,
          10,
          11,
          12,
          13,
          14,
          15,
          16,
          17,
          18,
          19,
          20
        ],
        "l_slots": [
          101,
          102,
          103,
          104,
          105,
          106,
          107,
          108,
          109,
          110,
          111,
          112,
          113,
          114,
          115,
          116,
          117,
          118,
          119,
          120
        ],
        "s_slots": [
          501,
          502,
          503,
          504,
          505,
          506,
          507,
          508,
          509,
          510,
          511,
          512,
          513,
          514,
          515,
          516,
          517,
          518,
          519,
          520
        ]
      }
    }
  }
}
+1836 −0

File added.

Preview size limit exceeded, changes collapsed.

+1286 −0
Changes for src/opticalcontroller/json_files/tfs.json: 1286 added lines, 0 removed lines.
Original line number Diff line number Diff line
{
	"links": [
		{
			"link_id": {
				"link_uuid": {
					"uuid": "T1->R1"
				}
			},
			"link_endpoint_ids": [
				{
					"device_id": {
						"device_uuid": {
							"uuid": "T1"
						}
					},
					"endpoint_uuid": {
						"uuid": "1"
					}
				},
				{
					"device_id": {
						"device_uuid": {
							"uuid": "R1"
						}
					},
					"endpoint_uuid": {
						"uuid": "12"
					}
				}
			],
			"optical_link": {
				"name": "T1-R1",
				"details": {
					"length": 0,
					"source": "muxT",
					"target": "srgR",
					"fibers": [
						{
							"ID": "M1",
							"length": 0,
							"src_port": "1",
							"dst_port": "2001",
							"local_peer_port": "1",
							"remote_peer_port": "1001",
							"used": false,
							"c_slots": [
								1,
								2,
								3,
								4,
								5,
								6,
								7,
								8,
								9,
								10,
								11,
								12,
								13,
								14,
								15,
								16,
								17,
								18,
								19,
								20
							],
							"l_slots": [
								101,
								102,
								103,
								104,
								105,
								106,
								107,
								108,
								109,
								110,
								111,
								112,
								113,
								114,
								115,
								116,
								117,
								118,
								119,
								120
							],
							"s_slots": [
								501,
								502,
								503,
								504,
								505,
								506,
								507,
								508,
								509,
								510,
								511,
								512,
								513,
								514,
								515,
								516,
								517,
								518,
								519,
								520
							]
						},
						{
							"ID": "M2",
							"length": 0,
							"src_port": "2",
							"dst_port": "2002",
							"local_peer_port": "2",
							"remote_peer_port": "1002",
							"used": false,
							"c_slots": [
								1,
								2,
								3,
								4,
								5,
								6,
								7,
								8,
								9,
								10,
								11,
								12,
								13,
								14,
								15,
								16,
								17,
								18,
								19,
								20
							],
							"l_slots": [
								101,
								102,
								103,
								104,
								105,
								106,
								107,
								108,
								109,
								110,
								111,
								112,
								113,
								114,
								115,
								116,
								117,
								118,
								119,
								120
							],
							"s_slots": [
								501,
								502,
								503,
								504,
								505,
								506,
								507,
								508,
								509,
								510,
								511,
								512,
								513,
								514,
								515,
								516,
								517,
								518,
								519,
								520
							]
						},
						{
							"ID": "M3",
							"length": 0,
							"src_port": "3",
							"dst_port": "2003",
							"local_peer_port": "3",
							"remote_peer_port": "1003",
							"used": false,
							"c_slots": [
								1,
								2,
								3,
								4,
								5,
								6,
								7,
								8,
								9,
								10,
								11,
								12,
								13,
								14,
								15,
								16,
								17,
								18,
								19,
								20
							],
							"l_slots": [
								101,
								102,
								103,
								104,
								105,
								106,
								107,
								108,
								109,
								110,
								111,
								112,
								113,
								114,
								115,
								116,
								117,
								118,
								119,
								120
							],
							"s_slots": [
								501,
								502,
								503,
								504,
								505,
								506,
								507,
								508,
								509,
								510,
								511,
								512,
								513,
								514,
								515,
								516,
								517,
								518,
								519,
								520
							]
						}
					]
				}
			}
		},
		{
			"link_id": {
				"link_uuid": {
					"uuid": "R1->T1"
				}
			},
			"link_endpoint_ids": [
				{
					"device_id": {
						"device_uuid": {
							"uuid": "R1"
						}
					},
					"endpoint_uuid": {
						"uuid": "2"
					}
				},
				{
					"device_id": {
						"device_uuid": {
							"uuid": "T1"
						}
					},
					"endpoint_uuid": {
						"uuid": "1"
					}
				}
			],
            "optical_link": {
				"name": "R1-T1",
				"details": {
					"length": 0,
					"source": "srgT",
					"target": "muxT",
					"fibers": [
						{
							"ID": "M1",
							"length": 0,
							"src_port": "1001",
							"dst_port": "1",
							"local_peer_port": "2001",
							"remote_peer_port": "1",
							"used": false,
							"c_slots": [
								1,
								2,
								3,
								4,
								5,
								6,
								7,
								8,
								9,
								10,
								11,
								12,
								13,
								14,
								15,
								16,
								17,
								18,
								19,
								20
							],
							"l_slots": [
								101,
								102,
								103,
								104,
								105,
								106,
								107,
								108,
								109,
								110,
								111,
								112,
								113,
								114,
								115,
								116,
								117,
								118,
								119,
								120
							],
							"s_slots": [
								501,
								502,
								503,
								504,
								505,
								506,
								507,
								508,
								509,
								510,
								511,
								512,
								513,
								514,
								515,
								516,
								517,
								518,
								519,
								520
							]
						},
						{
							"ID": "M2",
							"length": 0,
							"src_port": "1002",
							"dst_port": "2",
							"local_peer_port": "2002",
							"remote_peer_port": "2",
							"used": false,
							"c_slots": [
								1,
								2,
								3,
								4,
								5,
								6,
								7,
								8,
								9,
								10,
								11,
								12,
								13,
								14,
								15,
								16,
								17,
								18,
								19,
								20
							],
							"l_slots": [
								101,
								102,
								103,
								104,
								105,
								106,
								107,
								108,
								109,
								110,
								111,
								112,
								113,
								114,
								115,
								116,
								117,
								118,
								119,
								120
							],
							"s_slots": [
								501,
								502,
								503,
								504,
								505,
								506,
								507,
								508,
								509,
								510,
								511,
								512,
								513,
								514,
								515,
								516,
								517,
								518,
								519,
								520
							]
						},
						{
							"ID": "M3",
							"length": 0,
							"src_port": "1003",
							"dst_port": "3",
							"local_peer_port": "2003",
							"remote_peer_port": "3",
							"used": false,
							"c_slots": [
								1,
								2,
								3,
								4,
								5,
								6,
								7,
								8,
								9,
								10,
								11,
								12,
								13,
								14,
								15,
								16,
								17,
								18,
								19,
								20
							],
							"l_slots": [
								101,
								102,
								103,
								104,
								105,
								106,
								107,
								108,
								109,
								110,
								111,
								112,
								113,
								114,
								115,
								116,
								117,
								118,
								119,
								120
							],
							"s_slots": [
								501,
								502,
								503,
								504,
								505,
								506,
								507,
								508,
								509,
								510,
								511,
								512,
								513,
								514,
								515,
								516,
								517,
								518,
								519,
								520
							]
						}
					]
				}
			}
		},
		{
			"link_id": {
				"link_uuid": {
					"uuid": "R1->R2"
				}
			},
			"link_endpoint_ids": [
				{
					"device_id": {
						"device_uuid": {
							"uuid": "R1"
						}
					},
					"endpoint_uuid": {
						"uuid": "13"
					}
				},
				{
					"device_id": {
						"device_uuid": {
							"uuid": "R2"
						}
					},
					"endpoint_uuid": {
						"uuid": "24"
					}
				}
			],
            "optical_link": {
				"name": "R1-R2",
				"details": {
					"length": 0,
					"source": "D1",
					"target": "D1",
					"fibers": [
						{
							"ID": "D11",
							"length": 0,
							"src_port": "13",
							"dst_port": "24",
							"local_peer_port": "23",
							"remote_peer_port": "14",
							"c_slots": [
								1,
								2,
								3,
								4,
								5,
								6,
								7,
								8,
								9,
								10,
								11,
								12,
								13,
								14,
								15,
								16,
								17,
								18,
								19,
								20
							],
							"l_slots": [
								101,
								102,
								103,
								104,
								105,
								106,
								107,
								108,
								109,
								110,
								111,
								112,
								113,
								114,
								115,
								116,
								117,
								118,
								119,
								120
							],
							"s_slots": [
								501,
								502,
								503,
								504,
								505,
								506,
								507,
								508,
								509,
								510,
								511,
								512,
								513,
								514,
								515,
								516,
								517,
								518,
								519,
								520
							]
						}
					]
				}
			}
		},
		{
			"link_id": {
				"link_uuid": {
					"uuid": "R2->R1"
				}
			},
			"link_endpoint_ids": [
				{
					"device_id": {
						"device_uuid": {
							"uuid": "R2"
						}
					},
					"endpoint_uuid": {
						"uuid": "14"
					}
				},
				{
					"device_id": {
						"device_uuid": {
							"uuid": "R1"
						}
					},
					"endpoint_uuid": {
						"uuid": "23"
					}
				}
			],
            "optical_link": {
				"name": "R2-R1",
				"details": {
					"length": 0,
					"source": "D1",
					"target": "D1",
					"fibers": [
						{
							"ID": "D11",
							"length": 0,
							"src_port": "14",
							"dst_port": "23",
							"local_peer_port": "24",
							"remote_peer_port": "13",
							"c_slots": [
								1,
								2,
								3,
								4,
								5,
								6,
								7,
								8,
								9,
								10,
								11,
								12,
								13,
								14,
								15,
								16,
								17,
								18,
								19,
								20
							],
							"l_slots": [
								101,
								102,
								103,
								104,
								105,
								106,
								107,
								108,
								109,
								110,
								111,
								112,
								113,
								114,
								115,
								116,
								117,
								118,
								119,
								120
							],
							"s_slots": [
								501,
								502,
								503,
								504,
								505,
								506,
								507,
								508,
								509,
								510,
								511,
								512,
								513,
								514,
								515,
								516,
								517,
								518,
								519,
								520
							]
						}
					]
				}
			}
		},
		{
			"link_id": {
				"link_uuid": {
					"uuid": "T2->R2"
				}
			},
			"link_endpoint_ids": [
				{
					"device_id": {
						"device_uuid": {
							"uuid": "T2"
						}
					},
					"endpoint_uuid": {
						"uuid": "1"
					}
				},
				{
					"device_id": {
						"device_uuid": {
							"uuid": "R2"
						}
					},
					"endpoint_uuid": {
						"uuid": "1001"
					}
				}
			],
            "optical_link": {
				"name": "T2-R2",
				"details": {
					"length": 0,
					"source": "srgT",
					"target": "muxT",
					"fibers": [
						{
							"ID": "M1",
							"length": 0,
							"src_port": "1",
							"dst_port": "1001",
							"local_peer_port": "1",
							"remote_peer_port": "2001",
							"used": false,
							"c_slots": [
								1,
								2,
								3,
								4,
								5,
								6,
								7,
								8,
								9,
								10,
								11,
								12,
								13,
								14,
								15,
								16,
								17,
								18,
								19,
								20
							],
							"l_slots": [
								101,
								102,
								103,
								104,
								105,
								106,
								107,
								108,
								109,
								110,
								111,
								112,
								113,
								114,
								115,
								116,
								117,
								118,
								119,
								120
							],
							"s_slots": [
								501,
								502,
								503,
								504,
								505,
								506,
								507,
								508,
								509,
								510,
								511,
								512,
								513,
								514,
								515,
								516,
								517,
								518,
								519,
								520
							]
						},
						{
							"ID": "M2",
							"length": 0,
							"src_port": "2",
							"dst_port": "1002",
							"local_peer_port": "2",
							"remote_peer_port": "2002",
							"used": false,
							"c_slots": [
								1,
								2,
								3,
								4,
								5,
								6,
								7,
								8,
								9,
								10,
								11,
								12,
								13,
								14,
								15,
								16,
								17,
								18,
								19,
								20
							],
							"l_slots": [
								101,
								102,
								103,
								104,
								105,
								106,
								107,
								108,
								109,
								110,
								111,
								112,
								113,
								114,
								115,
								116,
								117,
								118,
								119,
								120
							],
							"s_slots": [
								501,
								502,
								503,
								504,
								505,
								506,
								507,
								508,
								509,
								510,
								511,
								512,
								513,
								514,
								515,
								516,
								517,
								518,
								519,
								520
							]
						},
						{
							"ID": "M3",
							"length": 0,
							"src_port": "3",
							"dst_port": "1003",
							"local_peer_port": "3",
							"remote_peer_port": "2003",
							"used": false,
							"c_slots": [
								1,
								2,
								3,
								4,
								5,
								6,
								7,
								8,
								9,
								10,
								11,
								12,
								13,
								14,
								15,
								16,
								17,
								18,
								19,
								20
							],
							"l_slots": [
								101,
								102,
								103,
								104,
								105,
								106,
								107,
								108,
								109,
								110,
								111,
								112,
								113,
								114,
								115,
								116,
								117,
								118,
								119,
								120
							],
							"s_slots": [
								501,
								502,
								503,
								504,
								505,
								506,
								507,
								508,
								509,
								510,
								511,
								512,
								513,
								514,
								515,
								516,
								517,
								518,
								519,
								520
							]
						}
					]
				}
			}
		},
		{
			"link_id": {
				"link_uuid": {
					"uuid": "R2->T2"
				}
			},
			"link_endpoint_ids": [
				{
					"device_id": {
						"device_uuid": {
							"uuid": "R2"
						}
					},
					"endpoint_uuid": {
						"uuid": "5"
					}
				},
				{
					"device_id": {
						"device_uuid": {
							"uuid": "T2"
						}
					},
					"endpoint_uuid": {
						"uuid": "6"
					}
				}
			],
            "optical_link": {
				"name": "R2-T2",
				"details": {
					"length": 0,
					"source": "srgT",
					"target": "muxT",
					"fibers": [
						{
							"ID": "M1",
							"length": 0,
							"src_port": "1001",
							"dst_port": "1",
							"local_peer_port": "2001",
							"remote_peer_port": "1",
							"used": false,
							"c_slots": [
								1,
								2,
								3,
								4,
								5,
								6,
								7,
								8,
								9,
								10,
								11,
								12,
								13,
								14,
								15,
								16,
								17,
								18,
								19,
								20
							],
							"l_slots": [
								101,
								102,
								103,
								104,
								105,
								106,
								107,
								108,
								109,
								110,
								111,
								112,
								113,
								114,
								115,
								116,
								117,
								118,
								119,
								120
							],
							"s_slots": [
								501,
								502,
								503,
								504,
								505,
								506,
								507,
								508,
								509,
								510,
								511,
								512,
								513,
								514,
								515,
								516,
								517,
								518,
								519,
								520
							]
						},
						{
							"ID": "M2",
							"length": 0,
							"src_port": "1002",
							"dst_port": "2",
							"local_peer_port": "2002",
							"remote_peer_port": "2",
							"used": false,
							"c_slots": [
								1,
								2,
								3,
								4,
								5,
								6,
								7,
								8,
								9,
								10,
								11,
								12,
								13,
								14,
								15,
								16,
								17,
								18,
								19,
								20
							],
							"l_slots": [
								101,
								102,
								103,
								104,
								105,
								106,
								107,
								108,
								109,
								110,
								111,
								112,
								113,
								114,
								115,
								116,
								117,
								118,
								119,
								120
							],
							"s_slots": [
								501,
								502,
								503,
								504,
								505,
								506,
								507,
								508,
								509,
								510,
								511,
								512,
								513,
								514,
								515,
								516,
								517,
								518,
								519,
								520
							]
						},
						{
							"ID": "M3",
							"length": 0,
							"src_port": "1003",
							"dst_port": "3",
							"local_peer_port": "2003",
							"remote_peer_port": "3",
							"used": false,
							"c_slots": [
								1,
								2,
								3,
								4,
								5,
								6,
								7,
								8,
								9,
								10,
								11,
								12,
								13,
								14,
								15,
								16,
								17,
								18,
								19,
								20
							],
							"l_slots": [
								101,
								102,
								103,
								104,
								105,
								106,
								107,
								108,
								109,
								110,
								111,
								112,
								113,
								114,
								115,
								116,
								117,
								118,
								119,
								120
							],
							"s_slots": [
								501,
								502,
								503,
								504,
								505,
								506,
								507,
								508,
								509,
								510,
								511,
								512,
								513,
								514,
								515,
								516,
								517,
								518,
								519,
								520
							]
						}
					]
				}
			}
		}
	]
}
 No newline at end of file
Loading
Loading