Good Morning Iwase,
Thanks a lot for the update I will try it asap! But I was curious could you set queues per port and not per switch?
In rest_QOS.py doc they say that at each POST curl the the configurations get overridden!
Last time when I tried something like,
curl -X POST -d '{"port_name": "s1-eth1", "type": "linux-htb", "max_rate": "1000000", "queues":
[{"max_rate": "500000"}, {"min_rate": "800000"}]}, {"port_name": "s1-eth2", "type": "linux-htb", "max_rate": "2000000", "queues":
[{"max_rate": "600000"}, {"min_rate": "900000"}]}' http://localhost:8080/qos/queue/0000000000000001
| jq .
then request the get $ curl -X GET http://localhost:8080/qos/queue/0000000000000001 | jq .
I could only see the queues configured in s1-eth2 (The last one)
Best,
Sherif
________________________________________
De : Iwase Yusuke <***@gmail.com>
Envoyé : jeudi 20 juillet 2017 08:36
À : Fahmy Sherif Alaa Salaheldin
Cc : ryu-***@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-***@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/ryu-devel
>