ADD N1, N2 N3 interfacing to topology generation 02/7902/1
authordemx8as6 <martin.skorupski@highstreet-technologies.com>
Sun, 6 Mar 2022 13:24:44 +0000 (14:24 +0100)
committerdemx8as6 <martin.skorupski@highstreet-technologies.com>
Sun, 6 Mar 2022 13:35:03 +0000 (14:35 +0100)
- 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 <martin.skorupski@highstreet-technologies.com>
code/network-topology-instance-generator/model/python/tapi_link.py

index d930d55..61c6e43 100644 (file)
@@ -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()