summaryrefslogtreecommitdiffstats
path: root/mgr
diff options
context:
space:
mode:
Diffstat (limited to 'mgr')
-rw-r--r--mgr/mgr/vnfreg/serializers.py42
1 files changed, 28 insertions, 14 deletions
diff --git a/mgr/mgr/vnfreg/serializers.py b/mgr/mgr/vnfreg/serializers.py
index 42a1121..372eefe 100644
--- a/mgr/mgr/vnfreg/serializers.py
+++ b/mgr/mgr/vnfreg/serializers.py
@@ -20,27 +20,32 @@ class VnfInfoSerializer(serializers.Serializer):
help_text="ID of VNF instance",
required=True,
max_length=200,
- allow_null=True)
+ allow_null=True
+ )
ip = serializers.CharField(
help_text="Ip of VNF",
required=True,
max_length=200,
- allow_null=True)
+ allow_null=True
+ )
port = serializers.CharField(
help_text="Port of VNF",
required=True,
max_length=200,
- allow_null=True)
+ allow_null=True
+ )
username = serializers.CharField(
help_text="Username of VNF",
required=True,
max_length=255,
- allow_null=True)
+ allow_null=True
+ )
password = serializers.CharField(
help_text="Password of VNF",
required=True,
max_length=255,
- allow_null=True)
+ allow_null=True
+ )
class ResponseSerializer(serializers.Serializer):
@@ -48,7 +53,8 @@ class ResponseSerializer(serializers.Serializer):
help_text="ID of VNF instance",
required=True,
max_length=200,
- allow_null=False)
+ allow_null=False
+ )
class CpSerializer(serializers.Serializer):
@@ -56,12 +62,14 @@ class CpSerializer(serializers.Serializer):
help_text="ID of CP",
required=True,
max_length=200,
- allow_null=True)
+ allow_null=True
+ )
cpdId = serializers.CharField(
help_text="ID of CPD",
required=True,
max_length=200,
- allow_null=True)
+ allow_null=True
+ )
class SpecificDataSerializer(serializers.Serializer):
@@ -69,23 +77,27 @@ class SpecificDataSerializer(serializers.Serializer):
help_text="Auto scalable",
required=True,
max_length=200,
- allow_null=True)
+ allow_null=True
+ )
autoHealable = serializers.CharField(
help_text="Auto healable",
required=True,
max_length=200,
- allow_null=True)
+ allow_null=True
+ )
class ConfigDataSerializer(serializers.Serializer):
cp = CpSerializer(
help_text="CP list",
many=True,
- allow_null=True)
+ allow_null=True
+ )
vnfSpecificData = SpecificDataSerializer(
help_text="VNF specific data",
required=True,
- allow_null=True)
+ allow_null=True
+ )
class VnfConfigSerializer(serializers.Serializer):
@@ -93,8 +105,10 @@ class VnfConfigSerializer(serializers.Serializer):
help_text="ID of VNF instance",
required=True,
max_length=200,
- allow_null=True)
+ allow_null=True
+ )
vnfConfigurationData = ConfigDataSerializer(
help_text="VNF configuration data",
required=True,
- allow_null=True)
+ allow_null=True
+ )