fix the serializer bug of nslcm 47/82247/1
authortianxing <15210838572@139.com>
Thu, 14 Mar 2019 12:00:32 +0000 (20:00 +0800)
committertianxing <15210838572@139.com>
Thu, 14 Mar 2019 12:00:39 +0000 (20:00 +0800)
Change-Id: I6360854fac0612e80e0f1d3098baef8abe146d82
Issue-ID: VFC-1270
Signed-off-by: tianxing <15210838572@139.com>
lcm/ns/serializers/scale_ns_serializers.py

index cd206b9..97c9c8e 100644 (file)
 # limitations under the License.
 
 from rest_framework import serializers
+from lcm.ns.serializers.update_serializers import VnfInstanceDataSerializer
 
 
-class VnfInstanceDataSerializer(serializers.Serializer):
-    vnfInstanceId = serializers.CharField(help_text="Identifier of the existing VNF instance to be used in"
-                                                    "the NS. ", required=True)
-    vnfProfileId = serializers.CharField(help_text="Identifier of (Reference to) a vnfProfile defined in the "
-                                                   "NSD which the existing VNF instance shall be matched "
-                                                   "with. If not present", required=False, allow_null=True)
+class VnfInstanceDataSerializer(serializers.Serializer):
+    vnfInstanceId = serializers.CharField(help_text="Identifier of the existing VNF instance to be used in"
+                                                    "the NS. ", required=True)
+    vnfProfileId = serializers.CharField(help_text="Identifier of (Reference to) a vnfProfile defined in the "
+                                                   "NSD which the existing VNF instance shall be matched "
+                                                   "with. If not present", required=False, allow_null=True)
 
 
 class ScaleNsByStepsDataSerializer(serializers.Serializer):