]> git.puffer.fish Git - mirror/frr.git/commitdiff
zebra: zebra route-map delay-timer is global not per vrf 7823/head
authorDonald Sharp <sharpd@nvidia.com>
Wed, 6 Jan 2021 16:29:43 +0000 (11:29 -0500)
committerDonald Sharp <sharpd@nvidia.com>
Sat, 9 Jan 2021 03:34:41 +0000 (22:34 -0500)
The zebra route-map delay timer value is a global value
not a per vrf change.  As such we should only print it
out one time.

We are seeing this:

zebra route-map delay-timer 33
 exit-vrf
zebra route-map delay-timer 33

When we have 2 vrf's configured.

Fix the code to only write it out for the default vrf

Ticket: CM-32888
Signed-off-by: Donald Sharp <sharpd@nvidia.com>
zebra/zebra_routemap.c

index 7f766a51792da473a247d8f0fca178a6e756dba3..bbc8b6f19d55d9853f20def254ab8b19cd31e9f5 100644 (file)
@@ -1862,7 +1862,8 @@ void zebra_routemap_config_write_protocol(struct vty *vty,
                vty_out(vty, "%sipv6 nht %s route-map %s\n", space, "any",
                        NHT_RM_NAME(zvrf, AFI_IP6, ZEBRA_ROUTE_MAX));
 
-       if (zebra_rmap_update_timer != ZEBRA_RMAP_DEFAULT_UPDATE_TIMER)
+       if (zvrf_id(zvrf) == VRF_DEFAULT
+           && zebra_rmap_update_timer != ZEBRA_RMAP_DEFAULT_UPDATE_TIMER)
                vty_out(vty, "zebra route-map delay-timer %d\n",
                        zebra_rmap_update_timer);
 }