summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFu Jinhua <fu.jinhua@zte.com.cn>2018-03-19 03:34:12 +0000
committerGerrit Code Review <gerrit@onap.org>2018-03-19 03:34:12 +0000
commit5407ec210abee5ba0086fd73b1190e53a688b198 (patch)
tree08750dce5fcc11809a9d05ca95369a1ad3ddb822
parent9f1fada5d5bd6f7a618468792785629c3a42f961 (diff)
parenta0b2caa54c7d94664d33c83d360f144e4bc966eb (diff)
Merge "Fix vfc-vnflcm instantiation swagger schema"
-rw-r--r--lcm/lcm/nf/serializers.py18
1 files changed, 15 insertions, 3 deletions
diff --git a/lcm/lcm/nf/serializers.py b/lcm/lcm/nf/serializers.py
index d3aefebd..2150c93b 100644
--- a/lcm/lcm/nf/serializers.py
+++ b/lcm/lcm/nf/serializers.py
@@ -283,7 +283,7 @@ class instantiatedVnfInfoSerializer(serializers.Serializer):
allow_null=True)
vnfState = serializers.ChoiceField(
help_text="vnfState",
- choices=["STARTED", "STOPPED"],
+ choices=["STARTED", "STOPPED", "NOT_INSTANTIATED", "INSTANTIATED"],
required=True,
allow_null=True)
scaleStatus = ScaleInfoSerializer(
@@ -334,12 +334,14 @@ class VnfInfoSerializer(serializers.Serializer):
help_text="vnfdVersion",
required=False,
max_length=255,
- allow_null=True)
+ allow_null=True,
+ allow_blank=True)
vnfProvider = serializers.CharField(
help_text="vnfProvider",
required=False,
max_length=255,
- allow_null=True)
+ allow_null=True,
+ allow_blank=True)
instantiatedVnfInfo = instantiatedVnfInfoSerializer(
help_text="instantiatedVnfInfo",
required=True)
@@ -382,6 +384,11 @@ class ExtVirtualLinkSerizlizer(serializers.Serializer):
class AdditionalParamsSerializer(serializers.Serializer):
+ vimId = serializers.CharField(
+ help_text="vimId",
+ required=False,
+ max_length=255,
+ allow_null=True)
inputs = serializers.DictField(
help_text="inputs",
child=serializers.CharField(help_text="custom key-value", allow_blank=True),
@@ -410,6 +417,11 @@ class InstantiateVnfRequestSerializer(serializers.Serializer):
required=True,
max_length=255,
allow_null=True)
+ vnfmId = serializers.CharField(
+ help_text="vnfmId",
+ required=False,
+ max_length=255,
+ allow_null=True)
extVirtualLinks = serializers.ListSerializer(
help_text="extVirtualLinks",
child=ExtVirtualLinkSerizlizer(help_text="extVirtualLinks", required=False, allow_null=True),