Hi Marvin,

one approach to do this is to catch dpset.EventDP events like in
this example:

@set_ev_cls(dpset.EventDP)
    def dispatcher_change(self, ev):
        """
        For monitoring, print out the status of the connected datapath.
        Helpful for recognizing when Mininet was terminated and has left
over
        switch instances that create problems.

        :type ev: dpset.EventDP
        :param ev: The event
        """
        LOG.info('%s: dpset change for %s: enter=%s', __name__,
                 ev.dp.id, ev.enter)

For reference see my similar question from february:
http://comments.gmane.org/gmane.network.ryu.devel/1868



2013/6/22 Marvin Dsouza <[email protected]>

> Hi,
>
>
> I want to know if it is possible to send a custom packet from the
> controller to the switch and ask the switch to flood this to all other
> switches. This would be something similar to STP BPDU being transmitted to
> all neighbors.
>
> I have been unable to do this so far. I want to send a packer from
> controller to switch when the switch has successfully reached the
> MAIN_DISPATCHER phase. I am using the ofp_event.EventOFPStateChange.
>
> Im stuck on this , any help is appreciated.
>
> --
> Thanks and Regards,
>
> *Marvin D'souza*
> 408-429-0257
>
>
> ------------------------------------------------------------------------------
> This SF.net email is sponsored by Windows:
>
> Build for Windows Store.
>
> http://p.sf.net/sfu/windows-dev2dev
> _______________________________________________
> Ryu-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/ryu-devel
>
>
------------------------------------------------------------------------------
This SF.net email is sponsored by Windows:

Build for Windows Store.

http://p.sf.net/sfu/windows-dev2dev
_______________________________________________
Ryu-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ryu-devel

Reply via email to