VPP-1033: Python API support arbitrary sized input parameters.
authorOle Troan <[email protected]>
Fri, 20 Oct 2017 11:28:20 +0000 (13:28 +0200)
committerDave Wallace <[email protected]>
Fri, 27 Oct 2017 19:07:08 +0000 (19:07 +0000)
commit088f042400fe104c86c86fb0de04aeb4b8013e74
tree9fc553d1239331b88cb8a71ea832ed5f333c214d
parent116af2170ef21c61252da24d88a0db368e3c7965
VPP-1033: Python API support arbitrary sized input parameters.

Dynamically calculate the required buffer size to pack into based on
message definition. Also add input parameter length checking.

Change-Id: I7633bec596e4833bb328fbf63a65b866c7985de5
Signed-off-by: Ole Troan <[email protected]>
(cherry picked from commit 895b6e8b4408108a9b5cea99dcb378c3524b18b2)
src/vpp-api/python/vpp_papi.py
test/test_acl_plugin.py
test/test_dhcp.py
test/test_nat.py
test/test_papi.py [new file with mode: 0644]
test/vpp_papi_provider.py