https://osrg.github.io/ryu-book/en/html/rest_router.html
https://zoo.cs.yale.edu/classes/cs434/cs434-2017-spring/lectures/02-prognet-openflow.pdf
[root@kunpeng82 devuser]# curl -X POST -d ‘{"address": "172.16.10.1/24"}‘ http://localhost:8080/router/0000000000000001/2 {"result": "failure", "details": "Router SW is not connected. : switch_id=0000000000000001"} [root@kunpeng82 devuser]#
[root@kunpeng82 devuser]# curl http://localhost:8080/router/0000000000000001 curl: (7) Failed connect to localhost:8080; Connection refused [root@kunpeng82 devuser]# ryu-manager ryu.app.rest_router loading app ryu.app.rest_router loading app ryu.controller.ofp_handler instantiating app None of DPSet creating context dpset creating context wsgi instantiating app ryu.app.rest_router of RestRouterAPI instantiating app ryu.controller.ofp_handler of OFPHandler (26654) wsgi starting up on http://0.0.0.0:8080 (26654) accepted (‘127.0.0.1‘, 45350) 127.0.0.1 - - [11/Jul/2020 14:54:39] "POST /router/0000000000000001/2 HTTP/1.1" 404 215 0.004427 (26654) accepted (‘127.0.0.1‘, 45354) 127.0.0.1 - - [11/Jul/2020 14:56:21] "POST /router/0000000000000001/2 HTTP/1.1" 404 215 0.000506
原文:https://www.cnblogs.com/dream397/p/13285984.html