Hi, thanks for the quick response

On Mon, 27 Oct 2014 20:43:29 +0900
Tsuboi Toshiki <[email protected]> wrote:

> This code is not support for Ipv6Path.
> We need to handle Ipv6Path.
> 
> I will re-send patch after evaluating in ipv6 topology.

Seems that I can dump the change of ipv6 best path with the following
patch on the top of your patch:

diff --git a/ryu/services/protocols/bgp/bgpspeaker.py 
b/ryu/services/protocols/bgp/bgpspeaker.py
index fbb601b..19ed528 100644
--- a/ryu/services/protocols/bgp/bgpspeaker.py
+++ b/ryu/services/protocols/bgp/bgpspeaker.py
@@ -62,6 +62,7 @@ from ryu.services.protocols.bgp.rtconf.neighbors import 
LOCAL_ADDRESS
 from ryu.services.protocols.bgp.rtconf.neighbors import LOCAL_PORT
 from ryu.services.protocols.bgp.info_base.base import Filter
 from ryu.services.protocols.bgp.info_base.ipv4 import Ipv4Path
+from ryu.services.protocols.bgp.info_base.ipv6 import Ipv6Path
 from ryu.services.protocols.bgp.info_base.vpnv4 import Vpnv4Path
 from ryu.services.protocols.bgp.info_base.vpnv6 import Vpnv6Path
 
@@ -158,7 +159,7 @@ class BGPSpeaker(object):
         else:
             return
 
-        if isinstance(path, Ipv4Path):
+        if isinstance(path, Ipv4Path) or isinstance(path, Ipv6Path):
             prefix = path.nlri.addr + '/' + str(path.nlri.length)
             route_dist = None
             label = None

------------------------------------------------------------------------------
_______________________________________________
Ryu-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ryu-devel

Reply via email to