X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=code%2Fnetwork-topology-instance-generator%2Fmodel%2Fpython%2Ftapi_topology.py;h=a80e873131919d5b0622ac44399d364cad12009a;hb=8b856a4632c8ddaf5afa87e9604241da8f117ddb;hp=80ac0085027766f5ea4ff040d9c93de9b0c0b1ae;hpb=868a93189efec456fad60ce0a08e6a42f1114595;p=oam.git diff --git a/code/network-topology-instance-generator/model/python/tapi_topology.py b/code/network-topology-instance-generator/model/python/tapi_topology.py index 80ac008..a80e873 100644 --- a/code/network-topology-instance-generator/model/python/tapi_topology.py +++ b/code/network-topology-instance-generator/model/python/tapi_topology.py @@ -47,12 +47,16 @@ class TapiTopology(Top): # constructor def __init__(self, configuration: dict): super().__init__(configuration) + name = "o-ran-sc-topology-view" + if "name" in configuration['network']: + name = configuration['network']['name'] + self.__configuration = configuration self.__data = { "uuid": str(uuid.uuid4()), "name": [{ "value-name": "network-name", - "value": configuration['network']['name']}], + "value": name}], "layer-protocol-name": ["ETH"], "node": [], "link": []} @@ -484,7 +488,7 @@ class TapiTopology(Top): # E2 link_configuration = { "topology_reference": self.data()["uuid"], - "name_prefix": "e2-rest", + "name_prefix": "e2-sctp", "provider": node[plane], "consumer": parent } @@ -579,7 +583,7 @@ class TapiTopology(Top): # E2 link_configuration = { "topology_reference": self.data()["uuid"], - "name_prefix": "e2-rest", + "name_prefix": "e2-sctp", "provider": node, "consumer": parent.parent() }