From 0f5a3b2540ae5e0884fbeb46d11befde9d9b96f9 Mon Sep 17 00:00:00 2001 From: Neale Ranns Date: Wed, 6 Mar 2019 07:32:46 +0000 Subject: GBP: format EPG retention policy Change-Id: I17826cfa9a27dc241e07988bf0bbaf9eca9ae525 Signed-off-by: Neale Ranns --- src/plugins/gbp/gbp_endpoint_group.c | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) (limited to 'src') 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"); -- cgit 1.2.3-korg