Extend BGP_SEND_ASPATH_CHECK to cover confederations
Extend the check for BGP_SEND_ASPATH_CHECK to also cover confederations.
diff --git a/bgpd/bgp_route.c b/bgpd/bgp_route.c
index 010fd4d..19c6429 100644
--- a/bgpd/bgp_route.c
+++ b/bgpd/bgp_route.c
@@ -896,7 +896,6 @@
peer->host, peer->as);
return 0;
}
-#endif /* BGP_SEND_ASPATH_CHECK */
/* If we're a CONFED we need to loop check the CONFED ID too */
if (CHECK_FLAG(bgp->config, BGP_CONFIG_CONFEDERATION))
@@ -911,6 +910,7 @@
return 0;
}
}
+#endif /* BGP_SEND_ASPATH_CHECK */
/* Route-Reflect check. */
if (from->sort == BGP_PEER_IBGP && peer->sort == BGP_PEER_IBGP)