+ @property
+ def termination_points(self) -> list[ORanTerminationPoint]:
+ result: list[ORanTerminationPoint] = super().termination_points
+ phy_tp: str = "-".join([self.name, "phy".upper()])
+ result.append({"tp-id": phy_tp, "name": phy_tp})
+ for interface in ["e2", "o1"]:
+ id:str = "-".join([self.name, interface.upper()])
+ result.append(ORanTerminationPoint({"id": id, "name":id, "supporter": phy_tp, "parent":self}))
+ return result
+
+ def to_topology_nodes(self) -> list[dict[str, dict]]:
+ result: list[dict[str, dict]] = super().to_topology_nodes()
+ # for o_ran_du in self.o_ran_dus: # TODO
+ # result.extend(o_ran_du.to_topology_nodes())
+ for o_ran_cloud_du in self.o_ran_cloud_dus:
+ result.extend(o_ran_cloud_du.to_topology_nodes())
+ return result
+
+ def to_topology_links(self) -> list[dict[str, dict]]:
+ result: list[dict[str, dict]] = super().to_topology_links()
+ # for o_ran_du in self.o_ran_dus:
+ # result.extend(o_ran_du.to_topology_links())
+ for o_ran_cloud_du in self.o_ran_cloud_dus:
+ result.extend(o_ran_cloud_du.to_topology_links())
+ return result
+