Hey Iwase, I've been trying all day and this doesn't seem to work.. I have the versions you have but I only use
ryu-manager ryu.app.rest_conf_switch ryu.app.ofctl_rest ryu.app.rest_qos when I am calling ryu. Do you think this is why I can't see the queues in ofctl_rest ? Sherif ________________________________________ De : Iwase Yusuke <iwase.yusu...@gmail.com> Envoyé : jeudi 20 juillet 2017 08:36 À : Fahmy Sherif Alaa Salaheldin Cc : ryu-devel@lists.sourceforge.net Objet : Re: [Ryu-devel] Queues not shown in get stats/queueconfig --> Confusion about rest_QOS and rest_OFCTL Hi Sherif, On my environment (Ryu 4.15, Open vSwitch 2.6.1 and Mininet 2.3.0), I can see queues via ofctl_rest. # Create Queues via rest_qos.py $ curl -X POST -d '{"port_name": "s1-eth1", "type": "linux-htb", "max_rate": "1000000", "queues": [{"max_rate": "500000"}, {"min_rate": "800000"}]}' http://localhost:8080/qos/queue/0000000000000001 | jq . [ { "switch_id": "0000000000000001", "command_result": { "result": "success", "details": { "0": { "config": { "max-rate": "500000" } }, "1": { "config": { "min-rate": "800000" } } } } } ] # Confirm Queues via rest_qos.py $ curl -X GET http://localhost:8080/qos/queue/0000000000000001 | jq . [ { "switch_id": "0000000000000001", "command_result": { "result": "success", "details": { "0": { "config": { "max-rate": "500000" } }, "1": { "config": { "min-rate": "800000" } } } } } ] # Confirm Queues via ofctl_rest $ curl -X GET http://localhost:8080/stats/queueconfig/1/1 | jq . { "1": [ { "queues": [ { "properties": [], "queue_id": 0, "port": 1 }, { "properties": [], "queue_id": 1, "port": 1 } ], "port": 1 } ] } Please note I could not see "properties" for each Queue. OVS does not seems to send "properties" info on OFPQueueGetConfigReply message. Thanks, Iwase On 2017年07月18日 22:31, Fahmy Sherif Alaa Salaheldin wrote: > Good Afternoon, > > > Simply I followed https://osrg.github.io/ryu-book/en/html/rest_qos.html > > > But then tried to verify that the Queues were added though the rest_OFCTL > > > curl -X GET http://localhost:8080/stats/queueconfig/1/1 > > > and it returned no queues configured. Is this normal? > > > My question is when I configure queues through rest_QOS I HAVE to also > generate flow rules with > rest_QOS > > > i.e send my flow rules to > > http://localhost:8080/qos/queue/0000000000000001 > > Correct? > > > Sherif > > > > ------------------------------------------------------------------------------ > Check out the vibrant tech community on one of the world's most > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > > > > _______________________________________________ > Ryu-devel mailing list > Ryu-devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/ryu-devel > ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot _______________________________________________ Ryu-devel mailing list Ryu-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/ryu-devel