Skip to content

OpenNetworkingFoundation/pypon

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

42 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pypon

pypon - A simple controller for PON Optical Line Terminals (OLTs) that support the VOLTHA project's Openolt API.

Install pypon in a Python virtual environment

$ virtualenv myenv
.. some output ..

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

Check ponctl is installed

$ which ponctl
...myenv/bin/ponctl

ponctl help

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

  ponctl - Command-line utility for managing PON white-boxes

  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

Use ponctl to display OLT device info

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

Use ponctl to display streaming indications from 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...
...

If running a local kafka broker, check indications on kafka bus:

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

Develop

git clone [email protected]:shadansari/pypon.git
cd pypon
pipenv shell
pipenv install

Rebuild protobufs if they've changed:

make protos

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published