]> git.puffer.fish Git - mirror/frr.git/commitdiff
bgpd: Add code to output expire and retry interval for rpki 9402/head
authorDonald Sharp <sharpd@nvidia.com>
Mon, 16 Aug 2021 14:59:20 +0000 (10:59 -0400)
committerDonald Sharp <sharpd@nvidia.com>
Mon, 16 Aug 2021 15:04:06 +0000 (11:04 -0400)
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 <sharpd@nvidia.com>
bgpd/bgp_rpki.c

index 04ff8ac7c91c428c73e2ee3cc93f900e11571c2f..286612da15be6b1f6e4fd8e4ad9a50643dcb12df 100644 (file)
@@ -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;