Skip to content

Commit 12b6e68

Browse files
pra-mohCarl Keene
authored andcommitted
[StreamingTelemetry] add noTLS support for debug purpose (sonic-net#6704)
adding noTLS mode for debugging purpose Removing config-set for port 8080. It fails to start telemetry if docker restarts in case on noTLS mode because it expects log_level config to be present as well.
1 parent effafdf commit 12b6e68

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

dockers/docker-sonic-telemetry/telemetry.sh

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,13 +46,12 @@ elif [ -n "$X509" ]; then
4646
TELEMETRY_ARGS+=" --ca_crt $CA_CRT"
4747
fi
4848
else
49-
TELEMETRY_ARGS+=" --insecure"
49+
TELEMETRY_ARGS+=" --noTLS"
5050
fi
5151

5252
# If no configuration entry exists for TELEMETRY, create one default port
5353
if [ -z "$GNMI" ]; then
5454
PORT=8080
55-
sonic-db-cli CONFIG_DB hset "TELEMETRY|gnmi" port $PORT
5655
else
5756
PORT=$(echo $GNMI | jq -r '.port')
5857
fi

0 commit comments

Comments
 (0)