Hi, On 2015年06月23日 05:43, Liu, Weijie wrote: > Hi, > > I was using Ryu 3.22 with Openflow 1.0 and tried to query the queue > information of the switches. But it failed with 404. > > What I did: > (1) sudo mn --controller remote --topo linear,3 > > (2) ryu-manager --observe-link rest_topology.py ofctl_rest.py > > (3) Then I used http://127.0.0.1:8080/stats/queue/1 to query queue > information of switch 1. It just said "404 resource not found" > > Any thing I missed? > Thanks a lot. > Jason Liu
It looks corredt. And,it works correctly in my environment(Ryu 3.22 and OpenFlow1.0). My procedure is as follows. > (1) sudo mn --controller remote --topo linear,3 $ sudo mn --controller remote --topo linear,3 *** Creating network *** Adding controller Unable to contact the remote controller at 127.0.0.1:6633 *** Adding hosts: h1 h2 h3 *** Adding switches: s1 s2 s3 *** Adding links: (h1, s1) (h2, s2) (h3, s3) (s1, s2) (s2, s3) *** Configuring hosts h1 h2 h3 *** Starting controller *** Starting 3 switches s1 s2 s3 *** Starting CLI: mininet> > (2) ryu-manager --observe-link rest_topology.py ofctl_rest.py $ ryu-manager --observe-link rest_topology.py ofctl_rest.py loading app rest_topology.py loading app ofctl_rest.py loading app ryu.topology.switches loading app ryu.controller.ofp_handler instantiating app None of DPSet creating context dpset creating context wsgi instantiating app ryu.topology.switches of Switches instantiating app rest_topology.py of TopologyAPI instantiating app ryu.controller.ofp_handler of OFPHandler instantiating app ofctl_rest.py of RestStatsApi (8339) wsgi starting up on http://0.0.0.0:8080/ > (3) Then I used http://127.0.0.1:8080/stats/queue/1 to query queue > information of switch 1. It just said "404 resource not found" $ curl -X GET http://127.0.0.1:8080/stats/queue/1 {"1": []} thanks, > > > > > ------------------------------------------------------------------------------ > Monitor 25 network devices or servers for free with OpManager! > OpManager is web-based network management software that monitors > network devices and physical & virtual servers, alerts via email & sms > for fault. Monitor 25 devices for free with no restriction. Download now > http://ad.doubleclick.net/ddm/clk/292181274;119417398;o > > > > _______________________________________________ > Ryu-devel mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/ryu-devel > ------------------------------------------------------------------------------ Monitor 25 network devices or servers for free with OpManager! OpManager is web-based network management software that monitors network devices and physical & virtual servers, alerts via email & sms for fault. Monitor 25 devices for free with no restriction. Download now http://ad.doubleclick.net/ddm/clk/292181274;119417398;o _______________________________________________ Ryu-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/ryu-devel
