aboutsummaryrefslogtreecommitdiffstats
path: root/lcm
diff options
context:
space:
mode:
authormaopengzhang <zhang.maopeng1@zte.com.cn>2019-04-01 10:49:24 +0800
committermaopengzhang <zhang.maopeng1@zte.com.cn>2019-04-01 11:09:53 +0800
commita377099d6254aaced2bd459c8a42149bc93be773 (patch)
tree433f5299374f24b0bf4e0a326b8b97e13a46377f /lcm
parente323832e4859d0c35cd417296aeffacc6e74615e (diff)
fix AffectedVnfsSerializer error
fix AffectedVnfsSerializer error Change-Id: I387d8e7a067a82ae56f4cbd22cdf00db149aace1 Issue-ID: VFC-1213 Signed-off-by: maopengzhang <zhang.maopeng1@zte.com.cn>
Diffstat (limited to 'lcm')
-rw-r--r--lcm/ns/serializers/sol/affected_vnfs.py10
1 files changed, 6 insertions, 4 deletions
diff --git a/lcm/ns/serializers/sol/affected_vnfs.py b/lcm/ns/serializers/sol/affected_vnfs.py
index c4d9a2bc..ebb94ebf 100644
--- a/lcm/ns/serializers/sol/affected_vnfs.py
+++ b/lcm/ns/serializers/sol/affected_vnfs.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.
@@ -37,7 +38,8 @@ class ChangedInfoSerializer(serializers.Serializer):
changedVnfInfo = ModifyVnfInfoDataSerializer(
help_text="Information about the changed VNF instance information, including configurable properties",
required=False)
- changedExtConnectivity = ExtVirtualLinkInfoSerializer(
+ changedExtConnectivity = serializers.ListField(
+ child=ExtVirtualLinkInfoSerializer(),
help_text="Link to the task resource that represents the 'fail' Information about changed external "
"connectivity, if applicable.",
required=False)
@@ -49,7 +51,7 @@ class AffectedVnfsSerializer(serializers.Serializer):
required=True
)
vnfdId = serializers.UUIDField(
- help_text="Identifier of the VNFD of the VNF Instance..",
+ help_text="Identifier of the VNFD of the VNF Instance.",
required=True
)
vnfProfileId = serializers.UUIDField(
@@ -65,10 +67,10 @@ class AffectedVnfsSerializer(serializers.Serializer):
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
)
changedInfo = ChangedInfoSerializer(
- help_text="Links to resources related to this resource.",
+ help_text="Information about the changed VNF instance information, including VNF configurable properties, if applicable.",
required=False)