aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorfujinhua <fu.jinhua@zte.com.cn>2018-02-28 16:22:43 +0800
committerfujinhua <fu.jinhua@zte.com.cn>2018-02-28 16:22:43 +0800
commitfe1a293ce98c1d327399b89a2f6f9c31e953a5ef (patch)
tree50d5dedad2c132068950df365bfb0cdc55a5b146
parente690bfe72356b4647b0453e5f7d07816fca2bb16 (diff)
Add VnfExtCpData Serializer
Change-Id: Iaf81ff8eaeac4ac94e7ac35b6d8eb67f8701df1e Issue-ID: VFC-779 Signed-off-by: fujinhua <fu.jinhua@zte.com.cn>
-rw-r--r--lcm/v2/serializers.py11
1 files changed, 11 insertions, 0 deletions
diff --git a/lcm/v2/serializers.py b/lcm/v2/serializers.py
index 20517a49..31ec6c3c 100644
--- a/lcm/v2/serializers.py
+++ b/lcm/v2/serializers.py
@@ -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.",