summaryrefslogtreecommitdiffstats
path: root/vpp-api/python/pneum
diff options
context:
space:
mode:
authorOle Troan <ot@cisco.com>2016-04-28 12:50:20 +0200
committerDave Barach <openvpp@barachs.net>2016-04-28 11:41:21 +0000
commite6749e4f6b8d5df52495e0c6802c05505bb50b62 (patch)
treeaa7728dd24f9826417c1937ab207b55d80e744ae /vpp-api/python/pneum
parent194ebc58b6e362c7cc950ba2386567bfdbfbab55 (diff)
Python API: Fix mistaken removal of '_' in field names.
Change-Id: I1e39970bc6ded9e6da64385b2289321ba43bebfd Signed-off-by: Ole Troan <ot@cisco.com>
Diffstat (limited to 'vpp-api/python/pneum')
-rwxr-xr-xvpp-api/python/pneum/api-gen.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/vpp-api/python/pneum/api-gen.py b/vpp-api/python/pneum/api-gen.py
index b9a9ee33825..df92c196fe2 100755
--- a/vpp-api/python/pneum/api-gen.py
+++ b/vpp-api/python/pneum/api-gen.py
@@ -52,7 +52,11 @@ type_size = {'u8': 1,
def get_args(t):
argslist = []
for i in t:
- argslist.append(i[1].replace('_',''))
+ if i[1][0] == '_':
+ argslist.append(i[1][1:])
+ else:
+ argslist.append(i[1])
+
return argslist
def get_pack(t):