From 8f401cda58f6795bc6d7d968b210d984e4e1c0ed Mon Sep 17 00:00:00 2001 From: Donatas Abraitis Date: Tue, 21 Jun 2022 18:49:10 +0300 Subject: [PATCH] bgpd: Do not show polling_period default value in CLI for RPKI Signed-off-by: Donatas Abraitis --- bgpd/bgp_rpki.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bgpd/bgp_rpki.c b/bgpd/bgp_rpki.c index 5225934ec2..de1c559641 100644 --- a/bgpd/bgp_rpki.c +++ b/bgpd/bgp_rpki.c @@ -1006,8 +1006,9 @@ 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 (polling_period != POLLING_PERIOD_DEFAULT) + 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) -- 2.39.5