From 1cbb66ff2c0fc5cd452892035994b7614723c40a Mon Sep 17 00:00:00 2001 From: "ying.yunlong" Date: Sun, 11 Feb 2018 11:15:59 +0800 Subject: Add vfc-ztevnfmdriver termination schema Change-Id: Id421f085c09110a7d5806e1ba6c8a2e679377825 Issue-ID: VFC-736 Signed-off-by: ying.yunlong --- zte/vmanager/driver/interfaces/serializers.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) 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", -- cgit 1.2.3-korg