opendaylight客户端库和命令

python-odlclient的Python项目详细描述


https://travis-ci.org/yuuichi-fujioka/python-odlclient.svg?branch=master

用于python的opendaylight客户端

如何使用

安装

PYPI包:

pip install python-odlclient

来源:

pip install git+https://github.com/yuuichi-fujioka/python-odlclient.git

运行命令

opendaylight主机、端口、用户和密码通过环境变量传递。例如:

ODL_HOST=192.168.0.100 odl node list

环境变量名是:

NameDescription
ODL_HOSTOpenDaylight Hostname(default: localhost)
ODL_PORTOpenDaylight API Port(default: 8181)
ODL_USEROpenDaylight API User Name(default admin)
ODL_PASSOpenDaylight API Password(default: password)
ODL_URLDefault Restconf API Path(default: http://${ODL_HOST}:${ODL_PORT}/restconf/operational/)
  • 列出节点
odl node list
  • 列表
odl table list openflow:1111111111
  • 列表流
odl flow list openflow:1111111111
  • 列出节点连接器
odl connector list openflow:1111111111
  • 添加流
odl flow create openflow:201106209703495 100 29 --dl-src 00:00:00:00:00:00/01:00:00:00:00:00 --instructions output:1,output:2

如果您想知道http请求/响应的详细信息,可以设置-debug和-verbose选项。即

odl --deubg --verbose node list

欢迎加入QQ群-->: 979659372 Python中文网_新手群

推荐PyPI第三方库


热门话题
算法图形。路径方向Java枚举方向问题无法使用EAST   Java:将字符串转换为特定语言环境   javaspringboot&Thymeleaf为后续调用保存搜索表单的最佳方法   mapreduce程序中未调用java reducer   java如何将url中的Gif文件保存到手机中?   如何在JavaSwing中使用[Esc]键最小化JInternalFrame?   java创建了一个包含100个按钮、80个空按钮和20个随机按钮的网格布局   如何在java中使用数组对2d字符串数组中的每一行进行排序。分类   java无法识别的SSL消息,纯文本连接?例外   为什么Java编译器允许在抛出部分列出方法无法抛出的异常   java将预测数组添加到训练数组   java从Ajax调用获取响应文本   使用改型2的java应用程序等待一分钟后退出