summaryrefslogtreecommitdiffstats
path: root/src/plugins/gbp/gbp_api_print.h
diff options
context:
space:
mode:
authorBenoît Ganne <bganne@cisco.com>2019-07-04 16:43:26 +0200
committerNeale Ranns <nranns@cisco.com>2019-07-05 08:48:39 +0000
commit3918bdbcbb6459fe61eb5ab8bd1c30bf287e39ce (patch)
treeb44e38eacab075c4a90049241e8fa5f81e2a00c3 /src/plugins/gbp/gbp_api_print.h
parent73c8d1d644c1b1606848579c7d539f739d63487a (diff)
gbp: update gbp-ext-itf API
Change gbp-ext-itf API to create anonymous ext-itf through the same API as non-anonymous instead of a new API Type: refactor Change-Id: I381ff2a5bcd55276793df78ca891334c28946cd0 Signed-off-by: Benoît Ganne <bganne@cisco.com>
Diffstat (limited to 'src/plugins/gbp/gbp_api_print.h')
-rw-r--r--src/plugins/gbp/gbp_api_print.h24
1 files changed, 1 insertions, 23 deletions
diff --git a/src/plugins/gbp/gbp_api_print.h b/src/plugins/gbp/gbp_api_print.h
index b3afc94dc4b..39c25b6e476 100644
--- a/src/plugins/gbp/gbp_api_print.h
+++ b/src/plugins/gbp/gbp_api_print.h
@@ -332,29 +332,7 @@ vl_api_gbp_ext_itf_add_del_t_print (vl_api_gbp_ext_itf_add_del_t * a,
s = format (s, "sw_if_index %d ", ntohl (a->ext_itf.sw_if_index));
s = format (s, "bd_id %d ", ntohl (a->ext_itf.bd_id));
s = format (s, "rd_id %d ", ntohl (a->ext_itf.rd_id));
-
- s = format (s, "\n");
-
- PRINT_S;
-
- return handle;
-}
-
-static inline void *
-vl_api_gbp_ext_itf_anon_add_del_t_print (vl_api_gbp_ext_itf_anon_add_del_t *
- a, void *handle)
-{
- u8 *s = 0;
-
- s = format (s, "SCRIPT: gbp_ext_itf_anon_add_del ");
- if (a->is_add)
- s = format (s, "add ");
- else
- s = format (s, "del ");
-
- s = format (s, "sw_if_index %d ", ntohl (a->ext_itf.sw_if_index));
- s = format (s, "bd_id %d ", ntohl (a->ext_itf.bd_id));
- s = format (s, "rd_id %d ", ntohl (a->ext_itf.rd_id));
+ s = format (s, "flags %x ", ntohl (a->ext_itf.flags));
s = format (s, "\n");