Initial commit of a simple OpenOLT simulator
make openoltsim
./build/openoltsim
Openoltsim is meant to simulate an OLT running the OpenOLT driver.
Currently, it only sends the the "olt up" indication allowing
voltha pre-provision/enable commands to connect to openoltsim.
Change-Id: I95910657d269e37f4e4943d2b91f2780ecd8fd08
diff --git a/Makefile b/Makefile
index a9e4a93..2928a1b 100644
--- a/Makefile
+++ b/Makefile
@@ -184,6 +184,19 @@
########################################################################
##
##
+## openoltsim
+##
+##
+SIM_SRCS = $(wildcard openoltsim/*.cc)
+SIM_OBJS = $(SIM_SRCS:.cc=.o)
+SIM_DEPS = $(SIM_SRCS:.cc=.d)
+openoltsim: $(BUILD_DIR)/openoltsim
+$(BUILD_DIR)/openoltsim: protos $(SIM_OBJS)
+ $(CXX) -pthread -L/usr/local/lib $(SIM_OBJS) $(OPENOLT_API_LIB) /usr/local/lib/libprotobuf.a -o $@ -lgrpc++ -lgrpc -lpthread -ldl
+
+########################################################################
+##
+##
## Main
##
##
@@ -238,4 +251,4 @@
distclean:
rm -rf $(BUILD_DIR)
-.PHONY: onl sdk bal protos prereq
+.PHONY: onl sdk bal protos prereq openoltsim