[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
02cc486511
commit
2e42ecb5e7
@ -46,13 +46,12 @@ elif [ -n "$X509" ]; then
|
|||||||
TELEMETRY_ARGS+=" --ca_crt $CA_CRT"
|
TELEMETRY_ARGS+=" --ca_crt $CA_CRT"
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
TELEMETRY_ARGS+=" --insecure"
|
TELEMETRY_ARGS+=" --noTLS"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# If no configuration entry exists for TELEMETRY, create one default port
|
# If no configuration entry exists for TELEMETRY, create one default port
|
||||||
if [ -z "$GNMI" ]; then
|
if [ -z "$GNMI" ]; then
|
||||||
PORT=8080
|
PORT=8080
|
||||||
sonic-db-cli CONFIG_DB hset "TELEMETRY|gnmi" port $PORT
|
|
||||||
else
|
else
|
||||||
PORT=$(echo $GNMI | jq -r '.port')
|
PORT=$(echo $GNMI | jq -r '.port')
|
||||||
fi
|
fi
|
||||||
|
Reference in New Issue
Block a user