Add VnfExtCpData Serializer 83/33383/1
authorfujinhua <fu.jinhua@zte.com.cn>
Wed, 28 Feb 2018 08:22:43 +0000 (16:22 +0800)
committerfujinhua <fu.jinhua@zte.com.cn>
Wed, 28 Feb 2018 08:22:43 +0000 (16:22 +0800)
Change-Id: Iaf81ff8eaeac4ac94e7ac35b6d8eb67f8701df1e
Issue-ID: VFC-779
Signed-off-by: fujinhua <fu.jinhua@zte.com.cn>
lcm/v2/serializers.py

index 20517a4..31ec6c3 100644 (file)
@@ -303,6 +303,17 @@ class VnfExtCpConfigSerializer(serializers.Serializer):
     )
 
 
+class VnfExtCpDataSerializer(serializers.Serializer):
+    cpdId = serializers.CharField(
+        help_text="The identifier of the CPD in the VNFD.",
+        required=True
+    )
+    cpConfig = VnfExtCpConfigSerializer(
+        help_text="List of instance data that need to be configured on the CP instances created from the respective CPD.",
+        many=True
+    )
+
+
 class GrantSerializer(serializers.Serializer):
     id = serializers.CharField(
         help_text="Identifier of the grant.",