From 19c0f06da63dfa380185df230e8c6d0c0da1d118 Mon Sep 17 00:00:00 2001 From: "ying.yunlong" Date: Fri, 9 Feb 2018 14:52:05 +0800 Subject: Modify vfc-ztevnfmdriver schemas Change-Id: Ib7c7ebf7997bc2563b6afde405de56c6d053037c Issue-ID: VFC-736 Signed-off-by: ying.yunlong --- zte/vmanager/driver/interfaces/serializers.py | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/zte/vmanager/driver/interfaces/serializers.py b/zte/vmanager/driver/interfaces/serializers.py index 0e061f33..9a961ead 100644 --- a/zte/vmanager/driver/interfaces/serializers.py +++ b/zte/vmanager/driver/interfaces/serializers.py @@ -190,10 +190,11 @@ class NotifyVmlistSerializer(serializers.Serializer): max_length=255, required=False, allow_null=True) - VMIDlist = VMIDlistSerializer( + VMIDlist = serializers.ListSerializer( help_text='VMIDlist', + child=VMIDlistSerializer(help_text='VMIDlist', required=True, allow_null=True), required=False, - many=True) + allow_null=True) class NotifyReqSerializer(serializers.Serializer): @@ -318,10 +319,11 @@ class HealReqSerializer(serializers.Serializer): max_length=255, required=False, allow_null=True) - affectedvm = AffectedvmSerializer( + affectedvm = serializers.ListSerializer( help_text='affectedvm', + child=AffectedvmSerializer(help_text='affectedvm', required=True, allow_null=True), required=True, - many=True) + allow_null=True) class InstScaleHealRespSerializer(serializers.Serializer): -- cgit 1.2.3-korg