aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorfujinhua <fu.jinhua@zte.com.cn>2018-01-25 17:22:43 +0800
committerfujinhua <fu.jinhua@zte.com.cn>2018-01-26 08:58:59 +0800
commit0ecd3a5bc7c04f07a0487c9548c1e90c684b9925 (patch)
tree8b24ce14d7f6ae2d06fef7a4b735e14c2d0ba8be
parent12d5fadfd9a49e3b46423475bb7ae516f033ad42 (diff)
Add Terminate NS req serializer
Change-Id: Ifef5457e054e0c4f1beff4e08afb9930b9a46d3d Issue-ID: VFC-680 Signed-off-by: fujinhua <fu.jinhua@zte.com.cn>
-rw-r--r--lcm/ns/serializers.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/lcm/ns/serializers.py b/lcm/ns/serializers.py
index 5461d2e5..236731e6 100644
--- a/lcm/ns/serializers.py
+++ b/lcm/ns/serializers.py
@@ -85,4 +85,9 @@ class InstantNsReqSerializer(serializers.Serializer):
class InstantNsRespSerializer(serializers.Serializer):
- jobId = serializers.CharField(help_text="ID of NS instant Job", required=True)
+ jobId = serializers.CharField(help_text="ID of NS instant job", required=True)
+
+
+class TerminateNsReqSerializer(serializers.Serializer):
+ terminationType = serializers.CharField(help_text="Type of NS termination", required=False, allow_null=True)
+ gracefulTerminationTimeout = serializers.CharField(help_text="Timeout of NS graceful termination", required=False, allow_null=True)