diff options
author | Paul Vinciguerra <pvinci@vinciconsulting.com> | 2019-11-23 21:02:27 -0500 |
---|---|---|
committer | Dave Wallace <dwallacelf@gmail.com> | 2020-08-12 01:22:20 +0000 |
commit | 51b95951ba6819cc71b25f7c12e8f59f639c0d2e (patch) | |
tree | e884f7e3b729c1e0846cc6caf84f1ee1431489f0 /src/vpp-api | |
parent | cf758ecb71e1337f0d1fd5e9fd4744b263f01f25 (diff) |
papi: add missing base types to serializer
File "/vpp/src/vpp-api/python/vpp_papi/vpp_serializer.py", line 512, in __init__
'Unknown message type {}'.format(f_type))
vpp_papi.vpp_serializer.VPPSerializerValueError: Unknown message type i16
Type: fix
Change-Id: Ibf73dc8df90153db586afe614e47be49739bac2f
Signed-off-by: Paul Vinciguerra <pvinci@vinciconsulting.com>
(cherry picked from commit ba2c7fad1d1448b40ea78f36e833821e9ab84687)
Diffstat (limited to 'src/vpp-api')
-rw-r--r-- | src/vpp-api/python/vpp_papi/vpp_serializer.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/vpp-api/python/vpp_papi/vpp_serializer.py b/src/vpp-api/python/vpp_papi/vpp_serializer.py index be5c74c150a..825b8d8356f 100644 --- a/src/vpp-api/python/vpp_papi/vpp_serializer.py +++ b/src/vpp-api/python/vpp_papi/vpp_serializer.py @@ -143,9 +143,11 @@ class String(object): return (x2.decode('utf8'), size + length_field_size) -types = {'u8': BaseTypes('u8'), 'u16': BaseTypes('u16'), +types = {'u8': BaseTypes('u8'), 'i8': BaseTypes('i8'), + 'u16': BaseTypes('u16'), 'i16': BaseTypes('i16'), 'u32': BaseTypes('u32'), 'i32': BaseTypes('i32'), - 'u64': BaseTypes('u64'), 'f64': BaseTypes('f64'), + 'u64': BaseTypes('u64'), 'i64': BaseTypes('i64'), + 'f64': BaseTypes('f64'), 'bool': BaseTypes('bool'), 'string': String} class_types = {} |