diff --git a/Makefile b/Makefile index e6c07b24..a1aed09c 100644 --- a/Makefile +++ b/Makefile @@ -15,10 +15,6 @@ export PATH := $(PATH):$(GOBIN):$(shell dirname $(GO)) export CGO_LDFLAGS := -lswsscommon -lhiredis export CGO_CXXFLAGS := -I/usr/include/swss -w -Wall -fpermissive -SRC_FILES=$(shell find . -name '*.go' | grep -v '_test.go' | grep -v '/tests/') -TEST_FILES=$(wildcard *_test.go) -TELEMETRY_TEST_DIR = build/tests/gnmi_server -TELEMETRY_TEST_BIN = $(TELEMETRY_TEST_DIR)/server.test ifeq ($(ENABLE_TRANSLIB_WRITE),y) BLD_TAGS := gnmi_translib_write endif @@ -39,7 +35,7 @@ GO_DEPS := vendor/.done PATCHES := $(wildcard patches/*.patch) PATCHES += $(shell find $(MGMT_COMMON_DIR)/patches -type f) -all: sonic-gnmi $(TELEMETRY_TEST_BIN) +all: sonic-gnmi go.mod: $(GO) mod init github.com/sonic-net/sonic-gnmi @@ -140,15 +136,6 @@ clean: $(RM) -r build $(RM) -r vendor -$(TELEMETRY_TEST_BIN): $(TEST_FILES) $(SRC_FILES) - mkdir -p $(@D) - cp -r testdata $(@D)/ -ifeq ($(CONFIGURED_ARCH),armhf) - touch $@ -else - $(GO) test -mod=vendor $(BLD_FLAGS) -c -cover github.com/sonic-net/sonic-gnmi/gnmi_server -o $@ -endif - install: $(INSTALL) -D $(BUILD_DIR)/telemetry $(DESTDIR)/usr/sbin/telemetry ifneq ($(ENABLE_DIALOUT_VALUE),0) diff --git a/proto/sonic_internal.proto b/proto/sonic_internal.proto index 964cf851..b37d2055 100644 --- a/proto/sonic_internal.proto +++ b/proto/sonic_internal.proto @@ -5,6 +5,8 @@ import "github.com/openconfig/gnmi/proto/gnmi/gnmi.proto"; package gnmi.sonic; +option go_package = "./;gnmi_sonic"; + enum State { STOPPED = 0; @@ -36,5 +38,5 @@ message Value { gnmi.Notification notification = 7; // Delete to be used to indicate that node was deleted - []gnmi.Path delete = 8; + repeated gnmi.Path delete = 8; }