aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoryunlong ying <ying.yunlong@zte.com.cn>2018-03-13 08:26:30 +0000
committerGerrit Code Review <gerrit@onap.org>2018-03-13 08:26:30 +0000
commit07021dc67b65578465ef1a576e6461aeaf50d652 (patch)
tree81e243918c590d64ef61c73a19e8fe7b2ab0f88b
parent644dac9837b28e3c6b36ea111fd0b3a1c3b2d1a9 (diff)
parente850796b9e38a16bb638ef0e36393241579f5120 (diff)
Merge changes I9e5de440,I0e9179aa
* changes: Add ProblemDetailsSerializer of notify req Add ExtVirtualLinkInfoSerializer of notify req
-rw-r--r--lcm/v2/serializers.py72
1 files changed, 72 insertions, 0 deletions
diff --git a/lcm/v2/serializers.py b/lcm/v2/serializers.py
index e8aa8bf2..512b58c6 100644
--- a/lcm/v2/serializers.py
+++ b/lcm/v2/serializers.py
@@ -842,6 +842,68 @@ class VnfInfoModificationsSerializer(serializers.Serializer):
)
+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.",
+ required=True
+ )
+ resourceHandle = ResourceHandleSerializer(
+ help_text="Reference to the virtualised resource realizing this link port.",
+ required=True
+ )
+ cpInstanceId = serializers.CharField(
+ help_text="Identifier of the external CP of the VNF connected to this link port.",
+ required=False,
+ allow_null=True,
+ allow_blank=True
+ )
+
+
+class ExtVirtualLinkInfoSerializer(serializers.Serializer):
+ id = serializers.CharField(
+ help_text="Identifier of the external VL and the related external VL information instance.",
+ required=True
+ )
+ resourceHandle = ResourceHandleSerializer(
+ help_text="Reference to the resource realizing this VL.",
+ required=True
+ )
+ extLinkPorts = ExtLinkPortInfoSerializer(
+ help_text="Link ports of this VL.",
+ many=True,
+ required=False
+ )
+
+
+class ProblemDetailsSerializer(serializers.Serializer):
+ type = serializers.CharField(
+ help_text="A URI reference according to IETF RFC 3986 [5] that identifies the problem type.",
+ required=False,
+ allow_null=True,
+ allow_blank=True
+ )
+ title = serializers.CharField(
+ help_text="A short, human-readable summary of the problem type.",
+ required=False,
+ allow_null=True,
+ allow_blank=True
+ )
+ status = serializers.IntegerField(
+ help_text="The HTTP status code for this occurrence of the problem.",
+ required=True
+ )
+ detail = serializers.CharField(
+ help_text="A human-readable explanation specific to this occurrence of the problem.",
+ required=True
+ )
+ instance = serializers.CharField(
+ help_text="A URI reference that identifies the specific occurrence of the problem.",
+ required=False,
+ allow_null=True,
+ allow_blank=True
+ )
+
+
class VnfLcmOperationOccurrenceNotificationSerializer(serializers.Serializer):
id = serializers.CharField(
help_text="Identifier of this notification.",
@@ -906,3 +968,13 @@ class VnfLcmOperationOccurrenceNotificationSerializer(serializers.Serializer):
required=False,
allow_null=True
)
+ changedExtConnectivity = ExtVirtualLinkInfoSerializer(
+ help_text="Information about changed external connectivity.",
+ many=True,
+ required=False
+ )
+ error = ProblemDetailsSerializer(
+ help_text="Details of the latest error, if one has occurred during executing the LCM operation",
+ required=False,
+ allow_null=True
+ )