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

Reply via email to