Currently, BGPSpeaker skips sending the Update messages with an IPv4/IPv6 prefix when the peer does not support MP-BGP. This patch fixes capability check in order to send IP prefix when MP-BGP not suppored by the peer.
Signed-off-by: IWASE Yusuke <[email protected]> --- ryu/services/protocols/bgp/peer.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ryu/services/protocols/bgp/peer.py b/ryu/services/protocols/bgp/peer.py index 53582b3..50c280b 100644 --- a/ryu/services/protocols/bgp/peer.py +++ b/ryu/services/protocols/bgp/peer.py @@ -48,6 +48,7 @@ from ryu.lib.packet import bgp from ryu.lib.packet.bgp import RouteFamily from ryu.lib.packet.bgp import RF_IPv4_UC +from ryu.lib.packet.bgp import RF_IPv6_UC from ryu.lib.packet.bgp import RF_IPv4_VPN from ryu.lib.packet.bgp import RF_IPv6_VPN from ryu.lib.packet.bgp import RF_RTC_UC @@ -1873,7 +1874,8 @@ class Peer(Source, Sink, NeighborConfListener, Activity): # Check if this session is available for given paths afi/safi path_rf = path.route_family - if not self.is_mpbgp_cap_valid(path_rf): + if not (self.is_mpbgp_cap_valid(path_rf) or + path_rf in [RF_IPv4_UC, RF_IPv6_UC]): LOG.debug('Skipping sending path as %s route family is not' ' available for this session', path_rf) return -- 2.7.4 ------------------------------------------------------------------------------ Attend Shape: An AT&T Tech Expo July 15-16. Meet us at AT&T Park in San Francisco, CA to explore cutting-edge tech and listen to tech luminaries present their vision of the future. This family event has something for everyone, including kids. Get more information and register today. http://sdm.link/attshape _______________________________________________ Ryu-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/ryu-devel
