aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lcm/ns/serializers/sol/affected_pnfs.py14
1 files changed, 8 insertions, 6 deletions
diff --git a/lcm/ns/serializers/sol/affected_pnfs.py b/lcm/ns/serializers/sol/affected_pnfs.py
index 4b01f6d7..0eb04c77 100644
--- a/lcm/ns/serializers/sol/affected_pnfs.py
+++ b/lcm/ns/serializers/sol/affected_pnfs.py
@@ -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
)