diff options
author | Yusuke Iwase <iwase.yusuke0@gmail.com> | 2015-09-17 16:31:06 +0900 |
---|---|---|
committer | FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> | 2015-09-18 08:32:18 +0900 |
commit | 95ae3c7211b5ef46d26de27706bbf29c3300bfbe (patch) | |
tree | 500f8decefc810bb7019d882b2dac24c1432843b | |
parent | be5b00996db0865b5a3e4c053dc4a08f108aa674 (diff) |
test_parser_ofpmatch: Add tests for Experimenter OXMs
Signed-off-by: IWASE Yusuke <iwase.yusuke0@gmail.com>
Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
-rw-r--r-- | ryu/tests/unit/ofproto/test_parser_ofpmatch.py | 29 |
1 files changed, 23 insertions, 6 deletions
diff --git a/ryu/tests/unit/ofproto/test_parser_ofpmatch.py b/ryu/tests/unit/ofproto/test_parser_ofpmatch.py index 48ed05b5..5beaa676 100644 --- a/ryu/tests/unit/ofproto/test_parser_ofpmatch.py +++ b/ryu/tests/unit/ofproto/test_parser_ofpmatch.py @@ -185,6 +185,28 @@ def _add_tests(): ('ipv6_nd_tll', Mac), ('mpls_label', Int4), ('mpls_tc', Int1), + # Old ONF Experimenter --> OpenFlow Basic (OF1.4+) + ('pbb_uca', Int1), + # ONF Experimenter --> OpenFlow Basic (OF1.5+) + ('tcp_flags', Int2), + ('actset_output', Int4), + # Nicira Experimenter + ('eth_dst_nxm', Mac), + ('eth_src_nxm', Mac), + ('tunnel_id_nxm', Int8), + ('tun_ipv4_src', IPv4), + ('tun_ipv4_dst', IPv4), + ('pkt_mark', Int4), + ('conj_id', Int4), + ('_dp_hash', Int4), + ('reg0', Int4), + ('reg1', Int4), + ('reg2', Int4), + ('reg3', Int4), + ('reg4', Int4), + ('reg5', Int4), + ('reg6', Int4), + ('reg7', Int4), # Common Experimenter ('field_100', B64), ] @@ -203,14 +225,9 @@ def _add_tests(): ('tunnel_id', Int8), ('ipv6_exthdr', Int2), ] - L[ofproto_v1_4_parser] = L[ofproto_v1_3_parser] + [ - # OpenFlow Basic (OF1.4+) - ('pbb_uca', Int1), - ] + L[ofproto_v1_4_parser] = L[ofproto_v1_3_parser] L[ofproto_v1_5_parser] = L[ofproto_v1_4_parser] + [ # OpenFlow Basic (OF1.5+) - ('tcp_flags', Int2), - ('actset_output', Int4), ('packet_type', Int4), ] |