aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorPaul Vinciguerra <pvinci@vinciconsulting.com>2019-07-02 13:06:21 -0400
committerAndrew Yourtchenko <ayourtch@gmail.com>2019-07-24 12:57:02 +0000
commit6ce0f35cc785056ffcb250a6bc6ef75ba9e1a1b4 (patch)
tree7b081699a376afc3380d306caa3800eca1f23356 /src
parent5a61f64f6e7c812f9bfb5d4219e1a22798368582 (diff)
papi: add additional types to vpp_serializer
vppapigen supports additional types not handled by the papi seializer. This adds the types for the sake of parity. Change-Id: Id8efad7f169b5023879935575ace2cc3e9c291d4 Type: feature Signed-off-by: Paul Vinciguerra <pvinci@vinciconsulting.com>
Diffstat (limited to 'src')
-rw-r--r--src/vpp-api/python/vpp_papi/vpp_serializer.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/vpp-api/python/vpp_papi/vpp_serializer.py b/src/vpp-api/python/vpp_papi/vpp_serializer.py
index 7c7f331b04c..9ce0287592f 100644
--- a/src/vpp-api/python/vpp_papi/vpp_serializer.py
+++ b/src/vpp-api/python/vpp_papi/vpp_serializer.py
@@ -69,11 +69,14 @@ def conversion_unpacker(data, field_type):
class BaseTypes(object):
def __init__(self, type, elements=0, options=None):
base_types = {'u8': '>B',
+ 'i8': '>b',
'string': '>s',
'u16': '>H',
+ 'i16': '>h',
'u32': '>I',
'i32': '>i',
'u64': '>Q',
+ 'i64': '>q',
'f64': '=d',
'bool': '>?',
'header': '>HI'}