aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authortianxing <15210838572@139.com>2019-03-14 20:00:32 +0800
committertianxing <15210838572@139.com>2019-03-14 20:00:39 +0800
commitc82b19ac5a689a640bb1f525dc1aa7705f501c3e (patch)
tree171e13d9ff530c1eb4e7eac61fa4061b7bc615b8
parent9daa41753adef2e5d9bcc2d7ca4234d41e0c762e (diff)
fix the serializer bug of nslcm
Change-Id: I6360854fac0612e80e0f1d3098baef8abe146d82 Issue-ID: VFC-1270 Signed-off-by: tianxing <15210838572@139.com>
-rw-r--r--lcm/ns/serializers/scale_ns_serializers.py13
1 files changed, 7 insertions, 6 deletions
diff --git a/lcm/ns/serializers/scale_ns_serializers.py b/lcm/ns/serializers/scale_ns_serializers.py
index cd206b9e..97c9c8e6 100644
--- a/lcm/ns/serializers/scale_ns_serializers.py
+++ b/lcm/ns/serializers/scale_ns_serializers.py
@@ -13,14 +13,15 @@
# 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):