ADD N1, N2 N3 interfacing to topology generation 95/7895/1
authordemx8as6 <martin.skorupski@highstreet-technologies.com>
Sun, 6 Mar 2022 13:11:23 +0000 (14:11 +0100)
committerdemx8as6 <martin.skorupski@highstreet-technologies.com>
Sun, 6 Mar 2022 13:11:29 +0000 (14:11 +0100)
- The UE width size was doubled, so the entire SVG width must be
  changed too

Issue-Id: OAM-256
Change-Id: I5b8fbf22c939a2e5afa99fc73f26a217deb8e9f1
Signed-off-by: demx8as6 <martin.skorupski@highstreet-technologies.com>
code/network-topology-instance-generator/model/python/tapi_common_context.py

index 7c96391..03d779b 100644 (file)
@@ -86,7 +86,7 @@ class TapiCommonContext(Top):
 
     def __svg_width(self) -> int:
         p = self.configuration()['network']['pattern']
-        return (p['smo'] * p['near-rt-ric'] * p['o-cu'] * p['o-du'] * p['fronthaul-gateway'] * p['o-ru'] * p['user-equipment'] + 1) * 2*2*self.FONTSIZE
+        return (p['smo'] * p['near-rt-ric'] * p['o-cu'] * p['o-du'] * p['fronthaul-gateway'] * p['o-ru'] * p['user-equipment'] + 1) * 4*2*self.FONTSIZE
 
     def __svg_height(self) -> int:
         return (8 * 11 + 6) * self.FONTSIZE