summaryrefslogtreecommitdiffstats
path: root/zte
diff options
context:
space:
mode:
authorying.yunlong <ying.yunlong@zte.com.cn>2018-02-11 11:15:59 +0800
committerying.yunlong <ying.yunlong@zte.com.cn>2018-02-11 11:15:59 +0800
commit1cbb66ff2c0fc5cd452892035994b7614723c40a (patch)
tree16c9a45fa8be1623fd330f9d4a49788386da836c /zte
parent808f2b79415362ed1aef3df4221bcb5c56922209 (diff)
Add vfc-ztevnfmdriver termination schema
Change-Id: Id421f085c09110a7d5806e1ba6c8a2e679377825 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.py12
1 files changed, 12 insertions, 0 deletions
diff --git a/zte/vmanager/driver/interfaces/serializers.py b/zte/vmanager/driver/interfaces/serializers.py
index 9a961ead..bb6a9141 100644
--- a/zte/vmanager/driver/interfaces/serializers.py
+++ b/zte/vmanager/driver/interfaces/serializers.py
@@ -15,6 +15,18 @@
from rest_framework import serializers
+class TerminateVnfRequestSerializer(serializers.Serializer):
+ terminationType = serializers.CharField(
+ help_text="terminationType",
+ required=True,
+ max_length=255,
+ allow_null=True)
+ gracefulTerminationTimeout = serializers.IntegerField(
+ help_text="gracefulTerminationTimeout",
+ default=120,
+ required=False)
+
+
class JobHistorySerializer(serializers.Serializer):
status = serializers.CharField(
help_text="Status of job",