From b68abdfa928b5761f8bd2b207e5de4eb3aff2499 Mon Sep 17 00:00:00 2001 From: fujinhua Date: Wed, 31 Jan 2018 09:12:25 +0800 Subject: Add delete vl resp serializer Change-Id: Iaae640a3e53b88e28c18bfffe4fb8b7f32ca618f Issue-ID: VFC-688 Signed-off-by: fujinhua --- lcm/ns/vls/serializers.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/lcm/ns/vls/serializers.py b/lcm/ns/vls/serializers.py index 79115dce..70437ac2 100644 --- a/lcm/ns/vls/serializers.py +++ b/lcm/ns/vls/serializers.py @@ -23,7 +23,7 @@ class CreateVlReqSerializer(serializers.Serializer): class CreateVlRespSerializer(serializers.Serializer): - result = serializers.IntegerField(help_text="Index of VL instance(0: success, 1: failed)", required=True) + result = serializers.IntegerField(help_text="VL create result(0: success, 1: failed)", required=True) detail = serializers.CharField(help_text="Detail of result", required=False, allow_null=True) vlId = serializers.CharField(help_text="ID of VL instance", required=True) @@ -32,3 +32,8 @@ class GetVlRespSerializer(serializers.Serializer): vlId = serializers.CharField(help_text="ID of VL instance", required=False, allow_null=True) vlName = serializers.CharField(help_text="Name of VL instance", required=False, allow_null=True) vlStatus = serializers.CharField(help_text="Status of VL instance", required=False, allow_null=True) + + +class DeleteVlRespSerializer(serializers.Serializer): + result = serializers.IntegerField(help_text="VL delete result(0: success)", required=True) + detail = serializers.CharField(help_text="Detail of result", required=False, allow_null=True) -- cgit 1.2.3-korg