Skip to content

Commit

Permalink
[StreamingTelemetry] add noTLS support for debug purpose (sonic-net#6704
Browse files Browse the repository at this point in the history
)

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.
  • Loading branch information
pra-moh authored and Carl Keene committed Aug 7, 2021
1 parent effafdf commit 12b6e68
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions dockers/docker-sonic-telemetry/telemetry.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 12b6e68

Please sign in to comment.