Skip to content
Snippets Groups Projects
Commit eaabe3ba authored by Lluis Gifre Renom's avatar Lluis Gifre Renom
Browse files

Pre-merge code cleanup

parent b5cd8c0b
No related branches found
No related tags found
2 merge requests!359Release TeraFlowSDN 5.0,!308Resolve "(CTTC) Elaboration of the service component to handler IETF Slice and NCE domains"
...@@ -38,6 +38,7 @@ class DeviceTypeEnum(Enum): ...@@ -38,6 +38,7 @@ class DeviceTypeEnum(Enum):
CLIENT = 'client' CLIENT = 'client'
DATACENTER = 'datacenter' DATACENTER = 'datacenter'
IP_SDN_CONTROLLER = 'ip-sdn-controller' IP_SDN_CONTROLLER = 'ip-sdn-controller'
NCE = 'nce'
MICROWAVE_RADIO_SYSTEM = 'microwave-radio-system' MICROWAVE_RADIO_SYSTEM = 'microwave-radio-system'
OPEN_LINE_SYSTEM = 'open-line-system' OPEN_LINE_SYSTEM = 'open-line-system'
OPTICAL_ROADM = 'optical-roadm' OPTICAL_ROADM = 'optical-roadm'
...@@ -52,6 +53,4 @@ class DeviceTypeEnum(Enum): ...@@ -52,6 +53,4 @@ class DeviceTypeEnum(Enum):
# ETSI TeraFlowSDN controller # ETSI TeraFlowSDN controller
TERAFLOWSDN_CONTROLLER = 'teraflowsdn' TERAFLOWSDN_CONTROLLER = 'teraflowsdn'
IETF_SLICE = 'ietf-slice' IETF_SLICE = 'ietf-slice'
NCE = 'nce'
\ No newline at end of file
...@@ -13,17 +13,9 @@ ...@@ -13,17 +13,9 @@
# limitations under the License. # limitations under the License.
import logging import logging
from typing import Optional, Tuple, Union
from uuid import UUID, uuid5
import grpc import grpc
import logging
from typing import Optional, Tuple, Union from typing import Optional, Tuple, Union
from uuid import UUID, uuid5 from uuid import UUID, uuid5
import grpc
from common.Constants import DEFAULT_CONTEXT_NAME from common.Constants import DEFAULT_CONTEXT_NAME
from common.method_wrappers.ServiceExceptions import InvalidArgumentsException from common.method_wrappers.ServiceExceptions import InvalidArgumentsException
from common.proto.context_pb2 import ContextId, Slice, SliceFilter, SliceId from common.proto.context_pb2 import ContextId, Slice, SliceFilter, SliceId
...@@ -32,9 +24,6 @@ from common.proto.context_pb2 import ContextId, Slice, SliceFilter, SliceId ...@@ -32,9 +24,6 @@ from common.proto.context_pb2 import ContextId, Slice, SliceFilter, SliceId
from context.client.ContextClient import ContextClient from context.client.ContextClient import ContextClient
NAMESPACE_TFS = UUID("200e3a1f-2223-534f-a100-758e29c37f40")
NAMESPACE_TFS = UUID("200e3a1f-2223-534f-a100-758e29c37f40") NAMESPACE_TFS = UUID("200e3a1f-2223-534f-a100-758e29c37f40")
LOGGER = logging.getLogger(__name__) LOGGER = logging.getLogger(__name__)
...@@ -170,4 +159,4 @@ def get_slice_by_defualt_name( ...@@ -170,4 +159,4 @@ def get_slice_by_defualt_name(
return get_slice_by_id( return get_slice_by_id(
context_client, slice_id, rw_copy=rw_copy, include_endpoint_ids=include_endpoint_ids, context_client, slice_id, rw_copy=rw_copy, include_endpoint_ids=include_endpoint_ids,
include_constraints=include_constraints, include_service_ids=include_service_ids, include_constraints=include_constraints, include_service_ids=include_service_ids,
include_subslice_ids=include_subslice_ids, include_config_rules=include_config_rules) include_subslice_ids=include_subslice_ids, include_config_rules=include_config_rules)
\ No newline at end of file
...@@ -69,6 +69,12 @@ SERVICE_HANDLERS = [ ...@@ -69,6 +69,12 @@ SERVICE_HANDLERS = [
FilterFieldEnum.DEVICE_DRIVER : DeviceDriverEnum.DEVICEDRIVER_IETF_ACTN, FilterFieldEnum.DEVICE_DRIVER : DeviceDriverEnum.DEVICEDRIVER_IETF_ACTN,
} }
]), ]),
(L3NM_IETFL3VPN_ServiceHandler, [
{
FilterFieldEnum.SERVICE_TYPE : ServiceTypeEnum.SERVICETYPE_L3NM,
FilterFieldEnum.DEVICE_DRIVER : [DeviceDriverEnum.DEVICEDRIVER_IETF_L3VPN],
}
]),
(L3NMNCEServiceHandler, [ (L3NMNCEServiceHandler, [
{ {
FilterFieldEnum.SERVICE_TYPE : ServiceTypeEnum.SERVICETYPE_L3NM, FilterFieldEnum.SERVICE_TYPE : ServiceTypeEnum.SERVICETYPE_L3NM,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment