CSIT-1500: Add comparison table for SOAK vs NDRPDR 42/19542/1
authorTibor Frank <tifrank@cisco.com>
Mon, 13 May 2019 14:38:23 +0000 (16:38 +0200)
committerTibor Frank <tifrank@cisco.com>
Mon, 13 May 2019 14:38:23 +0000 (16:38 +0200)
- fix text case name

Change-Id: I01c228a920729b2e2ab3e4fb4669d68469b1c58f
Signed-off-by: Tibor Frank <tifrank@cisco.com>
resources/tools/presentation/generator_tables.py
resources/tools/presentation/specification.yaml

index 1a15605..887ee72 100644 (file)
@@ -566,8 +566,12 @@ def table_soak_vs_ndr(table, input_data):
                 if tst_data["type"] == "SOAK":
                     tst_name_mod = tst_name.replace("-soak", "")
                     if tbl_dict.get(tst_name_mod, None) is None:
+                        groups = re.search(REGEX_NIC, tst_data["parent"])
+                        nic = groups.group(0) if groups else ""
+                        name = "{0}-{1}".format(nic, "-".join(tst_data["name"].
+                                                              split("-")[:-1]))
                         tbl_dict[tst_name_mod] = {
-                            "name": tst_name_mod,
+                            "name": name,
                             "ref-data": list(),
                             "cmp-data": list()
                         }
index 1ab1ea7..9346cf4 100644 (file)
   filter: "('NDRPDR' or 'SOAK')"
   parameters:
     - "throughput"
+    - "name"
+    - "parent"
 
 
 

©2016 FD.io a Linux Foundation Collaborative Project. All Rights Reserved.
Linux Foundation is a registered trademark of The Linux Foundation. Linux is a registered trademark of Linus Torvalds.
Please see our privacy policy and terms of use.