Unit test please. At least basic one. thanks,
On Thu, Jun 13, 2013 at 05:34:24PM +0900, watanabe.fumitaka wrote: > add conversion to string of all member variable of each packet library. > this patch is > Based heavily on commit 2ef1107: ryu/ofproto/ofproto_parser.py by YAMAMOTO > Takashi. > > Sample of an output. > ethernet(src='ff:ff:ff:ff:ff:ff',ethertype='0x0806',dst='ff:ff:ff:ff:ff:ff') > > ipv4(src='131.151.32.21',header_length=15,proto=6,tos=0,dst='131.151.32.129',ttl=64,flags='0x01',version=4,identification='0x7836',offset=1480,csum='0xf597',total_length=79,option='\x86(\x00\x00\x00\x01\x01"\x00\x01\xae\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x01') > > > this update(v1->v2) contains following change. > use of ofproto_parser.StringifyMixin class. > > > --- > ryu/lib/packet/ethernet.py | 6 ++++++ > ryu/lib/packet/icmp.py | 5 +++-- > ryu/lib/packet/ipv4.py | 7 +++++++ > ryu/lib/packet/packet.py | 9 +++++++++ > ryu/lib/packet/packet_base.py | 7 ++++++- > ryu/ofproto/ofproto_parser.py | 5 +++++ > 6 files changed, 36 insertions(+), 3 deletions(-) > > > ------------------------------------------------------------------------------ > 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 > -- yamahata ------------------------------------------------------------------------------ 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
