Add vfc-ztevnfmdriver termination schema 85/31185/1
authorying.yunlong <ying.yunlong@zte.com.cn>
Sun, 11 Feb 2018 03:15:59 +0000 (11:15 +0800)
committerying.yunlong <ying.yunlong@zte.com.cn>
Sun, 11 Feb 2018 03:15:59 +0000 (11:15 +0800)
Change-Id: Id421f085c09110a7d5806e1ba6c8a2e679377825
Issue-ID: VFC-736
Signed-off-by: ying.yunlong <ying.yunlong@zte.com.cn>
zte/vmanager/driver/interfaces/serializers.py

index 9a961ea..bb6a914 100644 (file)
 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",