Thank you!
I haven't set the flag.
On Mon, Oct 3, 2016 at 4:10 AM, Michał Rzepka <[email protected]>
wrote:
> Hello,
>
> At first glance your piece of code seems to be correct. Does your flow
> have OFPFF_SEND_FLOW_REM flag set? Also, try to use logger provided by Ryu
> application (self.logger... in simple_switch.py) to print out messages.
> Then make sure correct verbosity level is set for your logger.
>
> Regards,
>
> ---
> Michał Rzepka
>
>
> W dniu 2016-10-03 02:21, Garegin Grigoryan napisał(a):
>
>> Hi all,
>>
>> I'm working on simple_switch.py file, which uses OpenFlow 1.0 to
>> communicate with OVS switch.
>> I want to subscribe to FlowRemoved event.
>>
>> @set_ev_cls(ofp_event.EventOFPFlowRemoved, MAIN_DISPATCHER)
>> def flow_removal_handler(self, ev):
>> msg = ev.msg
>> match = msg.match
>> reason = msg.reason
>> print "flow_removed_handler"
>>
>> The flow is being removed by the idle_time, and I can see that it's
>> happening on the switch.
>>
>> But I can't see the printed message ("flow_removed_handler") on the
>> controller.
>>
>> Do I need something else other than these lines in my simple_switch.py
>> file?
>>
>> Thank you,
>>
>> --
>>
>> Sincerely,
>> Garegin Grigoryan
>> ------------------------------------------------------------
>> ------------------
>> 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
>>
>
--
Sincerely,
Garegin Grigoryan
------------------------------------------------------------------------------
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