Hi Yafeng, This has been asked before and the reply was to include the "dl_type" if you want to match on nw_dst / nw_src.
e.g. dl_type=0x0800 ​Benny On Wed, Nov 5, 2014 at 1:36 PM, Yafeng Zhou <[email protected]> wrote: > Hello All, > > I am learning SDN, and I used Ryu as the controller. And these days I am > trying to set qos on switches, and I do this by ryu-book > <http://osrg.github.io/ryu-book/ja/html/rest_qos.html>. Something goes > well, however when I set the qos rules as: > > root@ryu-vm:~# 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 > > > > the response is OK, however when I goes to confirm that as: > > root@ryu-vm:~# curl -X GET http://localhost:8080/qos/rules/0000000000000001 > > and the response is empty! > And I use theborwser: http://localhost:8080/qos/rules/0000000000000001 > > it feedback as: > > [{"switch_id":"0000000000000001"},"command_result":[]}] > > > > > Can anybody tell where I am wrong? > > Thank you in advance! > > > > ------------------------------------------------------------------------------ > > _______________________________________________ > Ryu-devel mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/ryu-devel > >
------------------------------------------------------------------------------
_______________________________________________ Ryu-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/ryu-devel
