vapi: write enumflag types to vapi headers 08/37608/2
authorMatthew Smith <mgsmith@netgate.com>
Wed, 9 Nov 2022 17:45:19 +0000 (17:45 +0000)
committerMatthew Smith <mgsmith@netgate.com>
Mon, 28 Nov 2022 21:34:00 +0000 (21:34 +0000)
commitd1c75063daf9466a7ef10beed9c9e58245d3380e
tree3764fcc128f18a9f03871b7996b338adff369cc1
parent14bf6a8fb03545b587d99e9db36871cc62b5729d
vapi: write enumflag types to vapi headers

Type: fix
Fixes: a51f9b3747

Some IPsec message type definitions were not being written to
ipsec.api.vapi.h. These include ipsec_sad_entry_add_del_v3 and
ipsec_sad_entry_add.

The cause appears to be that tunnel_flags, which is defined in
tunnel_types.api is a special case of enum called an enumflag. These do
not appear to have been handled in the code that generates the vapi
header files.

This patch adds processing of enumflag objects for vapi.

Change-Id: Ie506c4fcb5a07fe97a330ba11c252d1df98adfd9
Signed-off-by: Matthew Smith <mgsmith@netgate.com>
src/vpp-api/vapi/fake.api.json
src/vpp-api/vapi/vapi_json_parser.py