rest_qos: fix error of additional a qos rule with "priority"
rest_qos: fix error of additional a qos rule with "priority"

Currently, rest_qos is impossible to set the "priority" of QoS rule on a switch.
Also, "priority" is should be described in the same depth as "match" and "actions".
This patch fixes these problems.

Now, rest_qos is possible to set the "priority" with the following curl command.

e.g.)
  $ curl -X POST -d '{"priority":"5",
                      "match": {"nw_dst": "10.0.0.1", "nw_proto": "UDP", "tp_dst": "5002"},
                      "actions":{"queue": "1"}}' http://localhost:8080/qos/rules/0000000000000001

Reported-by: Jace Liang <9f558a990eac810a5d37d4c1034cd6f284e2765b@gmail.com>
Signed-off-by: Minoru TAKAHASHI <1b2dd9db86d9aa32ea109f1bd7f72bf49e90d10b@gmail.com>
Signed-off-by: FUJITA Tomonori <93dac1fe9c4b2a3957982200319981492ad4976e@lab.ntt.co.jp>

habibiefaried/ryu,osrg/ryu,StephenKing/ryu,OpenState-SDN/ryu,diogommartins/ryu,diogommartins/ryu,iwaseyusuke/ryu,gareging/SDN_Framework,haniehrajabi/ryu,habibiefaried/ryu,gopchandani/ryu,hisaharu/ryu,elahejalalpour/ELRyu,StephenKing/summerschool-2015-ryu,sivaramakrishnansr/ryu,jazzmes/ryu,elahejalalpour/ELRyu,fkakuma/ryu,haniehrajabi/ryu,osrg/ryu,takahashiminoru/ryu,jazzmes/ryu,zangree/ryu,alanquillin/ryu,habibiefaried/ryu,StephenKing/ryu,darjus-amzn/ryu,hisaharu/ryu,alyosha1879/ryu,diogommartins/ryu,ysywh/ryu,TakeshiTseng/ryu,ynkjm/ryu,sivaramakrishnansr/ryu,ysywh/ryu,elahejalalpour/ELRyu,gopchandani/ryu,gopchandani/ryu,yamt/ryu,alyosha1879/ryu,Tesi-Luca-Davide/ryu,sivaramakrishnansr/ryu,gopchandani/ryu,lsqtongxin/ryu,alanquillin/ryu,shinpeimuraoka/ryu,Zouyiran/ryu,yamt/ryu,alanquillin/ryu,Zouyiran/ryu,fkakuma/ryu,John-Lin/ryu,lsqtongxin/ryu,lagopus/ryu-lagopus-ext,ttsubo/ryu,TakeshiTseng/ryu,Tejas-Subramanya/RYU_MEC,openvapour/ryu,John-Lin/ryu,evanscottgray/ryu,lsqtongxin/ryu,jalilm/ryu,Zouyiran/ryu,iwaseyusuke/ryu,alanquillin/ryu,TakeshiTseng/ryu,diogommartins/ryu,ttsubo/ryu,pichuang/ryu,jkoelker/ryu,shinpeimuraoka/ryu,haniehrajabi/ryu,Tejas-Subramanya/RYU_MEC,zyq001/ryu,openvapour/ryu,OpenState-SDN/ryu,gopchandani/ryu,zyq001/ryu,umkcdcrg01/ryu_openflow,openvapour/ryu,umkcdcrg01/ryu_openflow,zyq001/ryu,haniehrajabi/ryu,jazzmes/ryu,fkakuma/ryu,Tesi-Luca-Davide/ryu,ynkjm/ryu,lagopus/ryu-lagopus-ext,pichuang/ryu,fujita/ryu,osrg/ryu,Tesi-Luca-Davide/ryu,ynkjm/ryu,lagopus/ryu-lagopus-ext,umkcdcrg01/ryu_openflow,OpenState-SDN/ryu,zyq001/ryu,StephenKing/ryu,takahashiminoru/ryu,ttsubo/ryu,jalilm/ryu,openvapour/ryu,ynkjm/ryu,diogommartins/ryu,gareging/SDN_Framework,OpenState-SDN/ryu,hisaharu/ryu,habibiefaried/ryu,takahashiminoru/ryu,sivaramakrishnansr/ryu,elahejalalpour/ELRyu,OpenState-SDN/ryu,gareging/SDN_Framework,yamt/ryu,alyosha1879/ryu,darjus-amzn/ryu,jalilm/ryu,castroflavio/ryu,elahejalalpour/ELRyu,zangree/ryu,TakeshiTseng/ryu,lsqtongxin/ryu,John-Lin/ryu,lsqtongxin/ryu,umkcdcrg01/ryu_openflow,StephenKing/summerschool-2015-ryu,fujita/ryu,haniehrajabi/ryu,hisaharu/ryu,umkcdcrg01/ryu_openflow,openvapour/ryu,Tesi-Luca-Davide/ryu,fujita/ryu,darjus-amzn/ryu,ttsubo/ryu,zangree/ryu,yamt/ryu,iwaseyusuke/ryu,castroflavio/ryu,ysywh/ryu,zyq001/ryu,fkakuma/ryu,shinpeimuraoka/ryu,fujita/ryu,pichuang/ryu,jkoelker/ryu,evanscottgray/ryu,jalilm/ryu,evanscottgray/ryu,alanquillin/ryu,Tesi-Luca-Davide/ryu,zangree/ryu,John-Lin/ryu,ynkjm/ryu,Tejas-Subramanya/RYU_MEC,darjus-amzn/ryu,pichuang/ryu,yamt/ryu,shinpeimuraoka/ryu,osrg/ryu,TakeshiTseng/ryu,gareging/SDN_Framework,StephenKing/ryu,iwaseyusuke/ryu,Tejas-Subramanya/RYU_MEC,fujita/ryu,ysywh/ryu,darjus-amzn/ryu,ysywh/ryu,StephenKing/summerschool-2015-ryu,habibiefaried/ryu,sivaramakrishnansr/ryu,shinpeimuraoka/ryu,takahashiminoru/ryu,StephenKing/ryu,jalilm/ryu,jkoelker/ryu,zangree/ryu,pichuang/ryu,lagopus/ryu-lagopus-ext,John-Lin/ryu,fkakuma/ryu,takahashiminoru/ryu,alyosha1879/ryu,Zouyiran/ryu,StephenKing/summerschool-2015-ryu,lagopus/ryu-lagopus-ext,StephenKing/summerschool-2015-ryu,iwaseyusuke/ryu,Zouyiran/ryu,ttsubo/ryu,castroflavio/ryu,hisaharu/ryu,osrg/ryu,Tejas-Subramanya/RYU_MEC,gareging/SDN_Framework