]> git.puffer.fish Git - mirror/frr.git/commitdiff
bgpd: If we have a SAFI conflict do not allow labeled unicast to reset 8275/head
authorDonald Sharp <sharpd@nvidia.com>
Wed, 17 Mar 2021 02:28:29 +0000 (22:28 -0400)
committerDonald Sharp <sharpd@nvidia.com>
Wed, 17 Mar 2021 02:39:20 +0000 (22:39 -0400)
If we have a SAFI conflict, ie we are trying to activate safi's
UNICAST and LABELED_UNICAST at the same time, we should not
cause bestpath to be rerun and we should not try to put
labels on everything.

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

index 33c8f3c1f097bdb2ffed30f089272d3e778ba7bd..d51ce817d1072630af16167ab11eccc44403b11d 100644 (file)
@@ -2203,7 +2203,7 @@ int peer_activate(struct peer *peer, afi_t afi, safi_t safi)
 
        /* If this is the first peer to be activated for this
         * afi/labeled-unicast recalc bestpaths to trigger label allocation */
-       if (safi == SAFI_LABELED_UNICAST
+       if (ret != BGP_ERR_PEER_SAFI_CONFLICT && safi == SAFI_LABELED_UNICAST
            && !bgp->allocate_mpls_labels[afi][SAFI_UNICAST]) {
 
                if (BGP_DEBUG(zebra, ZEBRA))