Merge "ADD N1, N2 N3 interfacing to topology generation"
authorMartin Skorupski <martin.skorupski@highstreet-technologies.com>
Mon, 7 Mar 2022 14:24:54 +0000 (14:24 +0000)
committerGerrit Code Review <gerrit@o-ran-sc.org>
Mon, 7 Mar 2022 14:24:54 +0000 (14:24 +0000)
code/network-topology-instance-generator/model/python/tapi_node_user_equipment.py

index 48543bd..823d67f 100644 (file)
@@ -29,14 +29,21 @@ class TapiNodeUserEquipment(TapiNode):
     def __init__(self, parent, config):
         super().__init__(parent, config)
 
-        super().width( (1 + 1) * (2*self.FONTSIZE) )  # 1x nep
+        super().width( (2 + 1) * (2*self.FONTSIZE) )  # 2x nep
 
         # add air consumer interface
         nep_configuration = {
             "parent": self.identifier(),
             "nodeEdgePoint": {
-                "interface": "uu", "cep":[{"protocol": "unknown", "role": "consumer"}]
+                "interface": "uu", "cep":[{"protocol": "radio", "role": "consumer"}]
             }
         }
         self.add(TapiNodeEdgePoint(nep_configuration))
 
+        nep_configuration = {
+            "parent": self.identifier(),
+            "nodeEdgePoint": {
+                "interface": "n1", "cep":[{"protocol": "NAS", "role": "consumer"}]
+            }
+        }
+        self.add(TapiNodeEdgePoint(nep_configuration))