Hi Marko,

How about the following?
http://ryu.readthedocs.io/en/latest/ofproto_v1_3_ref.html#port-status-message

You can use;
    @set_ev_cls(ofp_event.EventOFPPortStatus, MAIN_DISPATCHER)
to detect link state changes.

Thanks,
Iwase

On 2018年01月26日 05:48, Marko Eremija wrote:
Hello,

I am trying to write a Ryu app that will be able to get link status. I would
like to find a way to notify the controller about the reason why link is down
(e.g. by using OFPPS_LINK_DOWN message), and trigger actions if that is the
case. If I understand correctly, I cannot use the Port class from
ofproto_v1_3_parser.py to get the link status, like this e.g.:

@set_ev_cls(ofp_event.EventOFPPSLinkDown, [MAIN_DISPATCHER])

If someone would just tell me where to find this information, that would be
much appreciated.

Best regards,

Marko



------------------------------------------------------------------------------
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


------------------------------------------------------------------------------
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