summaryrefslogtreecommitdiffstats
path: root/lcm
diff options
context:
space:
mode:
authorying.yunlong <ying.yunlong@zte.com.cn>2018-02-05 13:43:12 +0800
committerying.yunlong <ying.yunlong@zte.com.cn>2018-02-05 13:43:12 +0800
commitafaa527abb1e2bb04b2794257933f2b7fcc76cda (patch)
tree091e50fca54d0eb3d53d6270efcc04c1d329f30c /lcm
parentdf86145a053e46c5302fef9102bcc2f85abfb7ce (diff)
Modify vfc-vnflcm serialize file
Change-Id: I09b70e6f4ea57d8192eac3b952fc6ce47693266a Issue-ID: VFC-682 Signed-off-by: ying.yunlong <ying.yunlong@zte.com.cn>
Diffstat (limited to 'lcm')
-rw-r--r--lcm/lcm/nf/vnfs/serializers.py22
1 files changed, 11 insertions, 11 deletions
diff --git a/lcm/lcm/nf/vnfs/serializers.py b/lcm/lcm/nf/vnfs/serializers.py
index a5619ba4..50879a19 100644
--- a/lcm/lcm/nf/vnfs/serializers.py
+++ b/lcm/lcm/nf/vnfs/serializers.py
@@ -17,17 +17,17 @@ from rest_framework import serializers
class CreateVnfReqSerializer(serializers.Serializer):
vnfdId = serializers.CharField(
- help_text="vnfd Id",
+ help_text="vnfdId",
max_length=255,
required=True,
allow_null=True)
vnfInstanceName = serializers.CharField(
- help_text="vnf Instance Name",
+ help_text="vnfInstanceName",
max_length=255,
required=True,
allow_null=False)
vnfInstanceDescription = serializers.CharField(
- help_text="vnf Instance Description",
+ help_text="vnfInstanceDescription",
max_length=255,
required=False,
allow_null=True)
@@ -35,7 +35,7 @@ class CreateVnfReqSerializer(serializers.Serializer):
class CreateVnfRespSerializer(serializers.Serializer):
vnfInstanceId = serializers.CharField(
- help_text="vnf Instance Id",
+ help_text="vnfInstanceId",
required=True,
max_length=255,
allow_null=True)
@@ -259,10 +259,10 @@ class ScaleInfoSerializer(serializers.Serializer):
class instantiatedVnfInfoSerializer(serializers.Serializer):
flavourId = serializers.CharField(
- help_text="flavour Id",
+ help_text="flavourId",
required=True, max_length=255, allow_null=True)
vnfState = serializers.ChoiceField(
- help_text="vnf State",
+ help_text="vnfState",
choices=[
'STARTED',
'STOPPED'],
@@ -286,25 +286,25 @@ class instantiatedVnfInfoSerializer(serializers.Serializer):
class VnfInfoSerializer(serializers.Serializer):
vnfInstanceId = serializers.CharField(
- help_text="vnf Instance Id",
+ help_text="vnfInstanceId",
required=True,
max_length=255,
allow_null=True)
vnfInstanceName = serializers.CharField(
- help_text="vnf Instance Name",
+ help_text="vnfInstanceName",
required=True,
max_length=255,
allow_null=True)
onboardedVnfPkgInfoId = serializers.CharField(
- help_text="onboarded Vnf Pkg Info Id",
+ help_text="onboardedVnfPkgInfoId",
required=False,
max_length=255,
allow_null=True)
vnfdVersion = serializers.CharField(
- help_text="vnfd Version",
+ help_text="vnfdVersion",
required=False, max_length=255, allow_null=True)
vnfProvider = serializers.CharField(
- help_text="vnf Provider",
+ help_text="vnfProvider",
required=False, max_length=255, allow_null=True)
instantiatedVnfInfo = instantiatedVnfInfoSerializer(
help_text="instantiatedVnfInfo", required=True)