From 83bf7fae1db9a6375ffea2d5005a20a431db761f Mon Sep 17 00:00:00 2001 From: Shinpei Muraoka Date: Thu, 9 Feb 2017 16:29:23 +0900 Subject: test_bgp: Add test cases for Flow Specification This patch adds the test cases for Flow Specification NLRI in MP_REAACH NLRI and Traffic Filtering Actions in EXTENDED_COMMUNITIES. Signed-off-by: Shinpei Muraoka Signed-off-by: FUJITA Tomonori --- ryu/tests/packet_data/bgp4/flowspec_action_redirect.pcap | Bin 0 -> 173 bytes .../packet_data/bgp4/flowspec_action_traffic_action.pcap | Bin 0 -> 173 bytes .../packet_data/bgp4/flowspec_action_traffic_marking.pcap | Bin 0 -> 173 bytes .../packet_data/bgp4/flowspec_action_traffic_rate.pcap | Bin 0 -> 173 bytes ryu/tests/packet_data/bgp4/flowspec_nlri_ipv4.pcap | Bin 0 -> 217 bytes ryu/tests/packet_data/bgp4/flowspec_nlri_vpn4.pcap | Bin 0 -> 217 bytes ryu/tests/unit/packet/test_bgp.py | 6 ++++++ 7 files changed, 6 insertions(+) create mode 100644 ryu/tests/packet_data/bgp4/flowspec_action_redirect.pcap create mode 100644 ryu/tests/packet_data/bgp4/flowspec_action_traffic_action.pcap create mode 100644 ryu/tests/packet_data/bgp4/flowspec_action_traffic_marking.pcap create mode 100644 ryu/tests/packet_data/bgp4/flowspec_action_traffic_rate.pcap create mode 100644 ryu/tests/packet_data/bgp4/flowspec_nlri_ipv4.pcap create mode 100644 ryu/tests/packet_data/bgp4/flowspec_nlri_vpn4.pcap diff --git a/ryu/tests/packet_data/bgp4/flowspec_action_redirect.pcap b/ryu/tests/packet_data/bgp4/flowspec_action_redirect.pcap new file mode 100644 index 00000000..70d65ee4 Binary files /dev/null and b/ryu/tests/packet_data/bgp4/flowspec_action_redirect.pcap differ diff --git a/ryu/tests/packet_data/bgp4/flowspec_action_traffic_action.pcap b/ryu/tests/packet_data/bgp4/flowspec_action_traffic_action.pcap new file mode 100644 index 00000000..952723ea Binary files /dev/null and b/ryu/tests/packet_data/bgp4/flowspec_action_traffic_action.pcap differ diff --git a/ryu/tests/packet_data/bgp4/flowspec_action_traffic_marking.pcap b/ryu/tests/packet_data/bgp4/flowspec_action_traffic_marking.pcap new file mode 100644 index 00000000..8f00c0f9 Binary files /dev/null and b/ryu/tests/packet_data/bgp4/flowspec_action_traffic_marking.pcap differ diff --git a/ryu/tests/packet_data/bgp4/flowspec_action_traffic_rate.pcap b/ryu/tests/packet_data/bgp4/flowspec_action_traffic_rate.pcap new file mode 100644 index 00000000..9f20f5e6 Binary files /dev/null and b/ryu/tests/packet_data/bgp4/flowspec_action_traffic_rate.pcap differ diff --git a/ryu/tests/packet_data/bgp4/flowspec_nlri_ipv4.pcap b/ryu/tests/packet_data/bgp4/flowspec_nlri_ipv4.pcap new file mode 100644 index 00000000..c7953484 Binary files /dev/null and b/ryu/tests/packet_data/bgp4/flowspec_nlri_ipv4.pcap differ diff --git a/ryu/tests/packet_data/bgp4/flowspec_nlri_vpn4.pcap b/ryu/tests/packet_data/bgp4/flowspec_nlri_vpn4.pcap new file mode 100644 index 00000000..74a7d174 Binary files /dev/null and b/ryu/tests/packet_data/bgp4/flowspec_nlri_vpn4.pcap differ diff --git a/ryu/tests/unit/packet/test_bgp.py b/ryu/tests/unit/packet/test_bgp.py index 6c764b67..07b21f91 100644 --- a/ryu/tests/unit/packet/test_bgp.py +++ b/ryu/tests/unit/packet/test_bgp.py @@ -283,6 +283,12 @@ class Test_bgp(unittest.TestCase): 'evpn_nlri_inc_multi_eth_tag', 'evpn_nlri_eth_seg', 'evpn_nlri_ip_prefix', + 'flowspec_nlri_ipv4', + 'flowspec_nlri_vpn4', + 'flowspec_action_traffic_rate', + 'flowspec_action_traffic_action', + 'flowspec_action_redirect', + 'flowspec_action_traffic_marking', ] for f in files: -- cgit v1.2.3