summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFu Jinhua <fu.jinhua@zte.com.cn>2018-11-08 12:38:15 +0000
committerGerrit Code Review <gerrit@onap.org>2018-11-08 12:38:15 +0000
commitf120d0c4658cd3a9b4ec71c5d3b618917b4a9fd0 (patch)
tree5aa8130f9875026d1941b1da4e9780ed3cc92d2e
parent2124d76afae4e6fd6cb3f58a1aed9c2713ad44a1 (diff)
parent2cb896940c8c70df0053003996c32e668ed8c546 (diff)
Merge "fix some grant parameter check error"
-rw-r--r--gvnfmadapter/driver/interfaces/serializers/grant.py16
1 files changed, 11 insertions, 5 deletions
diff --git a/gvnfmadapter/driver/interfaces/serializers/grant.py b/gvnfmadapter/driver/interfaces/serializers/grant.py
index 4fa5335..f36d5ed 100644
--- a/gvnfmadapter/driver/interfaces/serializers/grant.py
+++ b/gvnfmadapter/driver/interfaces/serializers/grant.py
@@ -24,28 +24,34 @@ class VimConnectionInfoSerializer(serializers.Serializer):
)
vimId = serializers.CharField(
help_text="The identifier of the VIM instance. This identifier is managed by the NFVO.",
- required=False
+ required=False,
+ allow_null=True
)
vimType = serializers.CharField(
help_text="Discriminator for the different types of the VIM information.",
- required=False
+ required=False,
+ allow_null=True
)
interfaceInfo = serializers.DictField(
help_text="Information about the interface or interfaces to the VIM.",
child=serializers.CharField(help_text="Interface Info", allow_blank=True),
- required=False
+ required=False,
+ allow_null=True
)
accessInfo = serializers.DictField(
help_text="Authentication credentials for accessing the VIM.",
child=serializers.CharField(help_text="Access Info", allow_blank=True),
- required=False
+ required=False,
+ allow_null=True
)
extra = serializers.DictField(
help_text="VIM type specific additional information.",
child=serializers.CharField(help_text="Extra", allow_blank=True),
- required=False
+ required=False,
+ allow_null=True
)
+
class ZoneInfoSerializer(serializers.Serializer):
id = serializers.CharField(
help_text="The identifier of this ZoneInfo instance, for the purpose of referencing it from other structures in the Grant structure.",