summaryrefslogtreecommitdiffstats
path: root/utils/parser.py
diff options
context:
space:
mode:
authorAce Lee <liyin11@huawei.com>2017-10-11 09:22:49 +0000
committerGerrit Code Review <gerrit@opnfv.org>2017-10-11 09:22:49 +0000
commit1ddcbed821e841c032aa2f1a4dfc3714716e83b8 (patch)
treecf7289cc7066a5777b79eb6e70ae498414110398 /utils/parser.py
parentba35a9ec913aaba9594cc402632d6fb1bbbbf548 (diff)
parentc0dc0572a4bf4bfc308b9d9ff5072468b9995d3c (diff)
Merge "Bottlenecks testpmd scale-up testcase."
Diffstat (limited to 'utils/parser.py')
-rw-r--r--utils/parser.py9
1 files changed, 9 insertions, 0 deletions
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"""