From: Martin Skorupski Date: Mon, 30 Sep 2024 11:22:44 +0000 (+0200) Subject: Integrate an NRCellDU into the topology X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=commitdiff_plain;h=refs%2Fchanges%2F90%2F13490%2F1;p=oam.git Integrate an NRCellDU into the topology - adopt on cell level Issue-ID: OAM-418 Change-Id: If026f30b24e6976f76c5c16fd3437ffd21b1d316 Signed-off-by: Martin Skorupski --- diff --git a/code/network-generator/network_generation/model/python/nr_cell_du.py b/code/network-generator/network_generation/model/python/nr_cell_du.py index 1fea1a3..a81bafc 100644 --- a/code/network-generator/network_generation/model/python/nr_cell_du.py +++ b/code/network-generator/network_generation/model/python/nr_cell_du.py @@ -27,9 +27,6 @@ from network_generation.model.python.geo_location import ( IGeoLocation, ) from network_generation.model.python.o_ran_node import IORanNode, ORanNode -from network_generation.model.python.o_ran_termination_point import ( - ORanTerminationPoint, -) from network_generation.model.python.point import Point @@ -57,6 +54,9 @@ default_value: INrCellDu = cast( # Define an abstract O-RAN Node class class NrCellDu(ORanNode): + + _interfaces = ["cell"] + def __init__( self, data: dict[str, Any] = cast(dict[str, Any], default_value), @@ -110,14 +110,6 @@ class NrCellDu(ORanNode): def azimuth(self, value: int) -> None: self._azimuth = value - def termination_points(self) -> list[ORanTerminationPoint]: - result: list[ORanTerminationPoint] = super().termination_points() - result.append(ORanTerminationPoint({ - "name": self.name, - "type": "o-ran-sc-network:cell" - })) - return result - def to_topology_nodes(self) -> list[dict[str, Any]]: # a cell is not a node it is a Termination Point result: list[dict[str, Any]] = [] # super().to_topology_nodes()