首页 > 其他 > 详细

ryu rest router

时间:2020-07-12 00:01:24      阅读:94      评论:0      收藏:0      [点我收藏+]

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

Go to file
 
[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

 

ryu rest router

原文:https://www.cnblogs.com/dream397/p/13285984.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!