Commit cdf418605d for frr
commit cdf418605dfbe41e5fce30fb28acfeddaaed3c45
Author: Nageswara Soma <nsoma@cisco.com>
Date: Wed Nov 18 20:20:31 2026 -0800
bgpd: reinstall IMET routes on PMSI type changes
An IMET update with the same RD and NLRI can change
its PMSI tunnel type without marking the imported
VNI path as changed. Best-path processing then skips
zebra installation and leaves the old flood mode.
Mark IMET paths with BGP_PATH_ATTR_CHANGED when their
PMSI tunnel type changes. This uses the existing
reinstall path to send zebra the new flood mode.
Signed-off-by: Nageswara Soma <nsoma@cisco.com>
diff --git a/bgpd/bgp_evpn.c b/bgpd/bgp_evpn.c
index c26b14d9ed..ac4a4a0d87 100644
--- a/bgpd/bgp_evpn.c
+++ b/bgpd/bgp_evpn.c
@@ -3761,6 +3761,10 @@ static int install_evpn_route_entry_in_vni_common(
new_local_es ? "local" : "non-local");
bgp_path_info_set_flag(dest, pi, BGP_PATH_ATTR_CHANGED);
}
+ /* IMET PMSI changes update the remote VTEP flood mode in zebra. */
+ if (p->prefix.route_type == BGP_EVPN_IMET_ROUTE &&
+ bgp_attr_get_pmsi_tnl_type(pi->attr) != bgp_attr_get_pmsi_tnl_type(attr_new))
+ bgp_path_info_set_flag(dest, pi, BGP_PATH_ATTR_CHANGED);
/* Unintern existing, set to new. */
bgp_attr_unintern(&pi->attr);