this set implements the conversion from/to json in the packet library.

for dhcp, i will prepare a patch after the following patch was applied or 
rejected:
http://www.mail-archive.com/[email protected]/msg04415.html

some packet libraries skip the unittest for the conversion,
because of the difference between a json used for creation of the object(A)
and a json which the object generated(B).

A = packetlib.from_jsondict(jsondict)
B = A.to_jsondict()

in other words, some packet libraries are irreversible in json.
see patch 05, 08, 13, 15 and 19.

TBD: should the packet library be reversible in json?

any comments will be appreciated.


itoyuichi (19):
  packet lib: support the conversion from/to json with inner classes
  packet lib: make some properties human-readable with json
  packet lib: arp: add unittests for the conversion from/to json
  packet lib: bgp: add unittests for the conversion from/to json
  packet lib: bpdu: add unittests for the conversion from/to json
  packet lib: ethernet: add unittests for the conversion from/to json
  packet lib: icmp: add unittests for the conversion from/to json
  packet lib: icmpv6: add unittests for the conversion from/to json
  packet lib: igmp: add unittests for the conversion from/to json
  packet lib: ipv4: add unittests for the conversion from/to json
  packet lib: ipv6: add unittests for the conversion from/to json
  packet lib: llc: add unittests for the conversion from/to json
  packet lib: lldp: add unittests for the conversion from/to json
  packet lib: mpls: add unittests for the conversion from/to json
  packet lib: slow: add unittests for the conversion from/to json
  packet lib: tcp: add unittests for the conversion from/to json
  packet lib: udp: add unittests for the conversion from/to json
  packet lib: vlan: add unittests for the conversion from/to json
  packet lib: vrrp: add unittests for the conversion from/to json

 ryu/lib/packet/arp.py                  |    5 +
 ryu/lib/packet/bgp.py                  |   19 ++-
 ryu/lib/packet/bpdu.py                 |    5 +
 ryu/lib/packet/ethernet.py             |    5 +
 ryu/lib/packet/icmp.py                 |   10 +-
 ryu/lib/packet/icmpv6.py               |   34 ++++-
 ryu/lib/packet/igmp.py                 |    5 +
 ryu/lib/packet/ipv4.py                 |    5 +
 ryu/lib/packet/ipv6.py                 |   14 +-
 ryu/lib/packet/llc.py                  |    8 +-
 ryu/lib/packet/lldp.py                 |   11 +-
 ryu/lib/packet/packet_base.py          |   32 +++-
 ryu/lib/packet/slow.py                 |    6 +
 ryu/lib/packet/vrrp.py                 |    6 +
 ryu/tests/unit/packet/test_arp.py      |   25 +++
 ryu/tests/unit/packet/test_bgp.py      |  198 ++++++++++++++++++++++++
 ryu/tests/unit/packet/test_bpdu.py     |  138 +++++++++++++++++
 ryu/tests/unit/packet/test_ethernet.py |   19 +++
 ryu/tests/unit/packet/test_icmp.py     |   98 ++++++++++++
 ryu/tests/unit/packet/test_icmpv6.py   |  263 +++++++++++++++++++++++++++++++-
 ryu/tests/unit/packet/test_igmp.py     |   20 +++
 ryu/tests/unit/packet/test_ipv4.py     |   38 +++++
 ryu/tests/unit/packet/test_ipv6.py     |  247 ++++++++++++++++++++++++++++++
 ryu/tests/unit/packet/test_llc.py      |  110 +++++++++++++
 ryu/tests/unit/packet/test_lldp.py     |  127 +++++++++++++++
 ryu/tests/unit/packet/test_mpls.py     |   20 +++
 ryu/tests/unit/packet/test_slow.py     |   53 +++++++
 ryu/tests/unit/packet/test_tcp.py      |   26 ++++
 ryu/tests/unit/packet/test_udp.py      |   20 +++
 ryu/tests/unit/packet/test_vlan.py     |   20 +++
 ryu/tests/unit/packet/test_vrrp.py     |   89 +++++++++++
 31 files changed, 1649 insertions(+), 27 deletions(-)
 create mode 100644 ryu/tests/unit/packet/test_bpdu.py
 create mode 100644 ryu/tests/unit/packet/test_llc.py

-- 
1.7.10.4


------------------------------------------------------------------------------
October Webinars: Code for Performance
Free Intel webinars can help you accelerate application performance.
Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from 
the latest Intel processors and coprocessors. See abstracts and register >
http://pubads.g.doubleclick.net/gampad/clk?id=60133471&iu=/4140/ostg.clktrk
_______________________________________________
Ryu-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ryu-devel

Reply via email to