VOL-3419: Replicate voltha flows in openolt agent
- Use the flow_id, symmetric_flow_id, replication_flag and pbit_to_gemport_map
coming in Flow proto messge to replicate the flow as needed
- Use the CreateQueues and RemoveQueues messages to setup and remove gem_ports
- Use latest gRPC version 1.31.1 which allows fine tuning of gRPC threadpools
which allows for greating performance.
- Performance numbers when tested with openolt-scale-tester has been better with
using latest gRPC and threadpool tuning when compared to earlier. It is to be
noted that the performance is better even with openolt-agent replicating the flow
now.
- Scale tests with 512 subscribers have been successfull with BAL3.4.7.5 version
- Use openolt proto version 4.0.0
- Use openolt-test (for unit test) image version 2.0.1 (which bundles latest gRPC version 1.31.1)
- These changes are NOT backward compatible and openolt-agent will have a major
version bump to 3.0.0
Change-Id: I715c804bdf342e60d08cab6c59e1c21b8c5ac1f4
diff --git a/Makefile b/Makefile
index 7893114..b89f58e 100644
--- a/Makefile
+++ b/Makefile
@@ -27,27 +27,19 @@
## Variables
OPENOLTDEVICE ?= asfvolt16
-OPENOLT_PROTO_VER ?= v3.4.5
-GTEST_VER ?= release-1.8.0
-CMOCK_VER ?= 0207b30
-GMOCK_GLOBAL_VER ?= 1.0.2
-GRPC_VER ?= v1.27.1
+OPENOLT_PROTO_VER ?= v4.0.2
DOCKER ?= docker
DOCKER_REGISTRY ?=
DOCKER_REPOSITORY ?= voltha/
DOCKER_EXTRA_ARGS ?=
-DOCKER_TAG ?= 1.0.0
+DOCKER_TAG ?= 2.0.1
IMAGENAME = ${DOCKER_REGISTRY}${DOCKER_REPOSITORY}openolt-test:${DOCKER_TAG}
DOCKER_BUILD_ARGS ?= \
${DOCKER_EXTRA_ARGS} \
--build-arg OPENOLTDEVICE=${OPENOLTDEVICE} \
- --build-arg OPENOLT_PROTO_VER=${OPENOLT_PROTO_VER} \
- --build-arg GTEST_VER=${GTEST_VER} \
- --build-arg CMOCK_VER=${CMOCK_VER} \
- --build-arg GMOCK_GLOBAL_VER=${GMOCK_GLOBAL_VER} \
- --build-arg GRPC_VER=${GRPC_VER}
+ --build-arg OPENOLT_PROTO_VER=${OPENOLT_PROTO_VER}
test:
${DOCKER} run --rm -v $(shell pwd):/app $(shell test -t 0 && echo "-it") ${IMAGENAME} make -C agent/test test