summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorying.yunlong <ying.yunlong@zte.com.cn>2018-02-26 19:45:52 +0800
committerying.yunlong <ying.yunlong@zte.com.cn>2018-02-26 19:45:52 +0800
commit106ad86e6d6c5456c6820623d3eb82cf2bcbf8d8 (patch)
treeb711c28087ed49a774d2e6b19289f1b832f03a51
parent89938173c5532454d8543b26eb4c8300aa2993ad (diff)
Add vfc-ztevnfmdriver queryVnf schema
Change-Id: I71b36e49dbf87f6285d98914f4631cc1cb1855c7 Issue-ID: VFC-736 Signed-off-by: ying.yunlong <ying.yunlong@zte.com.cn>
-rw-r--r--zte/vmanager/driver/interfaces/serializers.py14
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",