]> git.puffer.fish Git - mirror/frr.git/commitdiff
bgpd: Include unsuppress-map as a valid outgoing policy
authorDonald Sharp <sharpd@nvidia.com>
Sat, 2 Mar 2024 14:42:30 +0000 (09:42 -0500)
committerDonatas Abraitis <donatas@opensourcerouting.org>
Mon, 18 Mar 2024 08:59:48 +0000 (10:59 +0200)
If unsuppress-map is setup for outgoing peers, consider that
policy is being applied as for RFC 8212.

Signed-off-by: Donald Sharp <sharpd@nvidia.com>
bgpd/bgp_route.c

index e63b3f4288bdde344314c58d957f3db31d97456b..f063fa96997d2ed68f0503c375834ef5c4e9ccd8 100644 (file)
@@ -5836,10 +5836,10 @@ bool bgp_outbound_policy_exists(struct peer *peer, struct bgp_filter *filter)
        if (peer->sort == BGP_PEER_IBGP)
                return true;
 
-       if (peer->sort == BGP_PEER_EBGP
-           && (ROUTE_MAP_OUT_NAME(filter) || PREFIX_LIST_OUT_NAME(filter)
-               || FILTER_LIST_OUT_NAME(filter)
-               || DISTRIBUTE_OUT_NAME(filter)))
+       if (peer->sort == BGP_PEER_EBGP &&
+           (ROUTE_MAP_OUT_NAME(filter) || PREFIX_LIST_OUT_NAME(filter) ||
+            FILTER_LIST_OUT_NAME(filter) || DISTRIBUTE_OUT_NAME(filter) ||
+            UNSUPPRESS_MAP_NAME(filter)))
                return true;
        return false;
 }