Skip to content

Commit

Permalink
bgpd: mark path as valid for RTC
Browse files Browse the repository at this point in the history
Signed-off-by: Alexander Sohn <[email protected]>
  • Loading branch information
Sohn123 committed Sep 25, 2023
1 parent 496502f commit 2f7cdc4
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions bgpd/bgp_route.c
Original file line number Diff line number Diff line change
Expand Up @@ -6251,6 +6251,11 @@ static void bgp_nexthop_reachability_check(afi_t afi, safi_t safi,
struct bgp_dest *dest,
struct bgp *bgp)
{
if (safi == SAFI_RTC) {
bgp_unlink_nexthop(bpi);

bgp_path_info_set_flag(dest, bpi, BGP_PATH_VALID);
}
/* Nexthop reachability check. */
if (safi == SAFI_UNICAST || safi == SAFI_LABELED_UNICAST) {
if (CHECK_FLAG(bgp->flags, BGP_FLAG_IMPORT_CHECK)) {
Expand Down

0 comments on commit 2f7cdc4

Please sign in to comment.