Hello Iwase, Thank you for your reply. I am already using this for port status, but is there a way to extract the OFPPS_LINK_DOWN message, or to somehow map between the port status messages and link status messages, like if the message is OFPPR_DELETE it is the same as OFPPS_LINK_DOWN? Or to be more precise, how to use OFPPort class to extract information about link status?
Best regards, Marko -----Original Message----- From: Iwase Yusuke [mailto:iwase.yusu...@gmail.com] Sent: Friday, January 26, 2018 1:28 AM To: marko.erem...@amres.ac.rs Cc: ryu-devel@lists.sourceforge.net Subject: Re: [Ryu-devel] Link status 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
smime.p7s
Description: S/MIME cryptographic signature
------------------------------------------------------------------------------ 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