Currently, BGPSpeaker supports IPv6 and VPNv6 unicast
routes, but has some constraints.
e.g.)
- Not supports IPv6 router_id.
- Capability of IPv6 advertisement can not be enabled
with IPv4 peering.
The following pathes fix this problem and include some
improvements of unit test for BGP packet library.
IWASE Yusuke (7):
packet/bgp: Enable Extended Length flags if specified
test_bgp: Uncomment out test case for UPDATE
lib/ip: Add method to convert IPv4/IPv6 to int
packet/bgp: Refactor MP_REACH_NLRI and MP_UNREACH_NLRI
test_bgp: Enable to check parsed BGP message
test_bgp: Add test cases for IPv6 and VPNv6 routes
BGPSpeaker Support IPv6 and VPNv6 unicast routes
ryu/lib/ip.py | 45 +++++--
ryu/lib/packet/bgp.py | 138 ++++++++++------------
ryu/services/protocols/bgp/bgp_sample_conf.py | 22 ++++
ryu/services/protocols/bgp/bgpspeaker.py | 23 ++--
ryu/services/protocols/bgp/processor.py | 6 +-
ryu/services/protocols/bgp/rtconf/common.py | 3 +-
ryu/services/protocols/bgp/utils/bgp.py | 24 ++--
ryu/tests/integrated/common/ryubgp.py | 11 +-
ryu/tests/packet_data/bgp4/bgp4-update_ipv6.pcap | Bin 0 -> 168 bytes
ryu/tests/packet_data/bgp4/bgp4-update_vpnv6.pcap | Bin 0 -> 209 bytes
ryu/tests/unit/lib/test_ip.py | 54 ++++++++-
ryu/tests/unit/packet/test_bgp.py | 23 ++--
12 files changed, 215 insertions(+), 134 deletions(-)
create mode 100644 ryu/tests/packet_data/bgp4/bgp4-update_ipv6.pcap
create mode 100644 ryu/tests/packet_data/bgp4/bgp4-update_vpnv6.pcap
--
2.7.4
------------------------------------------------------------------------------
The Command Line: Reinvented for Modern Developers
Did the resurgence of CLI tooling catch you by surprise?
Reconnect with the command line and become more productive.
Learn the new .NET and ASP.NET CLI. Get your free copy!
http://sdm.link/telerik
_______________________________________________
Ryu-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ryu-devel