aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTibor Frank <tifrank@cisco.com>2019-05-13 16:38:23 +0200
committerTibor Frank <tifrank@cisco.com>2019-05-13 14:40:55 +0000
commit1bbe206c1538d181616a578d99796f38f4d6dc5b (patch)
tree1ace2032fa90de6aba116f27b3babdb4a5b04b07
parent94aef51a2ee8103b1e0612a169b51cefa28a0aa6 (diff)
CSIT-1500: Add comparison table for SOAK vs NDRPDR
- fix text case name Change-Id: I01c228a920729b2e2ab3e4fb4669d68469b1c58f Signed-off-by: Tibor Frank <tifrank@cisco.com> (cherry picked from commit 019a796394d6b8484225fe133c24c0e502b219f6)
-rw-r--r--resources/tools/presentation/generator_tables.py6
-rw-r--r--resources/tools/presentation/specification.yaml2
2 files changed, 7 insertions, 1 deletions
diff --git a/resources/tools/presentation/generator_tables.py b/resources/tools/presentation/generator_tables.py
index 1a15605618..887ee72797 100644
--- a/resources/tools/presentation/generator_tables.py
+++ b/resources/tools/presentation/generator_tables.py
@@ -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()
}
diff --git a/resources/tools/presentation/specification.yaml b/resources/tools/presentation/specification.yaml
index 1ab1ea78af..9346cf4b6f 100644
--- a/resources/tools/presentation/specification.yaml
+++ b/resources/tools/presentation/specification.yaml
@@ -1673,6 +1673,8 @@
filter: "('NDRPDR' or 'SOAK')"
parameters:
- "throughput"
+ - "name"
+ - "parent"