From a377099d6254aaced2bd459c8a42149bc93be773 Mon Sep 17 00:00:00 2001 From: maopengzhang Date: Mon, 1 Apr 2019 10:49:24 +0800 Subject: fix AffectedVnfsSerializer error fix AffectedVnfsSerializer error Change-Id: I387d8e7a067a82ae56f4cbd22cdf00db149aace1 Issue-ID: VFC-1213 Signed-off-by: maopengzhang --- lcm/ns/serializers/sol/affected_vnfs.py | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'lcm') 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) -- cgit 1.2.3-korg