summaryrefslogtreecommitdiffstats
path: root/vpp-api/python/pneum/api-gen.py
diff options
context:
space:
mode:
Diffstat (limited to 'vpp-api/python/pneum/api-gen.py')
-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):