Merge "ADD N1, N2 N3 interfacing to topology generation"
authorMartin Skorupski <martin.skorupski@highstreet-technologies.com>
Mon, 7 Mar 2022 14:26:22 +0000 (14:26 +0000)
committerGerrit Code Review <gerrit@o-ran-sc.org>
Mon, 7 Mar 2022 14:26:22 +0000 (14:26 +0000)
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()