On Wed, 15 May 2013 16:27:16 +0900
YAMAMOTO Takashi <[email protected]> wrote:

> this set change the way to convert of-wire message class to string.
> comments?
> 
> todo: other of versions, unit tests
> 
> some example outputs from LOG.debug('queue msg %s cls %s', msg, msg.__class__)
> 
> queue msg version: 0x1 msg_type 0xa xid 0x0 
> OFPPacketIn(buffer_id=256,data='33\x00\x00\x00\x16\xfa\x16>S"\xf2\x86\xdd`\x00\x00\x00\x00$\x00\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xff\x02\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x16:\x00\x05\x02\x00\x00\x01\x00\x8f\x00LE\x00\x00\x00\x01\x04\x00\x00\x00\xff\x02\x00\x00\x00\x00\x00\x00\x00\x00\x00\x01\xffS"\xf2',in_port=1,reason=0,total_len=90)
>  cls <class 'ryu.ofproto.ofproto_v1_0_parser.OFPPacketIn'>
> queue msg version: 0x1 msg_type 0xc xid 0x0 
> OFPPortStatus(desc=OFPPhyPort(port_no=1, hw_addr='\xea\xce\xac\xb0"\xe6', 
> name='tap4cbd8111-3f\x00\x00', config=0, state=0, curr=192, advertised=0, 
> supported=0, peer=0),reason=2) cls <class 
> 'ryu.ofproto.ofproto_v1_0_parser.OFPPortStatus'>
> queue msg version: 0x1 msg_type 0x2 xid 0x0 OFPEchoRequest(data='') cls 
> <class 'ryu.ofproto.ofproto_v1_0_parser.OFPEchoRequest'>
> queue msg version: 0x1 msg_type 0x13 xid 0x7770c00 OFPBarrierReply() cls 
> <class 'ryu.ofproto.ofproto_v1_0_parser.OFPBarrierReply'>
> queue msg version: 0x1 msg_type 0x6 xid 0xf32f9a91 
> OFPSwitchFeatures(actions=4095,capabilities=199,datapath_id=173820969928773,n_buffers=256,n_tables=255,ports={65534:
>  OFPPhyPort(port_no=65534, hw_addr='\x9e\x16\xd9*\xc8E', 
> name='br-int\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00', config=1, state=1, 
> curr=0, advertised=0, supported=0, peer=0)}) cls <class 
> 'ryu.ofproto.ofproto_v1_0_parser.OFPSwitchFeatures'>
> 
> YAMAMOTO Takashi (2):
>   StringifyMixin
>   of10: sprinkle StringifyMixin
> 
>  ryu/ofproto/ofproto_parser.py      | 47 
> +++++++++++++++++++++++++++++---------
>  ryu/ofproto/ofproto_v1_0_parser.py | 22 ++++++------------
>  2 files changed, 43 insertions(+), 26 deletions(-)

Applied, thanks.

------------------------------------------------------------------------------
AlienVault Unified Security Management (USM) platform delivers complete
security visibility with the essential security capabilities. Easily and
efficiently configure, manage, and operate all of your security controls
from a single console and one unified framework. Download a free trial.
http://p.sf.net/sfu/alienvault_d2d
_______________________________________________
Ryu-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ryu-devel

Reply via email to