fix affected pnf Serializer error 83/83783/1
authormaopengzhang <zhang.maopeng1@zte.com.cn>
Sat, 30 Mar 2019 07:24:57 +0000 (15:24 +0800)
committermaopengzhang <zhang.maopeng1@zte.com.cn>
Sat, 30 Mar 2019 07:24:57 +0000 (15:24 +0800)
fix affected pnf Serializer error

Change-Id: I949607ef91f1019ca6bf040e50f446ba940e0187
Issue-ID: VFC-1213
Signed-off-by: maopengzhang <zhang.maopeng1@zte.com.cn>
lcm/ns/serializers/sol/affected_pnfs.py

index 4b01f6d..0eb04c7 100644 (file)
@@ -1,4 +1,5 @@
 # Copyright (c) 2019, CMCC Technologies Co., Ltd.
+# Copyright 2019 ZTE Corporation.
 
 # Licensed under the Apache License, Version 2.0 (the "License");
 # you may not use this file except in compliance with the License.
@@ -34,23 +35,24 @@ class AffectedPnfsSerializer(serializers.Serializer):
         required=True
     )
     pnfProfileId = serializers.UUIDField(
-        help_text="Identifier of the VNF profile of the NSD.",
+        help_text="Identifier of the PNF profile of the NSD.",
         required=True
     )
     pnfName = serializers.CharField(
         help_text="Name of the PNF.",
         required=True)
-    cpInstanceId = serializers.UUIDField(
-        help_text="Identifier of the NS profile of the NSD.",
-        required=True
+    cpInstanceId = serializers.ListField(
+        help_text="Identifier of the CP in the scope of the PNF.",
+        required=True,
+        child=serializers.UUIDField()
     )
     changeType = serializers.ChoiceField(
-        help_text="Signals the type of change",
+        help_text="Signals the type of change.",
         required=True,
         choices=CHANGE_TYPE
     )
     changeResult = serializers.ChoiceField(
-        help_text="Signals the type of change",
+        help_text="Signals the result of change identified by the changeType attribute.",
         required=True,
         choices=CHANGE_RESULT
     )