Add ExtVirtualLinkInfoSerializer of notify req 07/35407/2
authorfujinhua <fu.jinhua@zte.com.cn>
Tue, 13 Mar 2018 07:33:47 +0000 (15:33 +0800)
committerfujinhua <fu.jinhua@zte.com.cn>
Tue, 13 Mar 2018 07:40:54 +0000 (15:40 +0800)
Change-Id: I0e9179aa0bafbd9ed939103a03214abf6062e75e
Issue-ID: VFC-779
Signed-off-by: fujinhua <fu.jinhua@zte.com.cn>
lcm/v2/serializers.py

index e8aa8bf..fa677d7 100644 (file)
@@ -842,6 +842,39 @@ 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 VnfLcmOperationOccurrenceNotificationSerializer(serializers.Serializer):
     id = serializers.CharField(
         help_text="Identifier of this notification.",
@@ -906,3 +939,8 @@ class VnfLcmOperationOccurrenceNotificationSerializer(serializers.Serializer):
         required=False,
         allow_null=True
     )
+    changedExtConnectivity = ExtVirtualLinkInfoSerializer(
+        help_text="Information about changed external connectivity.",
+        many=True,
+        required=False
+    )