Greeting All
I hope you're fine and well ,
the problem is solved when I used the bellow command :
mod = ofp_parser.OFPFlowMod (datapath=dp, priority=priority, match=match,
instructions=inst, hard_timeout=5
flags=ofp.OFPFF_SEND_FLOW_REM )
self.logger.info("--> Flow: added")
dp.send_msg(mod)
Best Regards
Munther Numan
Master Student
Faculty of Engineering
University Putra Malaysia
From: Munther Numan [mailto:[email protected]]
Sent: Wednesday, January 18, 2017 8:57 PM
To: Ryu-devel
Subject: [Ryu-devel] error: cannot convert argument to integer
Greeting All,
I get error below when I set hard_timeout to the flow I try in many ways
but same thing occurs , please if you can help me .
The command :
mod = parser.OFPFlowMod(datapath=dp, priority=priority,
match=match, instructions=inst,
hard_timeout=5)
self.logger.info("--> Flow: added")
dp.send_msg(mod)
The Error message :
ARP_PROXY_13: Exception occurred during handler processing. Backtrace from
offending handler [switch_features_handler] servicing event
[EventOFPSwitchFeatures] follows.
Traceback (most recent call last):
File "/usr/local/lib/python2.7/dist-packages/ryu/base/app_manager.py",
line 290, in _event_loop
handler(ev)
File "/home/mininet/ryu/ryu/app/SFSDMV3-09.py", line 55, in
switch_features_handler
self.add_flow(dp, 0, match, actions)
File "/home/mininet/ryu/ryu/app/SFSDMV3-09.py", line 98, in add_flow
dp.send_msg(mod)
File
"/usr/local/lib/python2.7/dist-packages/ryu/controller/controller.py", line
344, in send_msg
msg.serialize()
File
"/usr/local/lib/python2.7/dist-packages/ryu/ofproto/ofproto_parser.py", line
220, in serialize
self._serialize_body()
File
"/usr/local/lib/python2.7/dist-packages/ryu/ofproto/ofproto_v1_3_parser.py",
line 2686, in _serialize_body
self.out_group, self.flags)
File "/usr/local/lib/python2.7/dist-packages/ryu/lib/pack_utils.py", line
25, in msg_pack_into
struct.pack_into(fmt, buf, offset, *args)
error: cannot convert argument to integer
Best Regards
Munther Numan
Master Student
Faculty of Engineering
University Putra Malaysia
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
Ryu-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ryu-devel