Hi,

> I'm using OpenFlow1.3 and I was trying to add more than one rules in one go 
> at the switch inside a loop, but it is not going through the iteration. 
> Instead, it just ran the loop only one time. I also got the following 
> warrning. Could you please help on this matter?

Your Application uses The OFPMatch of Old API.
OFPMatch of Old API is not acceptable that the serialize() is repeatedly 
executed.
I think to solve problems by useing OFPMatch of New API.

Just for your infomation, how to use OFPMatch of New API is described in the 
following document.
https://ryu.readthedocs.org/en/latest/ofproto_v1_3_ref.html#flow-match-structure


Thanks,


On 2016年02月22日 15:27, Talal Alharbi wrote:
>  Dear All,
> 
> I'm using OpenFlow1.3 and I was trying to add more than one rules in one go 
> at the switch inside a loop, but it is not going through the iteration. 
> Instead, it just ran the loop only one time. I also got the following 
> warrning. Could you please help on this matter?
> 
> Cheers,
> Talal
> 
>  File "/home/ubuntu/ryu/ryu/lib/hub.py", line 52, in _launch
>     func(*args, **kwargs)
>   File "/home/ubuntu/ryu/ryu/base/app_manager.py", line 275, in _event_loop
>     handler(ev)
>   File "/home/ubuntu/Desktop/Arphandler/ryuproxyall2.py", line 62, in 
> switch_features_handler
>     self.add_flow(datapath,  match, actions)
>   File "/home/ubuntu/Desktop/Arphandler/ryuproxyall2.py", line 103, in 
> add_flow
>     datapath.send_msg(mod)
>   File "/home/ubuntu/ryu/ryu/controller/controller.py", line 234, in send_msg
>     msg.serialize()
>   File "/home/ubuntu/ryu/ryu/ofproto/ofproto_parser.py", line 205, in 
> serialize
>     self._serialize_body()
>   File "/home/ubuntu/ryu/ryu/ofproto/ofproto_v1_3_parser.py", line 2492, in 
> _serialize_body
>     match_len = self.match.serialize(self.buf, offset)
>   File "/home/ubuntu/ryu/ryu/ofproto/ofproto_v1_3_parser.py", line 985, in 
> serialize
>     return self.serialize_old(buf, offset)
>   File "/home/ubuntu/ryu/ryu/ofproto/ofproto_v1_3_parser.py", line 1008, in 
> serialize_old
>     raise Exception('serializing an OFPMatch composed with '
> Exception: serializing an OFPMatch composed with old API multiple times is 
> not supported
> 
> 
> 
> ------------------------------------------------------------------------------
> 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