diff options
author | ying.yunlong <ying.yunlong@zte.com.cn> | 2018-02-26 19:45:52 +0800 |
---|---|---|
committer | ying.yunlong <ying.yunlong@zte.com.cn> | 2018-02-26 19:45:52 +0800 |
commit | 106ad86e6d6c5456c6820623d3eb82cf2bcbf8d8 (patch) | |
tree | b711c28087ed49a774d2e6b19289f1b832f03a51 /zte | |
parent | 89938173c5532454d8543b26eb4c8300aa2993ad (diff) |
Add vfc-ztevnfmdriver queryVnf schema
Change-Id: I71b36e49dbf87f6285d98914f4631cc1cb1855c7
Issue-ID: VFC-736
Signed-off-by: ying.yunlong <ying.yunlong@zte.com.cn>
Diffstat (limited to 'zte')
-rw-r--r-- | zte/vmanager/driver/interfaces/serializers.py | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/zte/vmanager/driver/interfaces/serializers.py b/zte/vmanager/driver/interfaces/serializers.py index a19613ca..c9206579 100644 --- a/zte/vmanager/driver/interfaces/serializers.py +++ b/zte/vmanager/driver/interfaces/serializers.py @@ -97,6 +97,20 @@ class TerminateVnfRequestSerializer(serializers.Serializer): required=False) +class VnfInfoSerializer(serializers.Serializer): + vnfStatus = serializers.CharField( + help_text="vnfStatus", + required=True, + max_length=255, + allow_null=True) + + +class QueryVnfResponseSerializer(serializers.Serializer): + vnfInfo = VnfInfoSerializer( + help_text="vnfInfo", + required=True) + + class JobHistorySerializer(serializers.Serializer): status = serializers.CharField( help_text="Status of job", |