I have a added import ryu.topology.api to my simple_switch.py and I am
running it as

bin/ryu-manager ryu/app/simple_switch.py

According to my understanding,
It runs ryu.topology.switches.Switches because Switches is the class in
that python module (ryu.topology) that inherits app_manager.RyuApp.
Is my understanding correct?

Does this also mean that once the Switches is loaded as an RyuApp

when the framework sends ofp_event.EventOFPPortStatus to an application
program that is in the MAIN_DISPATCHER phase.

it calls the port_status_handler() inside Switches.
https://github.com/karthik82/ryu/blob/master/ryu/topology/switches.py#L611


when the framework sends ofp_event.EventOFPPacketIn to an application
program that is in the MAIN_DISPATCHER phase

it calls the packet_in_handler() inside Switches.
https://github.com/karthik82/ryu/blob/master/ryu/topology/switches.py#L683

If the above understanding is correct, then what about the order in which
packet_in_handlers are called?

is it Switches packet_in_handler followed by simple_switch.py
packet_in_handler()

Any help is greatly appreciated.

Thanks & Regards,
Karthik.
------------------------------------------------------------------------------
"Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE
Instantly run your Selenium tests across 300+ browser/OS combos.
Get unparalleled scalability from the best Selenium testing platform available
Simple to use. Nothing to install. Get started now for free."
http://p.sf.net/sfu/SauceLabs
_______________________________________________
Ryu-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ryu-devel

Reply via email to