fix affected pnf Serializer error
[vfc/nfvo/lcm.git] / 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
     )