diff options
author | Ole Troan <ot@cisco.com> | 2018-09-06 22:58:05 +0200 |
---|---|---|
committer | Neale Ranns <nranns@cisco.com> | 2018-09-07 11:08:06 +0000 |
commit | c84cbad785fa11c1dba92b8e87ad234d779d1cbd (patch) | |
tree | e712213958abe851573beb9cb06ad581404df9c6 /src/vpp-api/python/vpp_papi/vpp_papi.py | |
parent | a85e0de8aebe0775fefc03872cd3162081c8885b (diff) |
PAPI: Unpack embedded types with variable length arrays.
Change-Id: Ic952ed5b837ac8409fd95e2b5cb92eb028ba0c40
Signed-off-by: Ole Troan <ot@cisco.com>
Diffstat (limited to 'src/vpp-api/python/vpp_papi/vpp_papi.py')
-rw-r--r-- | src/vpp-api/python/vpp_papi/vpp_papi.py | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/vpp-api/python/vpp_papi/vpp_papi.py b/src/vpp-api/python/vpp_papi/vpp_papi.py index d5ad837331e..4f765ecbd18 100644 --- a/src/vpp-api/python/vpp_papi/vpp_papi.py +++ b/src/vpp-api/python/vpp_papi/vpp_papi.py @@ -523,8 +523,7 @@ class VPP(): if not msg: self.logger.warning('vpp_api.read failed') return - - i, ci = self.header.unpack(msg, 0) + (i, ci), size = self.header.unpack(msg, 0) if self.id_names[i] == 'rx_thread_exit': return @@ -535,8 +534,7 @@ class VPP(): if not msgobj: raise IOError(2, 'Reply message undefined') - r = msgobj.unpack(msg) - + r, size = msgobj.unpack(msg) return r def msg_handler_async(self, msg): |