diff options
author | Ole Troan <ot@cisco.com> | 2016-12-05 10:27:09 +0100 |
---|---|---|
committer | Ed Warnicke <hagbard@gmail.com> | 2016-12-06 21:17:45 +0000 |
commit | 7e3a875c94b180ef4d9dc99a7fcc8a73c348969b (patch) | |
tree | d2bae689d3301814eff29bb06d012a720ccc00fb /vpp-api/python/pneum | |
parent | b5e8a771fb825301023e3732ffa24d0ceb42b6cd (diff) |
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 <ot@cisco.com>
Diffstat (limited to 'vpp-api/python/pneum')
-rw-r--r-- | vpp-api/python/pneum/pneum.c | 6 | ||||
-rw-r--r-- | vpp-api/python/pneum/pneum.h | 2 |
2 files changed, 8 insertions, 0 deletions
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 <stdint.h> #include <vppinfra/types.h> 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 |