Trending: Fix ipsec
[csit.git] / resources / tools / presentation / generator_tables.py
index 3ab8870..b37b1fe 100644 (file)
@@ -825,6 +825,14 @@ def _generate_url(base, testbed, test_name):
     elif "ipsec" in test_name:
         file_name = "ipsec"
         feature = "-base-scale"
+        if "hw-" in test_name:
+            file_name = "ipsechw"
+        elif "sw-" in test_name:
+            file_name = "ipsecsw"
+        if "-int-" in test_name:
+            feature = "-base-scale-int"
+        elif "tnl" in test_name:
+            feature = "-base-scale-tnl"
 
     elif "ethip4lispip" in test_name or "ethip4vxlan" in test_name:
         file_name = "ip4_tunnels"
@@ -872,6 +880,8 @@ def _generate_url(base, testbed, test_name):
         nic = "vic1227-"
     elif "vic1385" in test_name:
         nic = "vic1385-"
+    elif "x553" in test_name:
+        nic = "x553-"
     else:
         nic = ""
     anchor += nic
@@ -905,8 +915,8 @@ def _generate_url(base, testbed, test_name):
     elif "8t4c" in test_name:
         anchor += "8t4c"
 
-    return url + file_name + '-' + testbed + '-' + nic + framesize + feature + \
-           anchor + feature
+    return url + file_name + '-' + testbed + '-' + nic + framesize + \
+        feature.replace("-int", "").replace("-tnl", "") + anchor + feature
 
 
 def table_performance_trending_dashboard_html(table, input_data):