commit | af2297488daf637e4f285d216656226b840b9026 | [log] [tgz] |
---|---|---|
author | donNewtonAlpha <donNewtonAlpha@gmail.com> | Wed Sep 19 13:22:00 2018 -0400 |
committer | donNewtonAlpha <donNewtonAlpha@gmail.com> | Wed Sep 19 13:22:00 2018 -0400 |
tree | 556530c5a4e8ca696a87d65d3eb0624c071d3f31 | |
parent | b3279ea0e7f6c621ca19fa78c801784bf0c57ce0 [diff] |
seba-261 Added dummy mode cmd line switch Change-Id: Ide8e61bc65e8eb7218bc3b8a7d4cbcc279d7a25a
AbstractOLT provides a mapping service from AT&T's, and potentially other's, provisioning platform to SEBA/Voltha. It presents a facade of the hardware that resembles a 16 slot / with 16 PON ports each. Internally it maps PON ports on the abstractOLT to PON ports on physical OLT chasssis.
go get -u github.com/grpc-ecosystem/grpc-gateway/protoc-gen-grpc-gateway
go get -u github.com/grpc-ecosystem/grpc-gateway/protoc-gen-swagger
go get -u github.com/golang/protobuf/protoc-gen-go
go get gerrit.opencord.org/abstract-olt/cmd/AbstractOLT
make clean # clears all generated and compiler output. make dep # pulls any go dependencies. make api # generates grpc code and swagger files make server # compiles AbstractOLT into bin directory make client # compiles a test client which exercises some of the server api functions make all # builds everything
Before running you will need to create a cert directory under bin and generate ssl certificates
cd bin mkdir cert openssl genrsa -out cert/server.key 204 openssl req -new -x509 -sha256 -key cert/server.key -out cert/server.crt -days 3650 openssl req -new -sha256 -key cert/server.key -out cert/server.csr openssl x509 -req -sha256 -in cert/server.csr -signkey cert/server.key -out cert/server.crt -days 3650
cd bin ./AbstractOLT # or ./AbstractOLT -d # for debug logging
This will create/append an AbstractOLT.log file in the current directory that will contain some runtime information