vapi: support api clients within vpp process 11/35111/11
authorOle Troan <ot@cisco.com>
Thu, 27 Jan 2022 15:25:43 +0000 (16:25 +0100)
committerOle Troan <ot@cisco.com>
Mon, 2 May 2022 14:26:24 +0000 (16:26 +0200)
commit2ca88ff97884ec9ed20a853b13cee6d86f9c9d0f
tree65061fc95f2ad79580a367ec4e11bcbcf380dcc9
parent6a2868734c2f96186b6bfb705969a5daa702ebb6
vapi: support api clients within vpp process

Add vapi_connect_from_vpp() and vapi_disconnect_from_vpp()
calls to allow API clients from within VPP process.

Add a new memclnt_create version that gives the user a
knob to enable or disable dead client scans (keepalive).

Type: feature
Signed-off-by: Ole Troan <ot@cisco.com>
Change-Id: Id0b7bb89308db3a3aed2d3fcbedf4e1282dcd03f
Signed-off-by: Ole Troan <ot@cisco.com>
src/plugins/unittest/CMakeLists.txt
src/plugins/unittest/api_test.c [new file with mode: 0644]
src/vlibapi/api_common.h
src/vlibmemory/memclnt.api
src/vlibmemory/memory_api.c
src/vnet/interface_api.c
src/vpp-api/vapi/vapi.c
src/vpp-api/vapi/vapi.h
test/test_api_client.py [new file with mode: 0644]