Fix punctuation fails in 2x plugins 95/19695/1
authorDave Barach <dave@barachs.net>
Fri, 17 May 2019 18:48:27 +0000 (14:48 -0400)
committerDave Barach <dave@barachs.net>
Fri, 17 May 2019 18:49:00 +0000 (14:49 -0400)
More to the point: fix the Python API binding for the plugins.

The http_static and ct6 plugin setup_message_id_table calls didn't
have "_"'s between message names and CRCs. I would have expected this
to originate in the emacs skeleton, but the skeleton is correct.

Punctuation saves lives: "Let's eat Grandma..." != "Let's eat,
Grandma..." More or less.

Change-Id: Icd87813308701d203cf6f147b2bb90d39d51ddeb
Signed-off-by: Dave Barach <dave@barachs.net>
src/plugins/ct6/ct6.c
src/plugins/http_static/http_static.c

index 478e9ac..3dfa09f 100644 (file)
@@ -235,7 +235,7 @@ ct6_plugin_api_hookup (vlib_main_t * vm)
 static void
 setup_message_id_table (ct6_main_t * cmp, api_main_t * am)
 {
-#define _(id,n,crc)   vl_msg_api_add_msg_name_crc (am, #n  #crc, id + cmp->msg_id_base);
+#define _(id,n,crc)   vl_msg_api_add_msg_name_crc (am, #n "_"  #crc, id + cmp->msg_id_base);
   foreach_vl_msg_name_crc_ct6;
 #undef _
 }
index 57f1cf7..d4ec298 100644 (file)
@@ -102,7 +102,7 @@ http_static_plugin_api_hookup (vlib_main_t * vm)
 static void
 setup_message_id_table (http_static_main_t * hmp, api_main_t * am)
 {
-#define _(id,n,crc)   vl_msg_api_add_msg_name_crc (am, #n  #crc, id + hmp->msg_id_base);
+#define _(id,n,crc)   vl_msg_api_add_msg_name_crc (am, #n "_" #crc, id + hmp->msg_id_base);
   foreach_vl_msg_name_crc_http_static;
 #undef _
 }