Loading src/common/method_wrappers/Decorator.py +1 −0 Changes for src/common/method_wrappers/Decorator.py: 1 added line, 0 removed lines. Original line number Diff line number Diff line Loading @@ -209,6 +209,7 @@ def metered_subclass_method(metrics_pool : MetricsPool): return inner_wrapper return outer_wrapper def safe_and_metered_rpc_method(metrics_pool : MetricsPool, logger : logging.Logger): def outer_wrapper(func): method_name = func.__name__ Loading src/device/service/Tools.py +1 −0 Changes for src/device/service/Tools.py: 1 added line, 0 removed lines. Original line number Diff line number Diff line Loading @@ -515,6 +515,7 @@ def deconfigure_rules(device : Device, driver : _Driver, resources_to_delete : L return _raw_config_rules_to_grpc( device_uuid, device.device_config, ERROR_DELETE, ConfigActionEnum.CONFIGACTION_DELETE, results_deleteconfig) def subscribe_kpi(request : MonitoringSettings, driver : _Driver, monitoring_loops : MonitoringLoops) -> List[str]: kpi_uuid = request.kpi_id.kpi_id.uuid device_uuid = request.kpi_descriptor.device_id.device_uuid.uuid Loading src/service/service/service_handlers/l3nm_ietfl3vpn/L3NM_IETFL3VPN_ServiceHandler.py +0 −1 Changes for src/service/service/service_handlers/l3nm_ietfl3vpn/L3NM_IETFL3VPN_ServiceHandler.py: 0 added lines, 1 removed line. Original line number Diff line number Diff line Loading @@ -467,7 +467,6 @@ class L3NM_IETFL3VPN_ServiceHandler(_ServiceHandler): DeviceId(**json_device_id(src_device_uuid)) ) src_controller = self.__task_executor.get_device_controller(src_device) dst_device_uuid, _ = get_device_endpoint_uuids(endpoints[1]) dst_device = self.__task_executor.get_device( DeviceId(**json_device_id(dst_device_uuid)) Loading src/service/service/service_handlers/l3nm_ietfslice/L3NM_IETFSlice_ServiceHandler.py +6 −0 Changes for src/service/service/service_handlers/l3nm_ietfslice/L3NM_IETFSlice_ServiceHandler.py: 6 added lines, 0 removed lines. Original line number Diff line number Diff line Loading @@ -71,6 +71,9 @@ class L3NM_IETFSlice_ServiceHandler(_ServiceHandler): # 2. Identify controller to be used if src_controller is None or dst_controller is None: MSG = 'Device({:s}) and/or Device({:s}) are not managed by any controller' raise Exception(MSG.format(str(src_device_name), str(dst_device_name))) if src_controller.device_id.device_uuid.uuid != dst_controller.device_id.device_uuid.uuid: raise Exception('Different Src-Dst devices not supported by now') controller = src_controller # same device controller Loading Loading @@ -187,6 +190,9 @@ class L3NM_IETFSlice_ServiceHandler(_ServiceHandler): DeviceId(**json_device_id(src_device_uuid)) ) controller = self.__task_executor.get_device_controller(src_device_obj) if controller is None: MSG = 'Device({:s}) is not managed by any controller' raise Exception(MSG.format(str(src_device_uuid))) datastore_delta = DataStoreDelta(self.__service) running_slice = datastore_delta.running_data Loading src/service/service/service_handlers/l3nm_ncefan/L3NM_NCEFAN_ServiceHandler.py +6 −0 Changes for src/service/service/service_handlers/l3nm_ncefan/L3NM_NCEFAN_ServiceHandler.py: 6 added lines, 0 removed lines. Original line number Diff line number Diff line Loading @@ -275,6 +275,9 @@ class L3NM_NCEFAN_ServiceHandler(_ServiceHandler): src_device_uuid, src_endpoint_uuid = get_device_endpoint_uuids(endpoints[0]) src_device_obj = self.__task_executor.get_device(DeviceId(**json_device_id(src_device_uuid))) controller = self.__task_executor.get_device_controller(src_device_obj) if controller is None: MSG = 'Device({:s}) is not managed by any controller' raise Exception(MSG.format(str(src_device_uuid))) list_devices = context_client.ListDevices(Empty()) devices = list_devices.devices Loading Loading @@ -490,6 +493,9 @@ class L3NM_NCEFAN_ServiceHandler(_ServiceHandler): src_device_uuid, src_endpoint_uuid = get_device_endpoint_uuids(endpoints[0]) src_device_obj = self.__task_executor.get_device(DeviceId(**json_device_id(src_device_uuid))) controller = self.__task_executor.get_device_controller(src_device_obj) if controller is None: MSG = 'Device({:s}) is not managed by any controller' raise Exception(MSG.format(str(src_device_uuid))) list_devices = context_client.ListDevices(Empty()) devices = list_devices.devices Loading Loading
src/common/method_wrappers/Decorator.py +1 −0 Changes for src/common/method_wrappers/Decorator.py: 1 added line, 0 removed lines. Original line number Diff line number Diff line Loading @@ -209,6 +209,7 @@ def metered_subclass_method(metrics_pool : MetricsPool): return inner_wrapper return outer_wrapper def safe_and_metered_rpc_method(metrics_pool : MetricsPool, logger : logging.Logger): def outer_wrapper(func): method_name = func.__name__ Loading
src/device/service/Tools.py +1 −0 Changes for src/device/service/Tools.py: 1 added line, 0 removed lines. Original line number Diff line number Diff line Loading @@ -515,6 +515,7 @@ def deconfigure_rules(device : Device, driver : _Driver, resources_to_delete : L return _raw_config_rules_to_grpc( device_uuid, device.device_config, ERROR_DELETE, ConfigActionEnum.CONFIGACTION_DELETE, results_deleteconfig) def subscribe_kpi(request : MonitoringSettings, driver : _Driver, monitoring_loops : MonitoringLoops) -> List[str]: kpi_uuid = request.kpi_id.kpi_id.uuid device_uuid = request.kpi_descriptor.device_id.device_uuid.uuid Loading
src/service/service/service_handlers/l3nm_ietfl3vpn/L3NM_IETFL3VPN_ServiceHandler.py +0 −1 Changes for src/service/service/service_handlers/l3nm_ietfl3vpn/L3NM_IETFL3VPN_ServiceHandler.py: 0 added lines, 1 removed line. Original line number Diff line number Diff line Loading @@ -467,7 +467,6 @@ class L3NM_IETFL3VPN_ServiceHandler(_ServiceHandler): DeviceId(**json_device_id(src_device_uuid)) ) src_controller = self.__task_executor.get_device_controller(src_device) dst_device_uuid, _ = get_device_endpoint_uuids(endpoints[1]) dst_device = self.__task_executor.get_device( DeviceId(**json_device_id(dst_device_uuid)) Loading
src/service/service/service_handlers/l3nm_ietfslice/L3NM_IETFSlice_ServiceHandler.py +6 −0 Changes for src/service/service/service_handlers/l3nm_ietfslice/L3NM_IETFSlice_ServiceHandler.py: 6 added lines, 0 removed lines. Original line number Diff line number Diff line Loading @@ -71,6 +71,9 @@ class L3NM_IETFSlice_ServiceHandler(_ServiceHandler): # 2. Identify controller to be used if src_controller is None or dst_controller is None: MSG = 'Device({:s}) and/or Device({:s}) are not managed by any controller' raise Exception(MSG.format(str(src_device_name), str(dst_device_name))) if src_controller.device_id.device_uuid.uuid != dst_controller.device_id.device_uuid.uuid: raise Exception('Different Src-Dst devices not supported by now') controller = src_controller # same device controller Loading Loading @@ -187,6 +190,9 @@ class L3NM_IETFSlice_ServiceHandler(_ServiceHandler): DeviceId(**json_device_id(src_device_uuid)) ) controller = self.__task_executor.get_device_controller(src_device_obj) if controller is None: MSG = 'Device({:s}) is not managed by any controller' raise Exception(MSG.format(str(src_device_uuid))) datastore_delta = DataStoreDelta(self.__service) running_slice = datastore_delta.running_data Loading
src/service/service/service_handlers/l3nm_ncefan/L3NM_NCEFAN_ServiceHandler.py +6 −0 Changes for src/service/service/service_handlers/l3nm_ncefan/L3NM_NCEFAN_ServiceHandler.py: 6 added lines, 0 removed lines. Original line number Diff line number Diff line Loading @@ -275,6 +275,9 @@ class L3NM_NCEFAN_ServiceHandler(_ServiceHandler): src_device_uuid, src_endpoint_uuid = get_device_endpoint_uuids(endpoints[0]) src_device_obj = self.__task_executor.get_device(DeviceId(**json_device_id(src_device_uuid))) controller = self.__task_executor.get_device_controller(src_device_obj) if controller is None: MSG = 'Device({:s}) is not managed by any controller' raise Exception(MSG.format(str(src_device_uuid))) list_devices = context_client.ListDevices(Empty()) devices = list_devices.devices Loading Loading @@ -490,6 +493,9 @@ class L3NM_NCEFAN_ServiceHandler(_ServiceHandler): src_device_uuid, src_endpoint_uuid = get_device_endpoint_uuids(endpoints[0]) src_device_obj = self.__task_executor.get_device(DeviceId(**json_device_id(src_device_uuid))) controller = self.__task_executor.get_device_controller(src_device_obj) if controller is None: MSG = 'Device({:s}) is not managed by any controller' raise Exception(MSG.format(str(src_device_uuid))) list_devices = context_client.ListDevices(Empty()) devices = list_devices.devices Loading