summaryrefslogtreecommitdiffstats
path: root/zte
diff options
context:
space:
mode:
authorying.yunlong <ying.yunlong@zte.com.cn>2018-02-09 14:52:05 +0800
committerying.yunlong <ying.yunlong@zte.com.cn>2018-02-09 14:52:05 +0800
commit19c0f06da63dfa380185df230e8c6d0c0da1d118 (patch)
treed1400fdeae5d1355dc6f5c6854b94ef1bbc6cda3 /zte
parent03e6805254c20488fd5d8fa08f3132a1b2df2c8a (diff)
Modify vfc-ztevnfmdriver schemas
Change-Id: Ib7c7ebf7997bc2563b6afde405de56c6d053037c Issue-ID: VFC-736 Signed-off-by: ying.yunlong <ying.yunlong@zte.com.cn>
Diffstat (limited to 'zte')
-rw-r--r--zte/vmanager/driver/interfaces/serializers.py10
1 files 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):