Add VnfExtCpConfig Serializer 77/33377/1
authorfujinhua <fu.jinhua@zte.com.cn>
Wed, 28 Feb 2018 08:10:42 +0000 (16:10 +0800)
committerfujinhua <fu.jinhua@zte.com.cn>
Wed, 28 Feb 2018 08:10:42 +0000 (16:10 +0800)
Change-Id: I61d1de2818365c444f011b4c9b6cc9a829874845
Issue-ID: VFC-779
Signed-off-by: fujinhua <fu.jinhua@zte.com.cn>
lcm/v2/serializers.py

index 2abaad5..20517a4 100644 (file)
@@ -284,6 +284,25 @@ class CpProtocolDataSerializer(serializers.Serializer):
     )
 
 
+class VnfExtCpConfigSerializer(serializers.Serializer):
+    cpInstanceId = serializers.CharField(
+        help_text="Identifier of the external CP instance to which this set of configuration parameters is requested to be applied.",
+        required=False,
+        allow_null=True,
+        allow_blank=True
+    )
+    linkPortId = serializers.CharField(
+        help_text="Identifier of a pre-configured link port to which the external CP will be associated.",
+        required=False,
+        allow_null=True,
+        allow_blank=True
+    )
+    cpProtocolData = CpProtocolDataSerializer(
+        help_text="Parameters for configuring the network protocols on the link port that connects the CP to a VL.",
+        many=True
+    )
+
+
 class GrantSerializer(serializers.Serializer):
     id = serializers.CharField(
         help_text="Identifier of the grant.",