this is an updated RFC patch set for OFPxxx <-> json conversion.
this includes some not-so-related patches posted here but not merged yet.

i'd like to ask comments about esp. unit test parts.
(the last several patches)

changes from the previous one:
- adapt the major part of OF1.2.
- unit tests

YAMAMOTO Takashi (18):
  datapath_connection_factory deal with None datapath.id
  nx_match: some comments
  of13: add missing itertools import
  of12: prefix private attributes of OFPMatch with _
  of13: prefix private attributes of OFPMatch with _
  of12 OFPMatch: consistently use None to represent "no mask"
  ofctl_v1_2.actions_to_str: ignore unknown instructions
  rest_firewall: stop using ofproto_v1_2_parser.UINTxxx_MAX
  json representation of of-wire classes
  of-wire json: adapt OF1.0
  of12: json representation
  of12 OFPMatch: make length private
  test_parser_v12 abuse this to test to_jsondict and from_jsondict
  of12 json: update tests
  of-wire json: unit test
  of-wire json: a program to generate test data for unit tests
  of-wire json: generated data for unit test
  of-wire json: expected results

 ryu/app/rest_firewall.py                           |   8 +-
 ryu/controller/controller.py                       |  11 +-
 ryu/lib/ofctl_v1_2.py                              |   3 +
 ryu/ofproto/nx_match.py                            |   6 +
 ryu/ofproto/ofproto_parser.py                      | 151 ++++-
 ryu/ofproto/ofproto_v1_0_parser.py                 |  19 +-
 ryu/ofproto/ofproto_v1_2.py                        |  12 +
 ryu/ofproto/ofproto_v1_2_parser.py                 | 710 ++++++++++++---------
 ryu/ofproto/ofproto_v1_3_parser.py                 | 453 ++++++-------
 .../unit/ofproto/data/ofp_desc_stats_reply.packet  | Bin 0 -> 1072 bytes
 .../ofproto/data/ofp_desc_stats_reply.packet.json  |  14 +
 ryu/tests/unit/ofproto/data/ofp_packet_out.packet  | Bin 0 -> 138 bytes
 .../unit/ofproto/data/ofp_packet_out.packet.json   |  15 +
 ryu/tests/unit/ofproto/mkdata/Makefile             |   5 +
 ryu/tests/unit/ofproto/mkdata/rebar.config         |   3 +
 ryu/tests/unit/ofproto/mkdata/src/er.app.src       |   8 +
 ryu/tests/unit/ofproto/mkdata/src/x.erl            |  31 +
 ryu/tests/unit/ofproto/test_parser.py              | 105 +++
 ryu/tests/unit/ofproto/test_parser_v12.py          | 177 ++---
 19 files changed, 1094 insertions(+), 637 deletions(-)
 create mode 100644 ryu/tests/unit/ofproto/data/ofp_desc_stats_reply.packet
 create mode 100644 ryu/tests/unit/ofproto/data/ofp_desc_stats_reply.packet.json
 create mode 100644 ryu/tests/unit/ofproto/data/ofp_packet_out.packet
 create mode 100644 ryu/tests/unit/ofproto/data/ofp_packet_out.packet.json
 create mode 100644 ryu/tests/unit/ofproto/mkdata/Makefile
 create mode 100644 ryu/tests/unit/ofproto/mkdata/rebar.config
 create mode 100644 ryu/tests/unit/ofproto/mkdata/src/er.app.src
 create mode 100644 ryu/tests/unit/ofproto/mkdata/src/x.erl
 create mode 100644 ryu/tests/unit/ofproto/test_parser.py

-- 
1.8.1.5


------------------------------------------------------------------------------
This SF.net email is sponsored by Windows:

Build for Windows Store.

http://p.sf.net/sfu/windows-dev2dev
_______________________________________________
Ryu-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ryu-devel

Reply via email to