Commit 6883949a authored by Pablo Armingol's avatar Pablo Armingol
Browse files

IP-link service

parent 2c357875
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -39,7 +39,7 @@ spec:
            - containerPort: 9192
          env:
            - name: LOG_LEVEL
              value: "DEBUG"
              value: "INFO"
          startupProbe:
            exec:
              command: ["/bin/grpc_health_probe", "-addr=:2020"]
+1 −1
Original line number Diff line number Diff line
@@ -36,7 +36,7 @@ spec:
            - containerPort: 9192
          env:
            - name: LOG_LEVEL
              value: "DEBUG"
              value: "INFO"
          readinessProbe:
            exec:
              command: ["/bin/grpc_health_probe", "-addr=:3030"]
+1 −1
Original line number Diff line number Diff line
@@ -39,7 +39,7 @@ spec:
            - containerPort: 8004
          env:
            - name: LOG_LEVEL
              value: "DEBUG"
              value: "INFO"
            - name: WEBUISERVICE_SERVICE_BASEURL_HTTP
              value: "/webui/"
          readinessProbe:
+2 −0
Original line number Diff line number Diff line
@@ -88,6 +88,8 @@ def service_set(db_engine : Engine, messagebroker : MessageBroker, request : Ser
    service_type = grpc_to_enum__service_type(request.service_type)
    if service_type is None and request.service_type == ServiceTypeEnum.SERVICETYPE_OPTICAL_CONNECTIVITY:
        service_type = "OPTICAL_CONNECTIVITY"
    if service_type is None and request.service_type == ServiceTypeEnum.SERVICETYPE_IPLINK :
        service_type = "IP_LINK"

    service_status = grpc_to_enum__service_status(request.service_status.service_status)

+1 −1
Original line number Diff line number Diff line
@@ -49,7 +49,7 @@ SERVICE_TYPE_IPLINK = {ServiceTypeEnum.SERVICETYPE_IPLINK}


def get_service_type(device_type : DeviceTypeEnum, prv_service_type : ServiceTypeEnum) -> ServiceTypeEnum:
    if device_type in PACKET_DEVICE_TYPES and prv_service_type in SERVICE_TYPE_LXNM: return prv_service_type
    if device_type in PACKET_DEVICE_TYPES and (prv_service_type in SERVICE_TYPE_LXNM or prv_service_type in SERVICE_TYPE_IPLINK ): return prv_service_type
    if device_type in L2_DEVICE_TYPES: return ServiceTypeEnum.SERVICETYPE_L2NM
    if device_type in OPTICAL_DEVICE_TYPES: return ServiceTypeEnum.SERVICETYPE_TAPI_CONNECTIVITY_SERVICE
    if device_type in NETWORK_DEVICE_TYPES: return prv_service_type
Loading