Commit d34e517a authored by Lluis Gifre Renom's avatar Lluis Gifre Renom
Browse files

Service component - L3NM IETFL3VPN:

- Bug fixed on error reporting
parent 8ba607a1
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -27,6 +27,7 @@ from common.proto.context_pb2 import (
    Service,
    ServiceConfig,
)
from common.tools.grpc.Tools import grpc_message_to_json_string
from common.tools.object_factory.Device import json_device_id
from common.type_checkers.Checkers import chk_type
from service.service.service_handler_api._ServiceHandler import _ServiceHandler
@@ -424,8 +425,9 @@ class L3NM_IETFL3VPN_ServiceHandler(_ServiceHandler):
                controller.device_config.config_rules.append(ConfigRule(**jcr))
            self.__task_executor.configure_device(controller)
        except Exception as e:  # pylint: disable=broad-except
            str_service_id = grpc_message_to_json_string(self.__service.service_id)
            LOGGER.exception(
                "Unable to SetEndpoint for Service({:s})".format(str(service_id))
                "Unable to SetEndpoint for Service({:s})".format(str(str_service_id))
            )
            results.append(e)