X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=code%2Fnetwork-generator%2Fmodel%2Fpython%2Fo_ran_ru.py;fp=code%2Fnetwork-generator%2Fmodel%2Fpython%2Fo_ran_ru.py;h=0ce0b90e963780b02432c2d5f92411b21a859976;hb=eb61f78711dc62a2c230602ea49f72e9e4a10978;hp=285156f074d7f20aaa6ddbec2c59e1d80dc4e90f;hpb=7103d3f21271877939dd8c57df8c8c61d5b9f504;p=oam.git diff --git a/code/network-generator/model/python/o_ran_ru.py b/code/network-generator/model/python/o_ran_ru.py index 285156f..0ce0b90 100644 --- a/code/network-generator/model/python/o_ran_ru.py +++ b/code/network-generator/model/python/o_ran_ru.py @@ -24,14 +24,16 @@ import xml.etree.ElementTree as ET # Define the "IORanRu" interface class IORanRu(IORanObject): - def __init__(self, **kwargs): + def __init__(self, cell_count: int, **kwargs): super().__init__(**kwargs) + self._cell_count = cell_count # Define an abstract O-RAN Node class class ORanRu(ORanNode, IORanRu): - def __init__(self, o_ran_smo_data: IORanRu = None, **kwargs): - super().__init__(o_ran_smo_data, **kwargs) + def __init__(self, o_ran_ru_data: IORanRu = None, **kwargs): + super().__init__(o_ran_ru_data, **kwargs) + self._cell_count = o_ran_ru_data["cellCount"] if o_ran_ru_data and "cellCount" in o_ran_ru_data else 1 def toKml(self) -> None: return None