summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorfujinhua <fu.jinhua@zte.com.cn>2019-04-05 08:53:28 +0800
committerfujinhua <fu.jinhua@zte.com.cn>2019-04-05 08:53:28 +0800
commit5ac41461fcb0c45d3f04923ff5578b599dc58905 (patch)
tree7d190164429fd01833c6288b58d98a12adf43d2c
parent9a568741d8b862d5f2e0374373b64049d7703452 (diff)
Update serializer ztevnfmdriver
Change-Id: Id47cd6dfc68dd450c38b312140a20098696edd24 Issue-ID: VFC-1306 Signed-off-by: fujinhua <fu.jinhua@zte.com.cn>
-rw-r--r--zte/vmanager/driver/interfaces/serializers.py33
1 files changed, 24 insertions, 9 deletions
diff --git a/zte/vmanager/driver/interfaces/serializers.py b/zte/vmanager/driver/interfaces/serializers.py
index 1d518df1..069797f4 100644
--- a/zte/vmanager/driver/interfaces/serializers.py
+++ b/zte/vmanager/driver/interfaces/serializers.py
@@ -288,7 +288,10 @@ class NotifyVmlistSerializer(serializers.Serializer):
allow_null=True)
VMIDlist = serializers.ListSerializer(
help_text='VMIDlist',
- child=VMIDlistSerializer(help_text='VMIDlist', required=True, allow_null=True),
+ child=VMIDlistSerializer(
+ help_text='VMIDlist',
+ required=True,
+ allow_null=True),
required=False,
allow_null=True)
@@ -330,16 +333,19 @@ class NotifyReqSerializer(serializers.Serializer):
many=True)
extension = serializers.DictField(
help_text="extension",
- child=serializers.DictField(allow_null=True),
+ child=serializers.DictField(
+ allow_null=True),
required=False,
allow_null=True)
affectedcp = serializers.ListSerializer(
help_text='affectedcp',
- child=serializers.DictField(allow_null=True),
+ child=serializers.DictField(
+ allow_null=True),
required=False)
affectedvirtuallink = serializers.ListSerializer(
help_text='affectedvirtuallink',
- child=serializers.DictField(allow_null=True),
+ child=serializers.DictField(
+ allow_null=True),
required=False)
@@ -361,7 +367,8 @@ class ScaleReqSerializer(serializers.Serializer):
allow_null=True)
additionalParam = serializers.DictField(
help_text="additionalParam",
- child=serializers.DictField(allow_null=True),
+ child=serializers.DictField(
+ allow_null=True),
required=False,
allow_null=True)
@@ -394,7 +401,8 @@ class AffectedvmSerializer(serializers.Serializer):
allow_null=True)
flavour = serializers.DictField(
help_text="flavour",
- child=serializers.CharField(allow_blank=True),
+ child=serializers.CharField(
+ allow_blank=True),
required=False,
allow_null=True)
@@ -417,7 +425,10 @@ class HealReqSerializer(serializers.Serializer):
allow_null=True)
affectedvm = serializers.ListSerializer(
help_text='affectedvm',
- child=AffectedvmSerializer(help_text='affectedvm', required=True, allow_null=True),
+ child=AffectedvmSerializer(
+ help_text='affectedvm',
+ required=True,
+ allow_null=True),
required=True,
allow_null=True)
@@ -524,12 +535,16 @@ class VnfPkgSerializer(serializers.Serializer):
allow_null=True)
imagefiles = serializers.ListSerializer(
help_text='imagefiles',
- child=serializers.CharField(help_text='imagefile', required=True),
+ child=serializers.CharField(
+ help_text='imagefile',
+ required=True),
required=False,
allow_null=True)
swfiles = serializers.ListSerializer(
help_text='swfiles',
- child=serializers.CharField(help_text='swfile', required=True),
+ child=serializers.CharField(
+ help_text='swfile',
+ required=True),
required=False,
allow_null=True)
description = serializers.CharField(