From 9f72519fb578b452a159afd651061a92ac805430 Mon Sep 17 00:00:00 2001 From: demx8as6 Date: Sun, 6 Mar 2022 14:24:44 +0100 Subject: [PATCH] ADD N1, N2 N3 interfacing to topology generation - tag each link with its interface name for differenciation of 3GPP and O-RAN definitions Issue-Id: OAM-256 Change-Id: Ic1abbd6117428242b2e368fc792e6803546a2fdb Signed-off-by: demx8as6 --- code/network-topology-instance-generator/model/python/tapi_link.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/code/network-topology-instance-generator/model/python/tapi_link.py b/code/network-topology-instance-generator/model/python/tapi_link.py index d930d55..61c6e43 100644 --- a/code/network-topology-instance-generator/model/python/tapi_link.py +++ b/code/network-topology-instance-generator/model/python/tapi_link.py @@ -121,7 +121,8 @@ class TapiLink(Top): """ group = etree.Element("g") - group.attrib["class"] = "link" + class_name = self.name().split("-")[0].lower() + group.attrib["class"] = " ".join(["link", class_name]) title = etree.Element("title") title.text = "\n TAPI Link\n id: " + \ self.identifier() + "\n name: " + self.name() -- 2.16.6