X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=code%2Fnetwork-topology-instance-generator%2Fmodel%2Fpython%2Ftapi_link.py;h=61c6e437d09d6a410cfa3ecc33ae9837cd1872c5;hb=9f72519fb578b452a159afd651061a92ac805430;hp=d930d55d9fff49ee33524445c7aca835bb7287a9;hpb=5a9c54ac4f3b080b0473ee006c679cc8825911a7;p=oam.git 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()