From: Neale Ranns Date: Wed, 6 Mar 2019 07:32:46 +0000 (+0000) Subject: GBP: format EPG retention policy X-Git-Tag: v19.04-rc1~322 X-Git-Url: https://gerrit.fd.io/r/gitweb?a=commitdiff_plain;h=refs%2Fchanges%2F48%2F18048%2F3;p=vpp.git GBP: format EPG retention policy Change-Id: I17826cfa9a27dc241e07988bf0bbaf9eca9ae525 Signed-off-by: Neale Ranns --- diff --git a/src/plugins/gbp/gbp_endpoint_group.c b/src/plugins/gbp/gbp_endpoint_group.c index a8c0b0f9a91..821adef0c18 100644 --- a/src/plugins/gbp/gbp_endpoint_group.c +++ b/src/plugins/gbp/gbp_endpoint_group.c @@ -324,6 +324,16 @@ VLIB_CLI_COMMAND (gbp_endpoint_group_cli_node, static) = { .function = gbp_endpoint_group_cli, }; +static u8 * +format_gbp_endpoint_retention (u8 * s, va_list * args) +{ + gbp_endpoint_retention_t *rt = va_arg (*args, gbp_endpoint_retention_t*); + + s = format (s, "[remote-EP-timeout:%d]", rt->remote_ep_timeout); + + return (s); +} + u8 * format_gbp_endpoint_group (u8 * s, va_list * args) { @@ -331,13 +341,14 @@ format_gbp_endpoint_group (u8 * s, va_list * args) vnet_main_t *vnm = vnet_get_main (); if (NULL != gg) - s = format (s, "[%d] %d, sclass:%d bd:[%d,%d], rd:[%d] uplink:%U locks:%d", + s = format (s, "[%d] %d, sclass:%d bd:[%d,%d] rd:[%d] uplink:%U retnetion:%U locks:%d", gg - gbp_endpoint_group_pool, gg->gg_id, gg->gg_sclass, gbp_endpoint_group_get_bd_id(gg), gg->gg_bd_index, gg->gg_rd, format_vnet_sw_if_index_name, vnm, gg->gg_uplink_sw_if_index, + format_gbp_endpoint_retention, &gg->gg_retention, gg->gg_locks); else s = format (s, "NULL");