commit | 522096601ae2816f4410a51c89c85a353cc1fb0a | [log] [tgz] |
---|---|---|
author | Zack Williams <zdw@opennetworking.org> | Thu Feb 07 10:15:31 2019 -0700 |
committer | Zack Williams <zdw@opennetworking.org> | Fri Mar 01 16:23:43 2019 -0700 |
tree | 5c8d39c1dd14029632101c6beb18f26f2d31f233 | |
parent | 21bb041358d7e4e98ca4beb86923dd76f1351354 [diff] |
[VOL-1460] - Imported protobuf definitions from pyvoltha at https://gerrit.opencord.org/gitweb?p=pyvoltha.git, commit hash: 944aee71301b8ddb211b6e51d685f56d5c4a911b - Imported upstream Google API protos from https://github.com/googleapis/googleapis, commit hash: 5a90fbea68ce4a6e87c20d2df10df5ecd88299ff - Fixed `import` paths and directory heirarchy in protobuf definitions to be compatible with both python 2 and 3. - Created Makefile scaffold to generate language-specific bindings for python and go Change-Id: Idd6b6b985a5eae4c38d40dd07ae78744c09e37f5
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.
Installation: pip install voltha-protos
Use: from voltha_protos import voltha_pb2
go get ...
make test
will run tests for all languages.