diff options
author | ying.yunlong <ying.yunlong@zte.com.cn> | 2018-02-09 15:30:22 +0800 |
---|---|---|
committer | ying.yunlong <ying.yunlong@zte.com.cn> | 2018-02-09 15:30:22 +0800 |
commit | 9e1885cac0013e5a8f02de5c30df1918ce8773d7 (patch) | |
tree | 0edfd01cb925f4e5caa01830216bfb2a923c8118 | |
parent | 4890c89135496b25a90bd52f9a75d46ad9be8286 (diff) |
Modify vfc-vnfmgr swagger schemas
Change-Id: Ie8275526326b072e1adbaa85337b3fdcf187d833
Issue-ID: VFC-670
Signed-off-by: ying.yunlong <ying.yunlong@zte.com.cn>
-rw-r--r-- | LICENSE | 4 | ||||
-rw-r--r-- | mgr/mgr/vnfreg/serializers.py | 13 |
2 files changed, 12 insertions, 5 deletions
@@ -1,4 +1,4 @@ -Copyright 2017 ZTE Corporation. +Copyright 2018 ZTE Corporation. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -12,4 +12,4 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. -Micro service of vnf configure management. +Micro service of gvnfm vnf configure management. diff --git a/mgr/mgr/vnfreg/serializers.py b/mgr/mgr/vnfreg/serializers.py index d2b446c..9157e21 100644 --- a/mgr/mgr/vnfreg/serializers.py +++ b/mgr/mgr/vnfreg/serializers.py @@ -59,7 +59,9 @@ class CpSerializer(serializers.Serializer): allow_null=True) cpdId = serializers.CharField( help_text="cpdId", - required=True, max_length=200, allow_null=True) + required=True, + max_length=200, + allow_null=True) class SpecificDataSerializer(serializers.Serializer): @@ -76,9 +78,14 @@ class SpecificDataSerializer(serializers.Serializer): class ConfigDataSerializer(serializers.Serializer): - cp = CpSerializer(help_text="cps", many=True, allow_null=True) + cp = CpSerializer( + help_text="cps", + many=True, + allow_null=True) vnfSpecificData = SpecificDataSerializer( - help_text="vnfSpecificData", required=True, allow_null=True) + help_text="vnfSpecificData", + required=True, + allow_null=True) class VnfConfigSerializer(serializers.Serializer): |