aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authortianxing <15210838572@139.com>2019-03-14 22:00:03 +0800
committertianxing <15210838572@139.com>2019-03-14 22:00:10 +0800
commit5dcab58e8828ae4ea5dcde79103dd74db86fe42e (patch)
treefcd81cf2d09d9544f37eb9d9ad3da3899d1f9617
parente52d623364df976ca322ce696ad9798e9e7e5aed (diff)
fix the serializer bug of nslcm
Change-Id: Ibc563438bf1564a25abbdc0f4af93932617ab614 Issue-ID: VFC-1270 Signed-off-by: tianxing <15210838572@139.com>
-rw-r--r--lcm/ns/serializers/update_serializers.py19
1 files changed, 10 insertions, 9 deletions
diff --git a/lcm/ns/serializers/update_serializers.py b/lcm/ns/serializers/update_serializers.py
index 9e0a1bf7..a677c43f 100644
--- a/lcm/ns/serializers/update_serializers.py
+++ b/lcm/ns/serializers/update_serializers.py
@@ -16,6 +16,7 @@ from rest_framework import serializers
from lcm.ns.serializers.pub_serializers import IpAddressSerialzier
from lcm.ns.serializers.pub_serializers import CpProtocolDataSerializer
+from lcm.ns.serializers.create_ns_serializers import ResourceHandleSerializer
class VnfInstanceDataSerializer(serializers.Serializer):
@@ -64,15 +65,15 @@ class VnfExtCpData(serializers.Serializer):
required=False, allow_null=True)
-class ResourceHandleSerializer(serializers.Serializer):
- vimId = serializers.CharField(help_text="Identifier of the VIM under whose control this resource is placed.",
- required=False, allow_null=True)
- resourceProviderId = serializers.CharField(help_text="Identifier of the entity responsible for the management of "
- "the resource.", required=False, allow_null=True)
- resourceId = serializers.CharField(help_text="Identifier of the resource in the scope of the VIM or the "
- "resource provider.", required=True)
- vimLevelResourceType = serializers.CharField(help_text="Type of the resource in the scope of the VIM or the "
- "resource provider.", required=False, allow_null=True)
+# class ResourceHandleSerializer(serializers.Serializer):
+# vimId = serializers.CharField(help_text="Identifier of the VIM under whose control this resource is placed.",
+# required=False, allow_null=True)
+# resourceProviderId = serializers.CharField(help_text="Identifier of the entity responsible for the management of "
+# "the resource.", required=False, allow_null=True)
+# resourceId = serializers.CharField(help_text="Identifier of the resource in the scope of the VIM or the "
+# "resource provider.", required=True)
+# vimLevelResourceType = serializers.CharField(help_text="Type of the resource in the scope of the VIM or the "
+# "resource provider.", required=False, allow_null=True)
class ExtLinkPortDataSerializer(serializers.Serializer):