papi: vla list of fixed strings 66/37766/6
authorOle Troan <ot@cisco.com>
Wed, 7 Dec 2022 14:30:58 +0000 (15:30 +0100)
committerDave Wallace <dwallacelf@gmail.com>
Tue, 21 Mar 2023 13:53:09 +0000 (13:53 +0000)
commit86698fca30941772a3b77106fc2b2e83a40bcfeb
tree17294ddcc200612944e877bbc315ed6c32a36a8f
parentd76c029a85f0b5a4bb72c84fb4cd012cbd5465cd
papi: vla list of fixed strings

Handle a variable length array of fixed strings.
Like:
fixed_string = VPPType("fixed_string", [["string", "data", 32]])
s = VPPType("string_vla", [["u32", "length"], ["fixed_string", "services", 0, "length"]])

Previously instead of packing and unpacking as strings, exception packed as u8 instead
of list.

Type: fix
Signed-off-by: Ole Troan <ot@cisco.com>
Change-Id: I501a8a4755828042e1539fd5a54eacec21c5e364
Signed-off-by: Ole Troan <ot@cisco.com>
src/vpp-api/python/vpp_papi/tests/test_vpp_serializer.py
src/vpp-api/python/vpp_papi/vpp_serializer.py