diff options
-rw-r--r-- | lcm/ns/vnfs/serializers.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/lcm/ns/vnfs/serializers.py b/lcm/ns/vnfs/serializers.py index 5e5c6c88..c2a3250b 100644 --- a/lcm/ns/vnfs/serializers.py +++ b/lcm/ns/vnfs/serializers.py @@ -161,7 +161,7 @@ class NotifyLcmReqSerializer(serializers.Serializer): affectedVirtualStorage = AffectedVirtualStorage(help_text="Affected Virtual Storage(Not supported)", many=True) -class ScaleVnfReqSerializer(serializers.Serializer): +class ScaleVnfDataSerializer(serializers.Serializer): type = serializers.ChoiceField( help_text="Direction of the scaling", choices=["SCALE_IN", "SCALE_OUT"], @@ -177,6 +177,10 @@ class ScaleVnfReqSerializer(serializers.Serializer): ) +class ScaleVnfReqSerializer(serializers.Serializer): + scaleVnfData = ScaleVnfDataSerializer(help_text="Scale data", many=False) + + class ScaleVnfRespSerializer(serializers.Serializer): jobId = serializers.CharField(help_text="ID of Job", required=True) |