白盒PON OLT软件

pypon的Python项目详细描述


乒乓球

Pypon—一个简单的PON光线路终端(OLT)控制器,支持Voltha项目的OpenOLTAPI。

在python虚拟环境中安装pypon

$ virtualenv myenv
.. some output ..

$ source myenv/bin/activate
(myenv) $ pip install pypon

检查ponctl是否已安装

$ which ponctl
...myenv/bin/ponctl

PONCTL帮助

$ ponctl --help
Usage: ponctl [OPTIONS] COMMAND [ARGS]...

  ponctl - Command-line utility for managing PON whiteboxes

  Options:
    --help  Show this message and exit.

    Commands:
      devinfo  Get device info from OLT_HOST_PORT.
        ind      Get device info from OLT and, optionally, send them to Kafka...

使用ponctl显示olt设备信息

$ ponctl devinfo 10.90.0.114:9191
vendor: "EdgeCore"
model: "asfvolt16"
firmware_version: "BAL.2.6.0__Openolt.2018.10.04"
...

使用ponctl显示来自olt

的流指示
$ ponster ind 10.90.0.114:9191
2019-06-10 15:03.07 Southbound Grpc Rx
2019-06-10 15:03.07 Indications initialized
2019-06-10 15:03.07 openolt grpc starting
2019-06-10 15:03.07 openolt grpc started
waiting for indication...
olt_ind {
  oper_state: "up"
  }
  waiting for indication...
...

如果运行本地卡夫卡代理,请检查卡夫卡总线上的指示:

confluent-kafka/consumer.py localhost:9092 foo openolt.ind-10.90.0.114

开发

git clone git@github.com:shadansari/openolt.git
cd pypon
pipenv shell
pipenv install

如果更改,重建protobufs:

make protos

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

推荐PyPI第三方库


热门话题
java Grid loadmask(true)在gxt中不起作用   java将字符串索引转换为整数   为什么Java泛型适用于基元数组,但不适用于基元数组?   java如何让Azure应用程序服务Tomcat将所有80/443流量转发到运行在同一应用程序服务上的JBoss   具有多个值的java转换映射到树?   java如何设置SQL server连接URL?   java设置了多个相互独立的JFrame   安全性在JAVA中如何使用RSAPrivateKey的密码短语?   java不能使用比Apache Velocity中更大的条件   如何在Java中打印字符串的所有排列   停止Android Studio自动导入java。sql。日期   对象简单计算器程序java   java如何在安卓中使用“&”符号作为字符串?   java Connect,为我的安卓应用程序从REST API发布和获取数据