]> git.puffer.fish Git - mirror/frr.git/commit
bgpd:Fixing a conflict issue between rmap_in_change_flag and rmap_out_change_flag.
authorJack.zhang <hanyu.zly@alibaba-inc.com>
Wed, 28 Jun 2023 03:38:41 +0000 (11:38 +0800)
committerJack.zhang <hanyu.zly@alibaba-inc.com>
Wed, 28 Jun 2023 03:42:19 +0000 (11:42 +0800)
commita725bf4bbb556006c0f8a1e4f7c81a6623ef5492
treecc2b84533cca6fde88a6d3687dbc028c09fe1e61
parent579d00e167bedfd9770cf5c1b692fa0d56f8196c
bgpd:Fixing a conflict issue between rmap_in_change_flag and rmap_out_change_flag.

Imagine the following scenario:
when a neighbor has an inbound policy set to modify the next hop, but no outbound route-map is configured.
In this case, if(!post_attr && (ROUTE_MAP_OUT_NAME(filter) || bgp_path_suppressed(pi))) returns false, causing rmap_in_change_flag to not be correctly cleared, and mistakenly identified as rmap_out_change_flag, leading to the failure of the subsequent neighbor-nexthop-self command.

Signed-off-by: Jack.zhang <hanyu.zly@alibaba-inc.com>
bgpd/bgp_route.c