We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3939241 commit 686c554Copy full SHA for 686c554
dockers/docker-sonic-gnmi/gnmi-native.sh
@@ -102,4 +102,14 @@ else
102
fi
103
104
105
+# gNMI save-on-set behavior is disabled by default.
106
+# Save-on-set can be turned on by setting the "TELEMETRY|gnmi|save_on_set"
107
+# to "true".
108
+readonly SAVE_ON_SET=$(echo ${GNMI} | jq -r '.save_on_set // empty')
109
+if [ ! -z "${SAVE_ON_SET}" ]; then
110
+ TELEMETRY_ARGS+=" --with-save-on-set=${SAVE_ON_SET}"
111
+else
112
+ TELEMETRY_ARGS+=" --with-save-on-set=false"
113
+fi
114
+
115
exec /usr/sbin/telemetry ${TELEMETRY_ARGS}
0 commit comments