From 3d81267945a732753b0dbd0a83a50ab0625b448a Mon Sep 17 00:00:00 2001 From: Ole Troan Date: Tue, 15 Sep 2020 10:53:34 +0200 Subject: vat: add infrastructure to align vnet test code and plugin test code Split vat/api_format.c also for VNET features. Use auto-generated VAT test code and support dynamic message ID allocation as for plugins. The arp and geneve features as Guinea pigs. Type: improvement Signed-off-by: Ole Troan Change-Id: I461591496766bdf10c5f950fd30f1a0ae05909da Signed-off-by: Ole Troan --- src/vnet/arp/arp_test.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'src/vnet/arp') diff --git a/src/vnet/arp/arp_test.c b/src/vnet/arp/arp_test.c index 861d0739406..29eeeb59d0f 100644 --- a/src/vnet/arp/arp_test.c +++ b/src/vnet/arp/arp_test.c @@ -41,8 +41,8 @@ arp_test_main_t arp_test_main; uword unformat_sw_if_index (unformat_input_t * input, va_list * args); /* Declare message IDs */ -#include -#include +#include +#include #include static int @@ -156,8 +156,9 @@ api_proxy_arp_intfc_enable_disable (vat_main_t * vam) return ret; } -#include +#include +VAT_REGISTER_FEATURE_FUNCTION (vat_arp_plugin_register); /* * fd.io coding-style-patch-verification: ON -- cgit 1.2.3-korg