tree: faa45336121500c5a700034498c039b5df088a38 [path history] [tgz]
  1. README.md
  2. __init__.py
  3. common/
  4. iadapter.py
  5. interface.py
  6. kafka/
  7. ponsim_olt/
  8. ponsim_onu/
python/adapters/README.md

How to Build and Develop a Voltha Adapter

The build and development environment of a Voltha Adapter is left to the developer's choice.

Build

You can build the Voltha Adapter by:

cd adapters
. env.sh
make build

The above has generates a few docker images. An example is below:

$ docker images
REPOSITORY                  TAG                                        IMAGE ID            CREATED             SIZE
voltha-adapter-ponsim-onu   latest                                     3638b16b5262        36 seconds ago      774MB
voltha-adapter-ponsim-olt   latest                                     9e98a3a8e1aa        58 seconds ago      775MB
voltha-base                 latest                                     40ed93942a6a        23 minutes ago      771MB
voltha-rw-core              latest                                     648be4bc594a        About an hour ago   29.1MB
voltha-protos               latest                                     d458a391cc81        12 days ago         2.66MB

Run the ponsim adapters

The simplest way to run the containerized adapters is using the docker compose command:

docker-compose -f ../compose/adapters-ponsim.yml up -d