From 8a4604a9a9235d26fd7269ba30bb7ee62e6080de Mon Sep 17 00:00:00 2001 From: tianxing <15210838572@139.com> Date: Tue, 11 Sep 2018 10:28:01 +0800 Subject: update ns_serializer Change-Id: I9df1218efd908d94a8acbce88f832ffcd7296ab0 Issue-ID: VFC-1107 Signed-off-by: tianxing <15210838572@139.com> --- lcm/ns/serializers/ns_serializers.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/lcm/ns/serializers/ns_serializers.py b/lcm/ns/serializers/ns_serializers.py index 25bbb373..1fc6cadd 100644 --- a/lcm/ns/serializers/ns_serializers.py +++ b/lcm/ns/serializers/ns_serializers.py @@ -100,6 +100,7 @@ class TerminateNsReqSerializer(serializers.Serializer): class ActionVmSerializer(serializers.Serializer): vmid = serializers.CharField(help_text="ID of VM", required=False, allow_null=True) + vduid = serializers.CharField(help_text="ID of vdu", required=False, allow_null=True) vmname = serializers.CharField(help_text="Name of VM", required=False, allow_null=True) @@ -116,7 +117,10 @@ class HealVnfDataSerializer(serializers.Serializer): class HealNsDataSerializer(serializers.Serializer): degreeHealing = serializers.ChoiceField(help_text="degree of healing", choices=["HEAL_RESTORE", "HEAL_QOS", "HEAL_RESET", "PARTIAL_HEALING"], required=True) - actionsHealing = serializers.CharField(help_text="action of NS healing", required=True) + actionsHealing = serializers.ListField( + help_text="A list of actions", + child=serializers.CharField(help_text="One action", required=True), + required=False) healScript = serializers.CharField(help_text="script of NS heal", required=False, allow_null=True) additionalParamsforNs = serializers.CharField(help_text="Addition params of NS heal", required=False, allow_null=True) -- cgit 1.2.3-korg