Loading src/service/service/service_handler_api/ServiceHandlerFactory.py +7 −6 Original line number Diff line number Diff line Loading @@ -15,7 +15,7 @@ import logging, operator from enum import Enum from typing import TYPE_CHECKING, Any, Dict, Iterable, List, Optional, Set, Tuple from common.proto.context_pb2 import Device, Service from common.proto.context_pb2 import Device, DeviceDriverEnum, Service from common.tools.grpc.Tools import grpc_message_to_json_string from .Exceptions import ( UnsatisfiedFilterException, UnsupportedServiceHandlerClassException, UnsupportedFilterFieldException, Loading Loading @@ -114,12 +114,13 @@ def get_service_handler_class( service_handler_factory : ServiceHandlerFactory, service : Service, device_and_drivers: Dict[str, Tuple[Device, Set[int]]] ) -> Optional['_ServiceHandler']: LOGGER.debug(f'SERVICE_HANDLER_FACTORY: Getting service handler for service: {service.service_config.config_rules}') str_service_key = grpc_message_to_json_string(service.service_id) # Checks if the service is of type ipowdm if 'ipowdm' in str(service.service_config.config_rules): common_device_drivers = [13] if 'ipowdm' in str(service.service_config.config_rules): common_device_drivers = [DeviceDriverEnum.DEVICEDRIVER_IETF_L3VPN] # Checks if the service is of type tapi_lsp elif 'tapi_lsp' in str(service.service_config.config_rules): common_device_drivers = [2] elif 'tapi_lsp' in str(service.service_config.config_rules): common_device_drivers = [DeviceDriverEnum.DEVICEDRIVER_TRANSPORT_API] else: common_device_drivers = get_common_device_drivers([ device_drivers Loading src/service/service/service_handlers/tapi_lsp/ConfigRules.py +1 −1 File changed.Contains only whitespace changes. Show changes src/service/service/service_handlers/tapi_lsp/__init__.py +1 −1 File changed.Contains only whitespace changes. Show changes Loading
src/service/service/service_handler_api/ServiceHandlerFactory.py +7 −6 Original line number Diff line number Diff line Loading @@ -15,7 +15,7 @@ import logging, operator from enum import Enum from typing import TYPE_CHECKING, Any, Dict, Iterable, List, Optional, Set, Tuple from common.proto.context_pb2 import Device, Service from common.proto.context_pb2 import Device, DeviceDriverEnum, Service from common.tools.grpc.Tools import grpc_message_to_json_string from .Exceptions import ( UnsatisfiedFilterException, UnsupportedServiceHandlerClassException, UnsupportedFilterFieldException, Loading Loading @@ -114,12 +114,13 @@ def get_service_handler_class( service_handler_factory : ServiceHandlerFactory, service : Service, device_and_drivers: Dict[str, Tuple[Device, Set[int]]] ) -> Optional['_ServiceHandler']: LOGGER.debug(f'SERVICE_HANDLER_FACTORY: Getting service handler for service: {service.service_config.config_rules}') str_service_key = grpc_message_to_json_string(service.service_id) # Checks if the service is of type ipowdm if 'ipowdm' in str(service.service_config.config_rules): common_device_drivers = [13] if 'ipowdm' in str(service.service_config.config_rules): common_device_drivers = [DeviceDriverEnum.DEVICEDRIVER_IETF_L3VPN] # Checks if the service is of type tapi_lsp elif 'tapi_lsp' in str(service.service_config.config_rules): common_device_drivers = [2] elif 'tapi_lsp' in str(service.service_config.config_rules): common_device_drivers = [DeviceDriverEnum.DEVICEDRIVER_TRANSPORT_API] else: common_device_drivers = get_common_device_drivers([ device_drivers Loading
src/service/service/service_handlers/tapi_lsp/ConfigRules.py +1 −1 File changed.Contains only whitespace changes. Show changes
src/service/service/service_handlers/tapi_lsp/__init__.py +1 −1 File changed.Contains only whitespace changes. Show changes