commit | bd3736d57a4720df743c0ef005d70a903667653f | [log] [tgz] |
---|---|---|
author | William Kurkian <wkurkian@cisco.com> | Fri Mar 08 12:20:40 2019 -0500 |
committer | William Kurkian <wkurkian@cisco.com> | Fri Mar 08 14:37:42 2019 -0500 |
tree | fa6d29c233fe4fb0086aa14d3fa77ed0206bca98 | |
parent | 37e0fc6c94cd5c28cda30a83522943390b880c1f [diff] |
VOL-1460 I need to test out a method sharing protos. In particular, it is the protos under the go/folder Plus some updates to the build process. Change-Id: I5878354fd1ef136d4f0a019b22de96afdb0205e1
Protobuf files used by VOLTHA.
Currently this is used to generate both go and python.
Protobuf definition files are located in protos/voltha_protos
directory. This directory heirarchy and import scheme is required to allow the python code generated by the GRPC compiler to have the correct import paths.
NOTE: The
protos/google/api
directory has files copied from the Google APIs, and is only included for initial compilation of the VOLTHA protobuf files - these API's should be installed independently via either the python googleapis-common-protos package or the golang go-genproto repo.
make build
use dist/*.tar.gz for local imports
Installation: pip install voltha-protos
Use: from voltha_protos import voltha_pb2
go get ...
make test
will run tests for all languages.