From 7e3a875c94b180ef4d9dc99a7fcc8a73c348969b Mon Sep 17 00:00:00 2001 From: Ole Troan Date: Mon, 5 Dec 2016 10:27:09 +0100 Subject: API: Adapt make test to Python API changes. Change the test wrapper script for the updated Python API. All tests but the L2BD multi instance runs fine. That is currently skipped. I see intermittent failures when an MLD message is received before the ND NA in MPLS and IPV6 FIB tests. Change-Id: If809877c9abdf596dbb0a419ce5429552f63d212 Signed-off-by: Ole Troan --- vpp-api/python/pneum/pneum.c | 6 ++++++ vpp-api/python/pneum/pneum.h | 2 ++ 2 files changed, 8 insertions(+) (limited to 'vpp-api/python/pneum') diff --git a/vpp-api/python/pneum/pneum.c b/vpp-api/python/pneum/pneum.c index 3b5455304e5..39fdf260d40 100644 --- a/vpp-api/python/pneum/pneum.c +++ b/vpp-api/python/pneum/pneum.c @@ -248,3 +248,9 @@ pneum_write (char *p, int l) } return (rv); } + +uint32_t +pneum_get_msg_index (unsigned char * name) +{ + return vl_api_get_msg_index (name); +} diff --git a/vpp-api/python/pneum/pneum.h b/vpp-api/python/pneum/pneum.h index 00585eb72e5..a347bd25f62 100644 --- a/vpp-api/python/pneum/pneum.h +++ b/vpp-api/python/pneum/pneum.h @@ -15,6 +15,7 @@ #ifndef included_pneum_h #define included_pneum_h +#include #include typedef void (*pneum_callback_t)(unsigned char * data, int len); @@ -25,5 +26,6 @@ int pneum_write(char *data, int len); void pneum_free(void * msg); uword * pneum_msg_table_get_hash (void); int pneum_msg_table_size(void); +uint32_t pneum_get_msg_index(unsigned char * name); #endif -- cgit 1.2.3-korg