I am attempting to get some information from OpenFlow for my OpenFlow Application on RYU.
The information that I want to get is given below.
For each SWITCH,I want
- DPID
- STATE (ACTIVE/INACTIVE)
For each PORT, I want
- DPID
- PORT_NUMBER
- STATE
- PORT_STATE
Port state - Tracks Port Status message from OF. 1 - ACTIVE. 0 - INACTIVE.OpenFlow 1.0 has 2 types of port status from memory, one concerning whether the port has link and the other concerning whether the port is administratively up. I believe this port status tracks the second type - i.e. port status should be 1 if the port is administratively up even if it doesn't have a link.
Which messages should I listen to to get the above information.Also I tried getting information about ofp_event.EventOFPStateChange.
I tried looking at http://ryu.readthedocs.org/en/latest/genindex.html I couldn't find the information related to ofp_event.EventOFPStateChange.
Any help to point me in the right direction would be highly appreciated.