From 9a65115329b6bb77ef08f8be72f114a210c3daec Mon Sep 17 00:00:00 2001 From: Donald Sharp Date: Mon, 16 Aug 2021 10:59:20 -0400 Subject: [PATCH] bgpd: Add code to output expire and retry interval for rpki The code to output during a `show run` is missing for both the expire_interval and the retry_interval in rpki. Let's add it in so the end user can see what they are set to if not set to the default. Signed-off-by: Donald Sharp --- bgpd/bgp_rpki.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/bgpd/bgp_rpki.c b/bgpd/bgp_rpki.c index 04ff8ac7c9..286612da15 100644 --- a/bgpd/bgp_rpki.c +++ b/bgpd/bgp_rpki.c @@ -897,6 +897,12 @@ static int config_write(struct vty *vty) vty_out(vty, "!\n"); vty_out(vty, "rpki\n"); vty_out(vty, " rpki polling_period %d\n", polling_period); + + if (retry_interval != RETRY_INTERVAL_DEFAULT) + vty_out(vty, " rpki retry_interval %d\n", retry_interval); + if (expire_interval != EXPIRE_INTERVAL_DEFAULT) + vty_out(vty, " rpki expire_interval %d\n", expire_interval); + for (ALL_LIST_ELEMENTS_RO(cache_list, cache_node, cache)) { switch (cache->type) { struct tr_tcp_config *tcp_config; -- 2.39.5