From 72463458c9ef9dbdd64d9da2b7eb675ed3a894d0 Mon Sep 17 00:00:00 2001 From: maopengzhang Date: Sat, 30 Mar 2019 15:24:57 +0800 Subject: fix affected pnf Serializer error fix affected pnf Serializer error Change-Id: I949607ef91f1019ca6bf040e50f446ba940e0187 Issue-ID: VFC-1213 Signed-off-by: maopengzhang --- lcm/ns/serializers/sol/affected_pnfs.py | 14 ++++++++------ 1 file 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 ) -- cgit 1.2.3-korg