[StreamingTelemetry] add noTLS support for debug purpose (#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.
This commit is contained in:
parent
7c00106817
commit
c240929607
@ -46,13 +46,12 @@ elif [ -n "$X509" ]; then
|
||||
TELEMETRY_ARGS+=" --ca_crt $CA_CRT"
|
||||
fi
|
||||
else
|
||||
TELEMETRY_ARGS+=" --insecure"
|
||||
TELEMETRY_ARGS+=" --noTLS"
|
||||
fi
|
||||
|
||||
# If no configuration entry exists for TELEMETRY, create one default port
|
||||
if [ -z "$GNMI" ]; then
|
||||
PORT=8080
|
||||
sonic-db-cli CONFIG_DB hset "TELEMETRY|gnmi" port $PORT
|
||||
else
|
||||
PORT=$(echo $GNMI | jq -r '.port')
|
||||
fi
|
||||
|
Loading…
Reference in New Issue
Block a user