I am using OF1.3 then I am geetting the following error :
actions=[]
actions.append( OFPActionSetField(eth_dst="00:00:00:00:00:05"))
actions.append(OFPActionSetField(ip_dst="10.0.0.2"))
File "/home/ubuntu/ryu/ryu/lib/hub.py", line 48, in _launch
func(*args, **kwargs)
File "/home/ubuntu/ryu/ryu/base/app_manager.py", line 198, in _event_loop
handler(ev)
File "/home/ubuntu/ryu/ryu/app/simple_switch_13.py", line 105, in
_packet_in_handler
datapath.send_msg(out)
File "/home/ubuntu/ryu/ryu/controller/controller.py", line 203, in
send_msg
msg.serialize()
File "/home/ubuntu/ryu/ryu/ofproto/ofproto_parser.py", line 203, in
serialize
self._serialize_body()
File "/home/ubuntu/ryu/ryu/ofproto/ofproto_v1_3_parser.py", line 2312, in
_serialize_body
offset += a.len
AttributeError: 'OFPMatch' object has no attribute 'len'
On Wed, Apr 16, 2014 at 4:16 PM, YAMAMOTO Takashi <[email protected]>wrote:
> > hi guys,
> > actions=[]
> > actions.append( OFPActionSetField(eth_dst="00:00:00:00:00:05"))
> > actions.append(OFPActionSetField(ip_dst="10.0.0.2"))
>
> this api is for OF1.2 and later.
>
> > actions.append(datapath.ofproto_parser.OFPActionOutput(out_port))
> >
> > hub: uncaught exception: Traceback (most recent call last):
> > File "/home/ubuntu/ryu/ryu/lib/hub.py", line 48, in _launch
> > func(*args, **kwargs)
> > File "/home/ubuntu/ryu/ryu/base/app_manager.py", line 198, in
> _event_loop
> > handler(ev)
> > File "/home/ubuntu/ryu/ryu/app/prjct.py", line 85, in
> _packet_in_handler
> > datapath.send_msg(out)
> > File "/home/ubuntu/ryu/ryu/controller/controller.py", line 203, in
> > send_msg
> > msg.serialize()
> > File "/home/ubuntu/ryu/ryu/ofproto/ofproto_parser.py", line 203, in
> > serialize
> > self._serialize_body()
> > File "/home/ubuntu/ryu/ryu/ofproto/ofproto_v1_0_parser.py", line 2092,
> in
> > _serialize_body
> > a.serialize(self.buf, offset)
> > File "/home/ubuntu/ryu/ryu/ofproto/ofproto_v1_0_parser.py", line 381,
> in
> > serialize
> > buf, offset, self.type, self.len, self.nw_addr)
>
> it seems you are using OF1.0.
>
> YAMAMOTO Takashi
>
> > File "/home/ubuntu/ryu/ryu/ofproto/ofproto_parser.py", line 212, in
> > msg_pack_into
> > buf += struct.pack(fmt, *args)
> > error: cannot convert argument to integer
> >
> >
> > I am getting this error.Could u please help me. BtW i am testiung this in
> > mininet.
> >
> > Thank you in Advance,
> >
> > With Regards,
> > Sarath Allaka
> > IIT Hyderabad
>
------------------------------------------------------------------------------
Start Your Social Network Today - Download eXo Platform
Build your Enterprise Intranet with eXo Platform Software
Java Based Open Source Intranet - Social, Extensible, Cloud Ready
Get Started Now And Turn Your Intranet Into A Collaboration Platform
http://p.sf.net/sfu/ExoPlatform
_______________________________________________
Ryu-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ryu-devel