Hi,

  Thanks! I figured out the cause of the issue.

On 15.02.2016 06:00, Shinpei Muraoka wrote:
> Hi,
>
>> "/usr/local/lib/python2.7/dist-packages/ryu/ofproto/ofproto_v1_3_parser.py",
>> line 2385, in _serialize_body
>>       self.buf += self.data
>> TypeError: can't concat Packet to bytearray
> This problem has occurred because it specifies the wrong format in the packet.
> You do not specify the ryu.lib.packet.packet.Packet class object to packet.
> When generating a packet, call the serialize method of the object and 
> generate the byte sequence.
>
> Just for your infomation, how to use Generation of Packets (Serialization) is 
> described in the following document.
> http://shinpeimuraoka.github.io/ryu-book/en/build/html/packet_lib.html#generation-of-packets-serialization
>
> thanks,
>
>
> On 2016年02月14日 19:18, Stas Kozlov wrote:
>> Hi, All
>>
>> What is data format for ofp_parser.OFPPacketOut()? I was trying to build
>> packet with ryu.lib.packet.packet:
>> ethernet(dst='00:00:00:00:00:00',ethertype=33024,src='00:07:0d:af:f4:54'),
>> vlan(cfi=0,ethertype=2048,pcp=0,vid=32),
>> ipv4(csum=60513,dst='131.151.32.129',flags=0,header_length=20,identification=35421,offset=1480,option='TEST',proto=1,src='131.151.32.21',tos=0,total_length=24,ttl=64,version=4)
>> But got an error:
>>     File
>> "/usr/local/lib/python2.7/dist-packages/ryu/ofproto/ofproto_v1_3_parser.py",
>> line 2385, in _serialize_body
>>       self.buf += self.data
>> TypeError: can't concat Packet to bytearray
>>
>>    Thanks in advance
>>
>> ------------------------------------------------------------------------------
>> Site24x7 APM Insight: Get Deep Visibility into Application Performance
>> APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
>> Monitor end-to-end web transactions and take corrective actions now
>> Troubleshoot faster and improve end-user experience. Signup Now!
>> http://pubads.g.doubleclick.net/gampad/clk?id=272487151&iu=/4140
>> _______________________________________________
>> Ryu-devel mailing list
>> [email protected]
>> https://lists.sourceforge.net/lists/listinfo/ryu-devel
>>


------------------------------------------------------------------------------
Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
http://pubads.g.doubleclick.net/gampad/clk?id=272487151&iu=/4140
_______________________________________________
Ryu-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ryu-devel

Reply via email to