Commit 622dcc0c authored by Muhammad Umair Khan's avatar Muhammad Umair Khan
Browse files

fix MEC040

parent 5c100c50
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -14,7 +14,9 @@ else
fi

WEBSOCK_ETPATH="/$MEEP_SANDBOX_NAME"${WEBSOCK_ETPATH:-"/monaco-telecom/meep-cloud-mosquitto"}
MEEP_BROKER="wss://${MEEP_HOST_URL#https://}:443$WEBSOCK_ETPATH"
TMP_URL="${MEEP_HOST_URL#https://}"
TMP_URL="${TMP_URL#http://}"
MEEP_BROKER="wss://${TMP_URL}:443$WEBSOCK_ETPATH"

# Update API yaml basepaths to enable "Try-it-out" feature
# OAS2: Set relative path to sandbox name + endpoint path (origin will be derived from browser URL)
+1 −0
Original line number Diff line number Diff line
@@ -777,6 +777,7 @@ func stopMECFederationDiscovery() {
		log.Debug("stopMECFederationDiscovery: Stopping MEC Federation ticker")
		fed_timer.Stop()
		fed_timer = nil
		fed_timer_count = 0
		fed_list = make(map[string]bool)
		log.Debug("stopMECFederationDiscovery: len(fed_list)=", len(fed_list))
	}
+3 −1
Original line number Diff line number Diff line
@@ -7,7 +7,9 @@ echo "MEEP_LOCATION_NAME: ${MEEP_LOCATION_NAME}"
echo "MEEP_CODECOV: ${MEEP_CODECOV}"
echo "MEEP_POA_LIST: ${MEEP_POA_LIST}" # E.g. poa-5g1;poa-5g2

MEEP_BROKER="wss://$MEEP_HOST_URL:1883/$MEEP_SANDBOX_NAME/$MEEP_LOCATION_NAME/meep-mosquitto"
TMP_URL="${MEEP_HOST_URL#https://}"
TMP_URL="${TMP_URL#http://}"
MEEP_BROKER="wss://${TMP_URL}:1883/$MEEP_SANDBOX_NAME/$MEEP_LOCATION_NAME/meep-mosquitto"

if [[ ! -z "${MEEP_LOCATION_NAME}" ]]; then
    svcPath="${MEEP_SANDBOX_NAME}/${MEEP_LOCATION_NAME}"