aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormaopengzhang <zhang.maopeng1@zte.com.cn>2019-03-30 15:24:57 +0800
committermaopengzhang <zhang.maopeng1@zte.com.cn>2019-03-30 15:24:57 +0800
commit72463458c9ef9dbdd64d9da2b7eb675ed3a894d0 (patch)
treed48f01d659c1755c5c290abb69c0271f8beb4557
parent5b3de3009b2c799905aadd6d4dba29785fdf983f (diff)
fix affected pnf Serializer error
fix affected pnf Serializer error Change-Id: I949607ef91f1019ca6bf040e50f446ba940e0187 Issue-ID: VFC-1213 Signed-off-by: maopengzhang <zhang.maopeng1@zte.com.cn>
-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
)