From 97a4e472881bfdf3d1b07c6d87df30f2b55b30ad Mon Sep 17 00:00:00 2001 From: ganglyu Date: Tue, 29 Nov 2022 01:45:28 +0000 Subject: [PATCH 1/2] Update submodule for sonic-gnmi and add configuration parameters for GNMI native write. --- Makefile.work | 4 ++++ rules/config | 4 ++++ slave.mk | 1 + src/sonic-gnmi | 2 +- 4 files changed, 10 insertions(+), 1 deletion(-) diff --git a/Makefile.work b/Makefile.work index 7cb04095ad17..adc40f381613 100644 --- a/Makefile.work +++ b/Makefile.work @@ -37,6 +37,9 @@ # * ENABLE_TRANSLIB_WRITE: Enable translib write/config operations via the gNMI interface. # * Default: unset # * Values: y +# * ENABLE_NATIVE_WRITE: Enable native write/config operations via the gNMI interface. +# * Default: unset +# * Values: y # * SONIC_DPKG_CACHE_METHOD: Specifying method of obtaining the Debian packages from cache: none or cache # * SONIC_DPKG_CACHE_SOURCE: Debian package cache location when cache enabled for debian packages # * BUILD_LOG_TIMESTAMP: Set timestamp in the build log (simple/none) @@ -480,6 +483,7 @@ SONIC_BUILD_INSTRUCTION := $(MAKE) \ SONIC_INCLUDE_RESTAPI=$(INCLUDE_RESTAPI) \ SONIC_INCLUDE_MUX=$(INCLUDE_MUX) \ ENABLE_TRANSLIB_WRITE=$(ENABLE_TRANSLIB_WRITE) \ + ENABLE_NATIVE_WRITE=$(ENABLE_NATIVE_WRITE) \ EXTRA_DOCKER_TARGETS=$(EXTRA_DOCKER_TARGETS) \ BUILD_LOG_TIMESTAMP=$(BUILD_LOG_TIMESTAMP) \ SONIC_ENABLE_IMAGE_SIGNATURE=$(ENABLE_IMAGE_SIGNATURE) \ diff --git a/rules/config b/rules/config index 0391abff36bd..9bb3326faa28 100644 --- a/rules/config +++ b/rules/config @@ -160,6 +160,10 @@ ENABLE_AUTO_TECH_SUPPORT = y # Uncomment to enable: # ENABLE_TRANSLIB_WRITE = y +# ENABLE_NATIVE_WRITE - Enable native write/config operations via the gNMI interface. +# Uncomment to enable: +# ENABLE_NATIVE_WRITE = y + # INCLUDE_MACSEC - build docker-macsec for macsec support INCLUDE_MACSEC = y diff --git a/slave.mk b/slave.mk index 32ca3cb2bfed..a0a83c242255 100644 --- a/slave.mk +++ b/slave.mk @@ -396,6 +396,7 @@ $(info "INCLUDE_BOOTCHART : "$(INCLUDE_BOOTCHART)") $(info "ENABLE_BOOTCHART : "$(ENABLE_BOOTCHART)") $(info "ENABLE_FIPS_FEATURE" : "$(ENABLE_FIPS_FEATURE)") $(info "ENABLE_TRANSLIB_WRITE" : "$(ENABLE_TRANSLIB_WRITE)") +$(info "ENABLE_NATIVE_WRITE" : "$(ENABLE_NATIVE_WRITE)") $(info "ENABLE_AUTO_TECH_SUPPORT" : "$(ENABLE_AUTO_TECH_SUPPORT)") $(info "PDDF_SUPPORT" : "$(PDDF_SUPPORT)") $(info "MULTIARCH_QEMU_ENVIRON" : "$(MULTIARCH_QEMU_ENVIRON)") diff --git a/src/sonic-gnmi b/src/sonic-gnmi index 81174150846d..54806a888a6a 160000 --- a/src/sonic-gnmi +++ b/src/sonic-gnmi @@ -1 +1 @@ -Subproject commit 81174150846d82ff918022d22b14fd927bae01cb +Subproject commit 54806a888a6abd147872b2b5c8d23294f2ae2628 From 222cdbd705a33bb6e1b78d98b89c49edaa1dd60d Mon Sep 17 00:00:00 2001 From: ganglyu Date: Tue, 29 Nov 2022 02:25:40 +0000 Subject: [PATCH 2/2] Reset submodule --- src/sonic-gnmi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sonic-gnmi b/src/sonic-gnmi index 54806a888a6a..81174150846d 160000 --- a/src/sonic-gnmi +++ b/src/sonic-gnmi @@ -1 +1 @@ -Subproject commit 54806a888a6abd147872b2b5c8d23294f2ae2628 +Subproject commit 81174150846d82ff918022d22b14fd927bae01cb