Empty TerminationPoint list 53/12053/1
authorMartin Skorupski <martin.skorupski@highstreet-technologies.com>
Wed, 15 Nov 2023 13:26:15 +0000 (14:26 +0100)
committerMartin Skorupski <martin.skorupski@highstreet-technologies.com>
Wed, 15 Nov 2023 13:26:26 +0000 (14:26 +0100)
- type check removed

Issue-ID: OAM-390
Change-Id: If6f5cc44d6137a0b1d93f8bd8e716a42ce704519
Signed-off-by: Martin Skorupski <martin.skorupski@highstreet-technologies.com>
code/network-generator/network_generation/model/python/o_ran_node.py

index e8471ab..6a2b3cb 100644 (file)
@@ -178,12 +178,7 @@ class ORanNode(ORanObject):
     def to_topology_nodes(self) -> list[dict[str, Any]]:
         tps: list[dict[str, Any]] = []
         for tp in self.termination_points():
-            if (
-                str(type(tp))
-                == "<class 'model.python.o_ran_termination_point"
-                + ".ORanTerminationPoint'>"
-            ):
-                tps.append(tp.to_topology())
+            tps.append(tp.to_topology())
 
         result: list[dict[str, Any]] = []
         result.append(