commit | f886ba51991172aaf606636195912c4b4955cfd9 | [log] [tgz] |
---|---|---|
author | Donald Newton <donNewtonAlpha@gmail.com> | Thu Oct 04 19:38:08 2018 +0000 |
committer | Gerrit Code Review <gerrit@opencord.org> | Thu Oct 04 19:38:08 2018 +0000 |
tree | ea7d0a532bdc213c804059250f8084e079b94a72 | |
parent | cced3ffce1bf0a8f4fc1373448dcb77da1e5eb2d [diff] | |
parent | b8f30750024c0c44f9e6e83a0647e8b769c09012 [diff] |
Merge "SEBA-281 DeleteONT"
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 make docker # builds a docker container with the AbstractOLT and client in /app
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 2048 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