Fix Ns update req swagger 52/72852/2
authorfujinhua <fu.jinhua@zte.com.cn>
Fri, 16 Nov 2018 01:18:17 +0000 (09:18 +0800)
committerfujinhua <fu.jinhua@zte.com.cn>
Fri, 16 Nov 2018 01:54:13 +0000 (09:54 +0800)
Change-Id: Iac0d6bfb8ac833322faade4d48477ecc049a87c9
Issue-ID: VFC-1163
Signed-off-by: fujinhua <fu.jinhua@zte.com.cn>
lcm/ns/serializers/update_serializers.py

index 2964a10..e92432d 100644 (file)
@@ -68,7 +68,7 @@ class VnfExtCpData(serializers.Serializer):
                                      required=False, allow_null=True)
 
 
-class ResourceHandleSerializer(serializers.Serializer):
+class ExtLinkPortResourceHandleSerializer(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 "
@@ -81,8 +81,8 @@ class ResourceHandleSerializer(serializers.Serializer):
 
 class ExtLinkPortDataSerializer(serializers.Serializer):
     id = serializers.CharField(help_text="Provided by the entity that has created the link port", required=True)
-    resourceHandle = ResourceHandleSerializer(help_text="Identifier(s) of the virtualised network resource(s) "
-                                                        "realizing the VL instance", required=True)
+    resourceHandle = ExtLinkPortResourceHandleSerializer(help_text="Identifier(s) of the virtualised network resource(s) "
+                                                                   "realizing the VL instance", required=True)
 
 
 class ExtVirtualLinkDataSerializer(serializers.Serializer):