Commit ae51f9c93b for frr

commit ae51f9c93b938247deab46845ff36f1c2f662e44
Author: Justin Iurman <justin.iurman@6wind.com>
Date:   Tue Nov 10 13:58:47 2026 +0100

    bgpd: always show the flooding mode of a VNI in the configuration

    The flooding mode of a VNI in a VRF with an L3VNI was not shown in the
    configuration when it was the same as the one of the BGP instance of
    that VRF. That mode only applies to that instance, and is head-end
    replication by default: a VNI set to head-end replication while the
    global mode is "flooding disable" thus lost its mode on a restart, and
    stopped flooding.

    Show the mode of a VNI whenever it has one.

    Fixes: 4d7c23d2a3 ("bgpd: Implement flooding per VNI")
    Signed-off-by: Justin Iurman <justin.iurman@6wind.com>

diff --git a/bgpd/bgp_evpn_vty.c b/bgpd/bgp_evpn_vty.c
index 3c55460380..1ff5c0b1cb 100644
--- a/bgpd/bgp_evpn_vty.c
+++ b/bgpd/bgp_evpn_vty.c
@@ -3784,13 +3784,13 @@ static void write_vni_config(struct vty *vty, struct bgpevpn *vpn)
 		if (is_rd_configured(vpn))
 			vty_out(vty, "   rd %s\n", vpn->prd_pretty);

-		if (!vpn->bgp_vrf ||
-		    (vpn->bgp_vrf && (vpn->vxlan_flood_ctrl != vpn->bgp_vrf->vxlan_flood_ctrl))) {
-			if (vpn->vxlan_flood_ctrl == VXLAN_FLOOD_DISABLED)
-				vty_out(vty, "   flooding disable\n");
-			else if (vpn->vxlan_flood_ctrl == VXLAN_FLOOD_HEAD_END_REPL)
-				vty_out(vty, "   flooding head-end-replication\n");
-		}
+		/* The mode of the VNI as configured: it applies whatever the
+		 * global mode becomes.
+		 */
+		if (vpn->vxlan_flood_ctrl == VXLAN_FLOOD_DISABLED)
+			vty_out(vty, "   flooding disable\n");
+		else if (vpn->vxlan_flood_ctrl == VXLAN_FLOOD_HEAD_END_REPL)
+			vty_out(vty, "   flooding head-end-replication\n");

 		frr_each (bgp_evpn_cfgd_rt_slu, &rt_config->cfgd_import, cfgd_rt) {
 			bgp_evpn_format_cfgd_rt(rt_buf, sizeof(rt_buf), cfgd_rt);