Add vfc-vnflcm vimInfo schema 65/33365/1
authorying.yunlong <ying.yunlong@zte.com.cn>
Wed, 28 Feb 2018 07:05:53 +0000 (15:05 +0800)
committerying.yunlong <ying.yunlong@zte.com.cn>
Wed, 28 Feb 2018 07:05:53 +0000 (15:05 +0800)
Change-Id: If3f7a7e12a58f18c8ae23437d3df0d29a6c198f3
Issue-ID: VFC-780
Signed-off-by: ying.yunlong <ying.yunlong@zte.com.cn>
lcm/lcm/v2/serializers.py

index ab49850..5c1453e 100644 (file)
 from rest_framework import serializers
 
 
+class AccessInfoSerializer(serializers.Serializer):
+    pass
+
+
+class InterfaceInfoSerializer(serializers.Serializer):
+    pass
+
+
+class VimInfoSerializer(serializers.Serializer):
+    id = serializers.CharField(
+        help_text="The identifier of the VIM Connection. This identifier is managed by the NFVO.",
+        required=False,
+        max_length=255,
+        allow_null=True)
+    vimId = serializers.CharField(
+        help_text="The identifier of the VIM instance. This identifier is managed by the NFVO.",
+        required=False,
+        max_length=255,
+        allow_null=True)
+    vimType = serializers.CharField(
+        help_text="Discriminator for the different types of the VIM information.",
+        required=False,
+        max_length=255,
+        allow_null=True)
+    interfaceInfo = InterfaceInfoSerializer(
+        help_text="vimInfoId",
+        required=False,
+        allow_null=True)
+    accessInfo = AccessInfoSerializer(
+        help_text="accessInfo",
+        required=False,
+        allow_null=True)
+
+
 class VnfInstanceSerializer(serializers.Serializer):
     id = serializers.CharField(
         help_text="Identifier of the VNF instance",
@@ -63,3 +97,7 @@ class VnfInstanceSerializer(serializers.Serializer):
         child=serializers.CharField(help_text="Vnf Configurable Properties", allow_blank=True),
         required=False,
         allow_null=True)
+    vimConnectionInfo = VimInfoSerializer(
+        help_text="vim",
+        required=False,
+        allow_null=True)