Hi,
I am new to RYU controller, so kindly pardon me if this is a basic
question.
I am using the Ryu controller and a switch to setup a basic ping experiment
where I want to verify that two laptops connected to the same openflow
switch are able to ping each other.
I have installed OpenFlow 1.3 on a Linksys WRT54G router. I have installed
RYU controller on my laptop. I connect my laptop to port 4 on the switch,
and another laptop to port 2 on the switch.
Then I start the controller, and load the ofctl_rest.py app.
When I connect the switch to the controller, I get a log line saying that
the switch has connected successfully. I am also able to verify that ping
from my laptop to another laptop (and vice-versa) works fine.
Now I want to look at the stats of the switch, so I do
curl "http://127.0.0.1:8080/stats/switches"
but this returns me an empty json response []. Since I have at least 1
switch connected to the controller, I expect at least some output.
I also look at the controller and it has the log line
127.0.0.1 - - [15/Sep/2013 17:41:25] "GET /stats/switches HTTP/1.1" 200 109
0.004117
so I know that my request was correct.
I am not able to understand what am I doing wrong, so kindly help.
If it helps in answering, I am pasting the entire controller output below -
skulkrn2@skulkrn2:~/RYU/ryu/ryu/app$ ryu-manager --verbose ofctl_rest.py
loading app ofctl_rest.py
loading app ryu.controller.ofp_handler
creating context dpset
creating context wsgi
instantiating app ryu.controller.ofp_handler
instantiating app ofctl_rest.py
BRICK dpset
CONSUMES EventOFPPortStatus
CONSUMES EventOFPStateChange
CONSUMES EventOFPSwitchFeatures
BRICK ofp_event
PROVIDES EventOFPFlowStatsReply TO {'RestStatsApi': set(['main'])}
PROVIDES EventOFPPortStatus TO {'dpset': set(['main'])}
PROVIDES EventOFPPortStatsReply TO {'RestStatsApi': set(['main'])}
PROVIDES EventOFPDescStatsReply TO {'RestStatsApi': set(['main'])}
PROVIDES EventOFPStateChange TO {'dpset': set(['main', 'dead'])}
PROVIDES EventOFPSwitchFeatures TO {'dpset': set(['config'])}
CONSUMES EventOFPPortDescStatsReply
CONSUMES EventOFPErrorMsg
CONSUMES EventOFPSwitchFeatures
CONSUMES EventOFPEchoRequest
CONSUMES EventOFPHello
BRICK RestStatsApi
CONSUMES EventOFPFlowStatsReply
CONSUMES EventOFPDescStatsReply
CONSUMES EventOFPPortStatsReply
(7504) wsgi starting up on http://0.0.0.0:8080/
connected socket:<eventlet.greenio.GreenSocket object at 0xa4ff3ec>
address:('192.168.1.1', 36738)
hello ev <ryu.controller.ofp_event.EventOFPHello object at 0xa4ff6ac>
move onto config mode
127.0.0.1 - - [15/Sep/2013 17:41:25] "GET /stats/switches HTTP/1.1" 200 109
0.004117
And here is the command output -
skulkrn2@skulkrn2:~$ curl "http://127.0.0.1:8080/stats/switches"
[]skulkrn2@skulkrn2:~$
Thanks,
-Sachin.
------------------------------------------------------------------------------
LIMITED TIME SALE - Full Year of Microsoft Training For Just $49.99!
1,500+ hours of tutorials including VisualStudio 2012, Windows 8, SharePoint
2013, SQL 2012, MVC 4, more. BEST VALUE: New Multi-Library Power Pack includes
Mobile, Cloud, Java, and UX Design. Lowest price ever! Ends 9/22/13.
http://pubads.g.doubleclick.net/gampad/clk?id=64545871&iu=/4140/ostg.clktrk
_______________________________________________
Ryu-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ryu-devel