Fix Ns update req swagger 69/72869/1
authorfujinhua <fu.jinhua@zte.com.cn>
Fri, 16 Nov 2018 01:18:17 +0000 (09:18 +0800)
committerFu Jinhua <fu.jinhua@zte.com.cn>
Fri, 16 Nov 2018 03:04:15 +0000 (03:04 +0000)
Change-Id: Iac0d6bfb8ac833322faade4d48477ecc049a87c9
Issue-ID: VFC-1163
Signed-off-by: fujinhua <fu.jinhua@zte.com.cn>
(cherry picked from commit c8869acc2c5944bdb0450deb6fa761206e82b5a6)

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):