Skip to content

Commit 28c8d4c

Browse files
ganglyuStormLiangMS
authored andcommitted
[sonic-gnmi] Support GNMI native write (#10948)
Why I did it Provide GNMI native write interface for configuration. How I did it Add configuration parameters for GNMI native write. How to verify it Check build pipeline.
1 parent 93ae2b3 commit 28c8d4c

File tree

3 files changed

+9
-0
lines changed

3 files changed

+9
-0
lines changed

Makefile.work

+4
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,9 @@
3737
# * ENABLE_TRANSLIB_WRITE: Enable translib write/config operations via the gNMI interface.
3838
# * Default: unset
3939
# * Values: y
40+
# * ENABLE_NATIVE_WRITE: Enable native write/config operations via the gNMI interface.
41+
# * Default: unset
42+
# * Values: y
4043
# * SONIC_DPKG_CACHE_METHOD: Specifying method of obtaining the Debian packages from cache: none or cache
4144
# * SONIC_DPKG_CACHE_SOURCE: Debian package cache location when cache enabled for debian packages
4245
# * BUILD_LOG_TIMESTAMP: Set timestamp in the build log (simple/none)
@@ -480,6 +483,7 @@ SONIC_BUILD_INSTRUCTION := $(MAKE) \
480483
SONIC_INCLUDE_RESTAPI=$(INCLUDE_RESTAPI) \
481484
SONIC_INCLUDE_MUX=$(INCLUDE_MUX) \
482485
ENABLE_TRANSLIB_WRITE=$(ENABLE_TRANSLIB_WRITE) \
486+
ENABLE_NATIVE_WRITE=$(ENABLE_NATIVE_WRITE) \
483487
EXTRA_DOCKER_TARGETS=$(EXTRA_DOCKER_TARGETS) \
484488
BUILD_LOG_TIMESTAMP=$(BUILD_LOG_TIMESTAMP) \
485489
SONIC_ENABLE_IMAGE_SIGNATURE=$(ENABLE_IMAGE_SIGNATURE) \

rules/config

+4
Original file line numberDiff line numberDiff line change
@@ -160,6 +160,10 @@ ENABLE_AUTO_TECH_SUPPORT = y
160160
# Uncomment to enable:
161161
# ENABLE_TRANSLIB_WRITE = y
162162

163+
# ENABLE_NATIVE_WRITE - Enable native write/config operations via the gNMI interface.
164+
# Uncomment to enable:
165+
# ENABLE_NATIVE_WRITE = y
166+
163167
# INCLUDE_MACSEC - build docker-macsec for macsec support
164168
INCLUDE_MACSEC = y
165169

slave.mk

+1
Original file line numberDiff line numberDiff line change
@@ -405,6 +405,7 @@ $(info "INCLUDE_BOOTCHART : "$(INCLUDE_BOOTCHART)")
405405
$(info "ENABLE_BOOTCHART : "$(ENABLE_BOOTCHART)")
406406
$(info "ENABLE_FIPS_FEATURE" : "$(ENABLE_FIPS_FEATURE)")
407407
$(info "ENABLE_TRANSLIB_WRITE" : "$(ENABLE_TRANSLIB_WRITE)")
408+
$(info "ENABLE_NATIVE_WRITE" : "$(ENABLE_NATIVE_WRITE)")
408409
$(info "ENABLE_AUTO_TECH_SUPPORT" : "$(ENABLE_AUTO_TECH_SUPPORT)")
409410
$(info "PDDF_SUPPORT" : "$(PDDF_SUPPORT)")
410411
$(info "MULTIARCH_QEMU_ENVIRON" : "$(MULTIARCH_QEMU_ENVIRON)")

0 commit comments

Comments
 (0)