From c0dc0572a4bf4bfc308b9d9ff5072468b9995d3c Mon Sep 17 00:00:00 2001 From: liyin Date: Wed, 20 Sep 2017 09:06:34 +0800 Subject: Bottlenecks testpmd scale-up testcase. JIRA: BOTTLENECK-205 This is the script of testpmd scale-up feature testcase. we will debug the dashboard. Change-Id: I4a6de0e7e1ea7c04639ece78a7b11b75128d8d2f Signed-off-by: liyin --- utils/parser.py | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'utils/parser.py') diff --git a/utils/parser.py b/utils/parser.py index ecd6badd..b46a3b91 100644 --- a/utils/parser.py +++ b/utils/parser.py @@ -127,6 +127,15 @@ class Parser(): f.write(json.dumps(data, f)) f.write("\n") + @staticmethod + def str_to_list(str_org): + try: + data = str_org.split(',') + except AttributeError: + data = [] + data.append(str_org) + return data + class HeatTemplate_Parser(): """parser a Heat template and a method to deploy template to a stack""" -- cgit 1.2.3-korg