Commit 54a81373 authored by Antonio Gines Buendia Lopez's avatar Antonio Gines Buendia Lopez
Browse files

Fix connectivity to H-RAT and NBI bugs

parent 8bf73716
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -40,9 +40,9 @@ spec:
            - name: ENABLE_HRAT
              value: "TRUE"
            - name: HRAT_HOST
              value: "10.0.2.10"
              value: "192.168.1.168"
            - name: HRAT_PORT
              value: 9090
              value: "9090"
            - name: HRAT_SCHEME
              value: "http"
            - name: HRAT_BASEURL
+0 −11
Original line number Diff line number Diff line
@@ -15,20 +15,9 @@
import os
from common.Settings import get_setting, is_deployed_forecaster


PATHCOMPEXTENDED_BACKEND_SCHEME  = str(os.environ.get('PATHCOMPEXTENDED_BACKEND_SCHEME',  DEFAULT_PATHCOMPEXTENDED_BACKEND_SCHEME ))
PATHCOMPEXTENDED_BACKEND_BASEURL = str(os.environ.get('PATHCOMPEXTENDED_BACKEND_BASEURL', DEFAULT_PATHCOMPEXTENDED_BACKEND_BASEURL))

# Find IP:port of backend container as follows:
# - first check env vars PATHCOMPEXTENDED_BACKEND_HOST & PATHCOMPEXTENDED_BACKEND_PORT
# - if not set, check env vars PATHCOMPEXTENDEDSERVICE_SERVICE_HOST & PATHCOMPEXTENDEDSERVICE_SERVICE_PORT_HTTP
# - if not set, use DEFAULT_PATHCOMPEXTENDED_BACKEND_HOST & DEFAULT_PATHCOMPEXTENDED_BACKEND_PORT


SETTING_NAME_ENABLE_HRAT = 'ENABLE_HRAT'
TRUE_VALUES = {'Y', 'YES', 'TRUE', 'T', 'E', 'ENABLE', 'ENABLED'}


# ------------------------------------------------------------ #
# --- HRAT Configuration ------------------------------------- #
# ------------------------------------------------------------ #
+1 −1
Original line number Diff line number Diff line
@@ -22,7 +22,7 @@ from common.proto.pathcompextended_pb2 import (
)
from common.proto.pathcompextended_pb2_grpc import PathCompExtendedServiceServicer
from common.tools.grpc.Tools import grpc_message_to_json_string
from pathcompextended.Config import is_forecaster_enabled, is_hrat_enabled
from pathcompextended.Config import is_hrat_enabled
from pathcompextended.connector.hrat import (
    HRAT,
    NetworkContextPostRequest,