]> git.proxmox.com Git - mirror_frr.git/commitdiff
bgpd: import evpn entries with nexthop self attribute
authorPhilippe Guibert <philippe.guibert@6wind.com>
Wed, 8 Jan 2020 16:22:20 +0000 (17:22 +0100)
committerPhilippe Guibert <philippe.guibert@6wind.com>
Wed, 8 Jan 2020 17:18:58 +0000 (18:18 +0100)
import epvn entries with nexthop self attribute.

Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
bgpd/bgp_evpn.c

index 79a8fae530a005e74d562543af73627c2dbba19f..a93f81a8d855c34f72845340e176ff1f5e701991 100644 (file)
@@ -2704,6 +2704,8 @@ static int install_evpn_route_entry_in_vrf(struct bgp *bgp_vrf,
                pi->attr = attr_new;
                pi->uptime = bgp_clock();
        }
+       /* as it is an importation, change nexthop */
+       bgp_path_info_set_flag(rn, pi, BGP_PATH_ANNC_NH_SELF);
 
        bgp_aggregate_increment(bgp_vrf, &rn->p, pi, afi, safi);