summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorShinpei Muraoka <shinpei.muraoka@gmail.com>2017-02-09 16:29:23 +0900
committerFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2017-02-11 14:21:04 +0900
commit83bf7fae1db9a6375ffea2d5005a20a431db761f (patch)
treee0dde265f767a7df96d2757c992a3fae64e564df
parent79741fdc889d6353561e8f5d8de89792be1ada6f (diff)
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 <shinpei.muraoka@gmail.com> Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
-rw-r--r--ryu/tests/packet_data/bgp4/flowspec_action_redirect.pcapbin0 -> 173 bytes
-rw-r--r--ryu/tests/packet_data/bgp4/flowspec_action_traffic_action.pcapbin0 -> 173 bytes
-rw-r--r--ryu/tests/packet_data/bgp4/flowspec_action_traffic_marking.pcapbin0 -> 173 bytes
-rw-r--r--ryu/tests/packet_data/bgp4/flowspec_action_traffic_rate.pcapbin0 -> 173 bytes
-rw-r--r--ryu/tests/packet_data/bgp4/flowspec_nlri_ipv4.pcapbin0 -> 217 bytes
-rw-r--r--ryu/tests/packet_data/bgp4/flowspec_nlri_vpn4.pcapbin0 -> 217 bytes
-rw-r--r--ryu/tests/unit/packet/test_bgp.py6
7 files changed, 6 insertions, 0 deletions
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
--- /dev/null
+++ b/ryu/tests/packet_data/bgp4/flowspec_action_redirect.pcap
Binary files 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
--- /dev/null
+++ b/ryu/tests/packet_data/bgp4/flowspec_action_traffic_action.pcap
Binary files 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
--- /dev/null
+++ b/ryu/tests/packet_data/bgp4/flowspec_action_traffic_marking.pcap
Binary files 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
--- /dev/null
+++ b/ryu/tests/packet_data/bgp4/flowspec_action_traffic_rate.pcap
Binary files 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
--- /dev/null
+++ b/ryu/tests/packet_data/bgp4/flowspec_nlri_ipv4.pcap
Binary files 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
--- /dev/null
+++ b/ryu/tests/packet_data/bgp4/flowspec_nlri_vpn4.pcap
Binary files 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: