aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoryangyan <yangyanyj@chinamobile.com>2019-02-27 11:16:26 +0800
committeryangyan <yangyanyj@chinamobile.com>2019-02-27 11:16:46 +0800
commit51a6d1ee5fdf64c87215f3381e29eb0a70d08fde (patch)
tree7f2786c621c45d2150aef1c5b7dcbd826c487987
parent355204b4c26dcfaf60fee8f164210d420375cc4b (diff)
Modify error commit
Change-Id: I032054166ebf5c339ab5da6564248781ddabab63 Signed-off-by: yangyan <yangyanyj@chinamobile.com> Issue-ID: VFC-1265
-rw-r--r--lcm/ns/biz/affected_nss.py56
-rw-r--r--lcm/ns/biz/affected_pnfs.py56
-rw-r--r--lcm/ns/biz/affected_saps.py55
-rw-r--r--lcm/ns/biz/affected_vls.py47
-rw-r--r--lcm/ns/biz/affected_vnffgs.py46
-rw-r--r--lcm/ns/biz/affected_vnfs.py75
-rw-r--r--lcm/ns/biz/ext_link_port_info.py36
-rw-r--r--lcm/ns/biz/ext_virtual_link_info.py36
-rw-r--r--lcm/ns/biz/modify_vnf_info_data.py52
-rw-r--r--lcm/ns/biz/ns_lcm_op_occ.py155
-rw-r--r--lcm/ns/biz/ns_lcm_op_occs.py20
-rw-r--r--lcm/ns/biz/resource_handle.py42
12 files changed, 0 insertions, 676 deletions
diff --git a/lcm/ns/biz/affected_nss.py b/lcm/ns/biz/affected_nss.py
deleted file mode 100644
index 208e311b..00000000
--- a/lcm/ns/biz/affected_nss.py
+++ /dev/null
@@ -1,56 +0,0 @@
-# Copyright (c) 2019, CMCC Technologies Co., Ltd.
-
-# Licensed under the Apache License, Version 2.0 (the "License");
-# you may not use this file except in compliance with the License.
-# You may obtain a copy of the License at
-
-# http://www.apache.org/licenses/LICENSE-2.0
-
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-
-
-from rest_framework import serializers
-
-from lcm.ns import const
-
-
-CHANGE_TYPE = [
- const.CHANGE_TYPES.ADD,
- const.CHANGE_TYPES.REMOVE,
- const.CHANGE_TYPES.TERMINATE,
- const.CHANGE_TYPES.SCALE,
- const.CHANGE_TYPES.UPDATE,
- const.CHANGE_TYPES.HEAL
-]
-
-CHANGE_RESULT = [
- const.CHANGE_RESULTS.COMPLETED,
- const.CHANGE_RESULTS.ROLLED_BACK,
- const.CHANGE_RESULTS.FAILED,
- const.CHANGE_RESULTS.PARTIALLY_COMPLETED
-]
-
-
-class AffectedNssSerializer(serializers.Serializer):
- nsInstanceId = serializers.UUIDField(
- help_text="Identifier of the nested NS instance.",
- required=True
- )
- nsdId = serializers.UUIDField(
- help_text="Identifier of the NSD of the nested NS instance.",
- required=True
- )
- changeType = serializers.ChoiceField(
- help_text="Signals the type of change",
- required=True,
- choices=CHANGE_TYPE
- )
- changeResult = serializers.ChoiceField(
- help_text="Signals the type of change",
- required=True,
- choices=CHANGE_RESULT
- )
diff --git a/lcm/ns/biz/affected_pnfs.py b/lcm/ns/biz/affected_pnfs.py
deleted file mode 100644
index 4b01f6d7..00000000
--- a/lcm/ns/biz/affected_pnfs.py
+++ /dev/null
@@ -1,56 +0,0 @@
-# Copyright (c) 2019, CMCC Technologies Co., Ltd.
-
-# Licensed under the Apache License, Version 2.0 (the "License");
-# you may not use this file except in compliance with the License.
-# You may obtain a copy of the License at
-
-# http://www.apache.org/licenses/LICENSE-2.0
-
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-
-
-from rest_framework import serializers
-from lcm.ns.const import CHANGE_TYPES, CHANGE_RESULT
-
-
-CHANGE_TYPE = [
- CHANGE_TYPES.ADD,
- CHANGE_TYPES.REMOVE,
- CHANGE_TYPES.MODIFY
-]
-
-
-class AffectedPnfsSerializer(serializers.Serializer):
- pnfId = serializers.UUIDField(
- help_text="Identifier of the affected PNF. This identifier is allocated by the OSS/BSS. ",
- required=True
- )
- pnfdId = serializers.UUIDField(
- help_text="Identifier of the PNFD on which the PNF is based.",
- required=True
- )
- pnfProfileId = serializers.UUIDField(
- help_text="Identifier of the VNF profile of the NSD.",
- required=True
- )
- pnfName = serializers.CharField(
- help_text="Name of the PNF.",
- required=True)
- cpInstanceId = serializers.UUIDField(
- help_text="Identifier of the NS profile of the NSD.",
- required=True
- )
- changeType = serializers.ChoiceField(
- help_text="Signals the type of change",
- required=True,
- choices=CHANGE_TYPE
- )
- changeResult = serializers.ChoiceField(
- help_text="Signals the type of change",
- required=True,
- choices=CHANGE_RESULT
- )
diff --git a/lcm/ns/biz/affected_saps.py b/lcm/ns/biz/affected_saps.py
deleted file mode 100644
index eadd287e..00000000
--- a/lcm/ns/biz/affected_saps.py
+++ /dev/null
@@ -1,55 +0,0 @@
-# Copyright (c) 2019, CMCC Technologies Co., Ltd.
-
-# Licensed under the Apache License, Version 2.0 (the "License");
-# you may not use this file except in compliance with the License.
-# You may obtain a copy of the License at
-
-# http://www.apache.org/licenses/LICENSE-2.0
-
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-
-
-from rest_framework import serializers
-
-from lcm.ns import const
-
-
-CHANGE_TYPE = [
- const.CHANGE_TYPES.ADD,
- const.CHANGE_TYPES.REMOVE,
- const.CHANGE_TYPES.MODIFY
-]
-
-CHANGE_RESULT = [
- const.CHANGE_RESULTS.COMPLETED,
- const.CHANGE_RESULTS.ROLLED_BACK,
- const.CHANGE_RESULTS.FAILED
-]
-
-
-class AffectedSapsSerializer(serializers.Serializer):
- sapInstanceId = serializers.UUIDField(
- help_text="Identifier of the SAP instance.",
- required=True
- )
- sapdId = serializers.UUIDField(
- help_text="Identifier of the SAPD for this SAP.",
- required=True
- )
- sapName = serializers.CharField(
- help_text="Human readable name for the SAP.",
- required=True)
- changeType = serializers.ChoiceField(
- help_text="Signals the type of change",
- required=True,
- choices=CHANGE_TYPE
- )
- changeResult = serializers.ChoiceField(
- help_text="Signals the type of change",
- required=True,
- choices=CHANGE_RESULT
- )
diff --git a/lcm/ns/biz/affected_vls.py b/lcm/ns/biz/affected_vls.py
deleted file mode 100644
index 26e0c9b1..00000000
--- a/lcm/ns/biz/affected_vls.py
+++ /dev/null
@@ -1,47 +0,0 @@
-# Copyright (c) 2019, CMCC Technologies Co., Ltd.
-
-# Licensed under the Apache License, Version 2.0 (the "License");
-# you may not use this file except in compliance with the License.
-# You may obtain a copy of the License at
-
-# http://www.apache.org/licenses/LICENSE-2.0
-
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-
-
-from rest_framework import serializers
-
-from lcm.ns.const import CHANGE_TYPES, CHANGE_RESULT
-
-CHANGE_TYPE = [
- CHANGE_TYPES.ADD,
- CHANGE_TYPES.DELETE,
- CHANGE_TYPES.MODIFY,
- CHANGE_TYPES.ADD_LINK_PORT,
- CHANGE_TYPES.REMOVE_LINK_PORT
-]
-
-
-class AffectedVLsSerializer(serializers.Serializer):
- id = serializers.UUIDField(
- help_text="Identifier of the VL Instance.",
- required=True
- )
- virtualLinkDescId = serializers.UUIDField(
- help_text="Identifier of the VLD in the NSD for this VL.",
- required=True
- )
- changeType = serializers.ChoiceField(
- help_text="Signals the type of change",
- required=True,
- choices=CHANGE_TYPE
- )
- changeResult = serializers.ChoiceField(
- help_text="Signals the result of change identified by the 'changeType' attribute.",
- required=True,
- choices=CHANGE_RESULT
- )
diff --git a/lcm/ns/biz/affected_vnffgs.py b/lcm/ns/biz/affected_vnffgs.py
deleted file mode 100644
index 63e90278..00000000
--- a/lcm/ns/biz/affected_vnffgs.py
+++ /dev/null
@@ -1,46 +0,0 @@
-# Copyright (c) 2019, CMCC Technologies Co., Ltd.
-
-# Licensed under the Apache License, Version 2.0 (the "License");
-# you may not use this file except in compliance with the License.
-# You may obtain a copy of the License at
-
-# http://www.apache.org/licenses/LICENSE-2.0
-
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-
-
-from rest_framework import serializers
-
-from lcm.ns import const
-
-
-CHANGE_TYPE = [
- const.CHANGE_TYPES.ADD,
- const.CHANGE_TYPES.REMOVE,
- const.CHANGE_TYPES.MODIFY
-]
-
-
-class AffectedVnffgsSerializer(serializers.Serializer):
- vnffgInstanceId = serializers.UUIDField(
- help_text="Identifier of the VNFFG instance.",
- required=True
- )
- vnffgdId = serializers.UUIDField(
- help_text="Identifier of the VNFFGD of the VNFFG instance.",
- required=True
- )
- changeType = serializers.ChoiceField(
- help_text="Signals the type of change",
- required=True,
- choices=CHANGE_TYPE
- )
- changeResult = serializers.ChoiceField(
- help_text="Signals the type of change",
- required=True,
- choices=const.CHANGE_RESULT
- )
diff --git a/lcm/ns/biz/affected_vnfs.py b/lcm/ns/biz/affected_vnfs.py
deleted file mode 100644
index 4d5594f3..00000000
--- a/lcm/ns/biz/affected_vnfs.py
+++ /dev/null
@@ -1,75 +0,0 @@
-# Copyright (c) 2019, CMCC Technologies Co., Ltd.
-
-# Licensed under the Apache License, Version 2.0 (the "License");
-# you may not use this file except in compliance with the License.
-# You may obtain a copy of the License at
-
-# http://www.apache.org/licenses/LICENSE-2.0
-
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-
-
-from rest_framework import serializers
-from modify_vnf_info_data import ModifyVnfInfoDataSerializer
-from ext_virtual_link_info import ExtVirtualLinkInfoSerializer
-
-from lcm.ns.const import CHANGE_TYPES, CHANGE_RESULT
-
-
-CHANGE_TYPE = [
- CHANGE_TYPES.ADD,
- CHANGE_TYPES.REMOVE,
- CHANGE_TYPES.INSTANTIATE,
- CHANGE_TYPES.TERMINATE,
- CHANGE_TYPES.SCALE,
- CHANGE_TYPES.CHANGE_FLAVOUR,
- CHANGE_TYPES.HEAL,
- CHANGE_TYPES.OPERATE,
- CHANGE_TYPES.MODIFY_INFORMATION,
- CHANGE_TYPES.CHANGE_EXTERNAL_VNF_CONNECTIVITY
-]
-
-
-class ChangedInfoSerializer(serializers.Serializer):
- changedVnfInfo = ModifyVnfInfoDataSerializer(
- help_text="Information about the changed VNF instance information, including configurable properties",
- required=False)
- changedExtConnectivity = ExtVirtualLinkInfoSerializer(
- help_text="Link to the task resource that represents the 'fail' Information about changed external "
- "connectivity, if applicable.",
- required=False)
-
-
-class AffectedVnfsSerializer(serializers.Serializer):
- vnfInstanceId = serializers.UUIDField(
- help_text="Identifier of the VNF instance.",
- required=True
- )
- vnfdId = serializers.UUIDField(
- help_text="Identifier of the VNFD of the VNF Instance..",
- required=True
- )
- vnfProfileId = serializers.UUIDField(
- help_text="Identifier of the VNF profile of the NSD.",
- required=True
- )
- vnfName = serializers.CharField(
- help_text="Name of the VNF Instance.",
- required=True)
- changeType = serializers.ChoiceField(
- help_text="Signals the type of change",
- required=True,
- choices=CHANGE_TYPE
- )
- changeResult = serializers.ChoiceField(
- help_text="Signals the type of change",
- required=True,
- choices=CHANGE_RESULT
- )
- changedInfo = ChangedInfoSerializer(
- help_text="Links to resources related to this resource.",
- required=False)
diff --git a/lcm/ns/biz/ext_link_port_info.py b/lcm/ns/biz/ext_link_port_info.py
deleted file mode 100644
index e2ca15b2..00000000
--- a/lcm/ns/biz/ext_link_port_info.py
+++ /dev/null
@@ -1,36 +0,0 @@
-# Copyright (c) 2019, CMCC Technologies Co., Ltd.
-
-# Licensed under the Apache License, Version 2.0 (the "License");
-# you may not use this file except in compliance with the License.
-# You may obtain a copy of the License at
-
-# http://www.apache.org/licenses/LICENSE-2.0
-
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-
-from rest_framework import serializers
-
-from resource_handle import ResourceHandleSerializer
-
-
-class ExtlinkPortInfoSerializer(serializers.Serializer):
- id = serializers.CharField(
- help_text="Identifier of this link port as provided by the entity that has created the link port.",
- max_length=255,
- required=True,
- allow_blank=False,
- allow_null=False)
- resourceHandle = ResourceHandleSerializer(
- help_text="Reference to the virtualised resource realizing this link port.",
- required=True,
- allow_null=False)
- cpInstanceId = serializers.CharField(
- help_text="Identifier of the external CP of the VNFconnected to this link port.",
- max_length=255,
- required=False,
- allow_blank=True,
- allow_null=True)
diff --git a/lcm/ns/biz/ext_virtual_link_info.py b/lcm/ns/biz/ext_virtual_link_info.py
deleted file mode 100644
index 7e67e6fc..00000000
--- a/lcm/ns/biz/ext_virtual_link_info.py
+++ /dev/null
@@ -1,36 +0,0 @@
-# Copyright (c) 2019, CMCC Technologies Co., Ltd.
-
-# Licensed under the Apache License, Version 2.0 (the "License");
-# you may not use this file except in compliance with the License.
-# You may obtain a copy of the License at
-
-# http://www.apache.org/licenses/LICENSE-2.0
-
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-
-from rest_framework import serializers
-
-from resource_handle import ResourceHandleSerializer
-from ext_link_port_info import ExtlinkPortInfoSerializer
-
-
-class ExtVirtualLinkInfoSerializer(serializers.Serializer):
- id = serializers.CharField(
- help_text="Identifier of the external VL and the related external VL information instance.",
- required=True,
- max_length=255,
- allow_null=False,
- allow_blank=False)
- resourceHandle = ResourceHandleSerializer(
- help_text="Reference to the resource realizing this VL.",
- required=True,
- allow_null=False)
- extlinkPorts = ExtlinkPortInfoSerializer(
- help_text="Link ports of this VL.",
- many=True,
- required=False,
- allow_null=True)
diff --git a/lcm/ns/biz/modify_vnf_info_data.py b/lcm/ns/biz/modify_vnf_info_data.py
deleted file mode 100644
index 546fc6bf..00000000
--- a/lcm/ns/biz/modify_vnf_info_data.py
+++ /dev/null
@@ -1,52 +0,0 @@
-# Copyright (c) 2019, CMCC Technologies Co., Ltd.
-
-# Licensed under the Apache License, Version 2.0 (the "License");
-# you may not use this file except in compliance with the License.
-# You may obtain a copy of the License at
-
-# http://www.apache.org/licenses/LICENSE-2.0
-
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-
-
-from rest_framework import serializers
-
-
-class ModifyVnfInfoDataSerializer(serializers.Serializer):
- vnfInstanceId = serializers.UUIDField(
- help_text="Identifier of the VNF instance."
- )
- vnfInstanceName = serializers.CharField(
- help_text="New value of the 'vnfInstanceName' attribute in 'VnfInstance', or 'null' to remove the attribute.",
- max_length=255,
- required=False,
- allow_null=True,
- allow_blank=True)
- vnfInstanceDescription = serializers.CharField(
- help_text="If present, this attribute signals modifications of the 'vnfInstanceDescription' attribute in "
- "'VnfInstance'",
- required=False,
- allow_null=True,
- allow_blank=True)
- vnfPkgId = serializers.UUIDField(
- help_text="New value of the 'vnfPkgId' attribute in 'VnfInstance' The value 'null' is not permitted.."
- )
- vnfConfigurableProperties = serializers.DictField(
- help_text="Modifications to entries in the 'vnfConfigurableProperties' list, as defined below this Table.",
- child=serializers.CharField(help_text="KeyValue Pairs", allow_blank=True),
- required=False,
- allow_null=True)
- metaData = serializers.DictField(
- help_text="If present, this attribute signals modifications of certain 'metadata' attribute in 'vnfInstance'.",
- child=serializers.CharField(help_text="KeyValue Pairs", allow_blank=True),
- required=False,
- allow_null=True)
- extensions = serializers.DictField(
- help_text="If present,this attribute signals modifications of certain 'extensions' attribute in 'vnfInstance'.",
- child=serializers.CharField(help_text="KeyValue Pairs", allow_blank=True),
- required=False,
- allow_null=True)
diff --git a/lcm/ns/biz/ns_lcm_op_occ.py b/lcm/ns/biz/ns_lcm_op_occ.py
deleted file mode 100644
index 02c7cf9c..00000000
--- a/lcm/ns/biz/ns_lcm_op_occ.py
+++ /dev/null
@@ -1,155 +0,0 @@
-# Copyright (c) 2019, CMCC Technologies Co., Ltd.
-
-# Licensed under the Apache License, Version 2.0 (the "License");
-# you may not use this file except in compliance with the License.
-# You may obtain a copy of the License at
-
-# http://www.apache.org/licenses/LICENSE-2.0
-
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-
-
-from rest_framework import serializers
-
-from affected_vnfs import AffectedVnfsSerializer
-from affected_pnfs import AffectedPnfsSerializer
-from affected_vls import AffectedVLsSerializer
-from affected_vnffgs import AffectedVnffgsSerializer
-from affected_nss import AffectedNssSerializer
-from affected_saps import AffectedSapsSerializer
-
-from link import LinkSerializer
-from response import ProblemDetailsSerializer
-from lcm.ns import const
-
-
-class ResourceChangesSerializer(serializers.Serializer):
- affectedVnfs = AffectedVnfsSerializer(
- help_text="Information about VNFC instances that were affected during the lifecycle operation.",
- required=False,
- many=True
- )
- affectedPnfs = AffectedPnfsSerializer(
- help_text="Information about the PNF instances that were affected during the lifecycle operation.",
- required=False,
- many=True
- )
- affectedVls = AffectedVLsSerializer(
- help_text="Information about the VL instances that were affected during the lifecycle operation",
- required=False,
- many=True
- )
- affectedVnffgs = AffectedVnffgsSerializer(
- help_text="Information about the VNFFG instances that were affected during the lifecycle operation.",
- required=False,
- many=True
- )
- affectedNss = AffectedNssSerializer(
- help_text="Information about the nested NS instances that were affected during the lifecycle operation.",
- required=False,
- many=True
- )
- affectedSaps = AffectedSapsSerializer(
- help_text="Information about the SAP instances that were affected during the lifecycle operation.",
- required=False,
- many=True
- )
-
-
-class LcmOpLinkSerializer(serializers.Serializer):
- self = LinkSerializer(
- help_text="URI of this resource.",
- required=True,
- allow_null=False)
- nsInstance = serializers.CharField(
- help_text="Link to the NS instance that the operation applies to.",
- required=True)
- cancel = serializers.CharField(
- help_text="Link to the task resource that represents the 'cancel' operation for this LCM operation occurrence.",
- required=False)
- retry = serializers.CharField(
- help_text="Link to the task resource that represents the 'retry' operation for this LCM operation occurrence, "
- "if retrying is currently allowed",
- required=False)
- rollback = serializers.CharField(
- help_text="Link to the task resource that represents the 'cancel' operation for this LCM operation occurrence.",
- required=False)
- fail = serializers.CharField(
- help_text="Link to the task resource that represents the 'fail' operation for this LCM operation occurrence.",
- required=False)
-
-
-class NSLCMOpOccSerializer(serializers.Serializer):
- id = serializers.CharField(
- help_text="Identifier of this NS lifecycle management operation occurrence,",
- max_length=255,
- required=True,
- allow_null=False
- )
- operationState = serializers.ChoiceField(
- help_text="The state of the VNF LCM operation occurrence. ",
- required=True,
- choices=const.LCM_OPERATION_STATE_TYPES
- )
- stateEnteredTime = serializers.CharField(
- help_text="Date-time when the current state was entered.",
- max_length=50
- )
- startTime = serializers.CharField(
- help_text="Date-time of the start of the operation.",
- max_length=50
- )
- nsInstanceId = serializers.UUIDField(
- help_text="Identifier of the ns instance to which the operation applies"
- )
- operation = serializers.ChoiceField(
- help_text="The lifecycle management operation",
- required=True,
- choices=const.NS_LCM_OP_TYPES
- )
- isAutomaticInvocation = serializers.BooleanField(
- help_text="Set to true if this NS LCM operation occurrence has been automatically triggered by the NFVO.",
- default=False
- )
- operationParams = serializers.DictField(
- help_text="Input parameters of the LCM operation. This attribute shall be formatted according to the request "
- "data type of the related LCM operation. The following mapping between operationType and the data "
- "type of this attribute shall apply: "
- "1. INSTANTIATE: InstantiateVnfRequest "
- "2. SCALE: ScaleVnfRequest "
- "3. CHANGE_FLAVOUR: ChangeVnfFlavourRequest"
- "4. HEAL: HealVnfRequest "
- "5. TERMINATE: TerminateVnfRequest ",
- required=True,
- allow_null=False
- )
- isCancelPending = serializers.BooleanField(
- help_text="If the NS LCM operation occurrence is in 'STARTING' or 'PROCESSING' or 'ROLLING_BACK' state and "
- "the operation is being cancelled, this attribute shall be set to True. Otherwise, it shall be set "
- "to False.",
- required=True
- )
- cancelMode = serializers.CharField(
- help_text="The mode of an ongoing cancellation. Shall be present when isCancelPending=true, and shall be None "
- "otherwise.",
- allow_null=True,
- required=False
- )
- error = ProblemDetailsSerializer(
- help_text="If 'operationState' is 'FAILED_TEMP' or 'FAILED' or PROCESSING' or 'ROLLING_BACK' and previous "
- "value of 'operationState' was 'FAILED_TEMP' this attribute shall be present ",
- allow_null=True,
- required=False
- )
- resourceChanges = ResourceChangesSerializer(
- help_text="It contains information about the cumulative changes to virtualised resources that were performed "
- "so far by the LCM operation since its start, if applicable.",
- required=False,
- allow_null=True)
- _links = LcmOpLinkSerializer(
- help_text="Links to resources related to this resource.",
- required=True)
diff --git a/lcm/ns/biz/ns_lcm_op_occs.py b/lcm/ns/biz/ns_lcm_op_occs.py
deleted file mode 100644
index cede4e39..00000000
--- a/lcm/ns/biz/ns_lcm_op_occs.py
+++ /dev/null
@@ -1,20 +0,0 @@
-# Copyright (c) 2019, CMCC Technologies Co., Ltd.
-
-# Licensed under the Apache License, Version 2.0 (the "License");
-# you may not use this file except in compliance with the License.
-# You may obtain a copy of the License at
-
-# http://www.apache.org/licenses/LICENSE-2.0
-
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-
-from rest_framework import serializers
-from ns_lcm_op_occ import NSLCMOpOccSerializer
-
-
-class NSLCMOpOccsSerializer(serializers.ListSerializer):
- child = NSLCMOpOccSerializer()
diff --git a/lcm/ns/biz/resource_handle.py b/lcm/ns/biz/resource_handle.py
deleted file mode 100644
index 79ec53b4..00000000
--- a/lcm/ns/biz/resource_handle.py
+++ /dev/null
@@ -1,42 +0,0 @@
-# Copyright (c) 2019, CMCC Technologies Co., Ltd.
-
-# Licensed under the Apache License, Version 2.0 (the "License");
-# you may not use this file except in compliance with the License.
-# You may obtain a copy of the License at
-
-# http://www.apache.org/licenses/LICENSE-2.0
-
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-
-from rest_framework import serializers
-
-
-class ResourceHandleSerializer(serializers.Serializer):
- vimConnectionId = serializers.CharField(
- help_text="Identifier of the VIM connection to manage the resource.",
- max_length=255,
- required=False,
- allow_null=True,
- allow_blank=True)
- resourceProviderId = serializers.CharField(
- help_text="Identifier of the entity responsible for the management of the resource.",
- max_length=255,
- required=False,
- allow_null=True,
- allow_blank=True)
- resourceId = serializers.CharField(
- help_text="Identifier of the resource in the scope of the VIM or the resource provider.",
- required=True,
- max_length=255,
- allow_null=False,
- allow_blank=False)
- vimLevelResourceType = serializers.CharField(
- help_text="String, type of the resource in the scope of the VIM or the resource provider.",
- max_length=255,
- required=False,
- allow_null=True,
- allow_blank=True)