OpenFlow Spec 1.5 introduces OpenFlow eXtensible Statistics (OXS).
These patches add OFStats class in order to support OXS class 
parse/serialization.

Reflect comments for previous patches:
 - Introduces oxx_fields.py to share the logic functions with oxm_fields.py
   and oxs_fields.py
 - Implement IntDescrMlt to handle the OXS field which has multiple values.

TODO:
 1. Implementation for specific OXS Experimenter classes support, if exist.
    (eg. ONF Experimenter, Nicira Experimenter)
 2. To use OXS in all messages carrying flow entry statistics.
    (flow removed message, flow statistics multipart, flow aggregate mutipart)
 3. To rename existing flow statistics as flow description and to fix to use 
OXS.

I have the patches for 2 and plan to Implement one for 3.
But I couldn't generate packet data for unit tests of them
by using ryu/tests/packetgenerator2.
So I'm pending them.

IWASE Yusuke (4):
  oxs_fields: Add OXS class support
  test_oxs: Add unit test for oxs_fields.py
  ofproto_v1_5_parser: Add OPFStats parser for Flow Stats Structures
  test_parser_ofpstats: Add unit test for OFPStats class

 ryu/lib/type_desc.py                           |  41 ++++
 ryu/ofproto/ofproto_v1_5.py                    |  30 ++-
 ryu/ofproto/ofproto_v1_5_parser.py             | 140 +++++++++++++
 ryu/ofproto/oxm_fields.py                      | 260 ++++---------------------
 ryu/ofproto/oxs_fields.py                      | 157 +++++++++++++++
 ryu/ofproto/oxx_fields.py                      | 258 ++++++++++++++++++++++++
 ryu/tests/unit/ofproto/test_oxs.py             | 116 +++++++++++
 ryu/tests/unit/ofproto/test_parser_ofpstats.py | 203 +++++++++++++++++++
 8 files changed, 976 insertions(+), 229 deletions(-)
 create mode 100644 ryu/ofproto/oxs_fields.py
 create mode 100644 ryu/ofproto/oxx_fields.py
 create mode 100644 ryu/tests/unit/ofproto/test_oxs.py
 create mode 100644 ryu/tests/unit/ofproto/test_parser_ofpstats.py

-- 
1.9.1


------------------------------------------------------------------------------
_______________________________________________
Ryu-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ryu-devel

Reply via email to