Wrong event. Use this instead

@set_ev_cls(EventDP)

It will be executed when a switch connects or disconnects.
You will just need to evaluate the "dp_event.enter" field to see if
it's true or false. If True, the switch connected. If False, the
switch disconnected.

See the documentation for more.

http://ryu.readthedocs.io/en/latest/ryu_app_api.html#ryu-controller-dpset-eventdp


Carlos


On 22 July 2018 at 04:34, Soe Ye Htet <soeyehtet1...@gmail.com> wrote:
> Dear RYU team,
>
> I install the OVS inside the raspberry pi and connect with the RYU
> controller. I am trying to detect the node failure detection. I put the
> @set_ev_cls(event.EventSwitchLeave) and print out the ev.switch.dp.id for
> the node failure detection. But when I shutdown the raspberry pi, RYU
> controller cannot detect the switch disconnection. I use in-band control
> approach.
>
> Best Regards,
> Soe Ye Htet
>
> ------------------------------------------------------------------------------
> 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
> Ryu-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/ryu-devel
>



-- 

Carlos Miguel Ferreira
Researcher at Telecommunications Institute
Aveiro - Portugal
Work E-mail - c...@av.it.pt
Skype & GTalk -> carlosmf...@gmail.com
LinkedIn -> http://www.linkedin.com/in/carlosmferreira

------------------------------------------------------------------------------
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
Ryu-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ryu-devel

Reply via email to