On Thu, 14 Mar 2013 19:16:04 +0900 YAMADA Hideki <[email protected]> wrote:
> This is discovery module for switches and links between switches. > > For example: > > 1. Run mininet > $ sudo mn --topo=tree,depth=2 --controller=remote > > 2. Run ryu-manager with topology module and event dumper > $ ./bin/ryu-manager --verbose --observe-links ryu/topology/switches.py > ryu/topology/dumper.py > > 3. Event dumper receives SwitchEnter and LinkAdd events > EventSwitchEnter<dpid=2, 3 ports> > EventSwitchEnter<dpid=1, 2 ports> > EventSwitchEnter<dpid=3, 3 ports> > EventLinkAdd<Link: Port<dpid=2, port_no=3, LIVE> to Port<dpid=1, port_no=1, > LIVE>> > EventLinkAdd<Link: Port<dpid=3, port_no=3, LIVE> to Port<dpid=1, port_no=2, > LIVE>> > EventLinkAdd<Link: Port<dpid=1, port_no=2, LIVE> to Port<dpid=3, port_no=3, > LIVE>> > EventLinkAdd<Link: Port<dpid=1, port_no=1, LIVE> to Port<dpid=2, port_no=3, > LIVE>> > > 4. Down a link > mininet> link s1 s2 down > > 5. Event dumper receives LinkDelete event > EventPortModify<Port<dpid=1, port_no=1, DOWN>> > EventLinkDelete<Link: Port<dpid=1, port_no=1, DOWN> to Port<dpid=2, > port_no=3, LIVE>> > EventLinkDelete<Link: Port<dpid=2, port_no=3, LIVE> to Port<dpid=1, > port_no=1, LIVE>> > EventPortModify<Port<dpid=2, port_no=3, DOWN>> > EventPortModify<Port<dpid=2, port_no=3, DOWN>> > > > YAMADA Hideki (3): > Add sync flag and event src for Request/Reply event handling > topology: switch discovering module > topology: support link discovery > > bin/ryu-manager | 1 + > ryu/base/app_manager.py | 7 +- > ryu/controller/event.py | 6 +- > ryu/topology/dumper.py | 163 +++++++++ > ryu/topology/event.py | 128 ++++++++ > ryu/topology/switches.py | 819 > ++++++++++++++++++++++++++++++++++++++++++++++ > 6 files changed, 1121 insertions(+), 3 deletions(-) > create mode 100644 ryu/topology/__init__.py > create mode 100644 ryu/topology/dumper.py > create mode 100644 ryu/topology/event.py > create mode 100644 ryu/topology/switches.py Applied, thanks. The major problem for me is that the exported API is OF specific (e.g. class Switch includes dp). But I think that this feature is wanted so much. So I merged this and fix it later. ------------------------------------------------------------------------------ Everyone hates slow websites. So do we. Make your web apps faster with AppDynamics Download AppDynamics Lite for free today: http://p.sf.net/sfu/appdyn_d2d_mar _______________________________________________ Ryu-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/ryu-devel
