GRPC_C DEVICE SIMULATOR
This is an executable (voltha_bal_driver), which will receive asfvolt16 adapter grpc-c messages and call respective device stub. It will send received responses/asynchronous indications from Device stub to Adapter.
GETTING STARTED
prerequisites to install grpc
INSTALLATION
steps to install grpc
steps to install grpc-c
Apply grpc-c patch
To obtain proto files - Have a repo sync of opencord code base:
- cp opencord/incubator/voltha/voltha/adapters/asfvolt16_olt/protos/* examples/
To autogenerate code from proto files:
- make autogen
Build voltha_bal_driver:
- Note: Remove "-O2" from Makefile - make clean_all;make
The ultimate executable voltha_bal_driver can be found under ~/grpc-c/build/examples/.libs/
USAGE:
./voltha_bal_driver "serverIP:port1" -C "serverIP:port2" -A "serverIP:port3" ./bal_core_dist -C "serverIP:port2" -A "serverIP:port3"
NOTE: 'bal_core_dist' is a broadcom executable. A bash helper script 'asfvolt-driver-build.sh' is available to automate most of the build steps
CONTRIBUTING
VERSIONING
AUTHORS Radisys Adapter Team
Licence
Acknowledgments