Skip to main content

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 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...

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 git@github.com:shadansari/openolt.git
cd pypon
pipenv shell
pipenv install

Rebuild protobufs if changed:

make protos

Metadata

Release files for pypon 0.0.0.8

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pypon 0.0.0.8
File Size Uploaded
pypon-0.0.0.8.tar.gz 19.7 kB Details

Release files / pypon-0.0.0.8.tar.gz

Download URL pypon-0.0.0.8.tar.gz
Size 19.7 kB
Tags Source
SHA-256 checksum
How to use checksums
13031342e7b11c4e244c623ca563343da0979de53f28bc1f7f5646f8878f6379
BLAKE2b-256 checksum
How to use checksums
2a2d82ea263512d8d87ca70000bab332ae5aaa98b3527fd46ffec577885c02e6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.13.0 pkginfo/1.5.0.1 requests/2.18.4 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/2.7.12

Release history Release notifications | RSS feed

This release

0.0.0.8 This release

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page