diff options
author | ying.yunlong <ying.yunlong@zte.com.cn> | 2018-02-28 15:05:53 +0800 |
---|---|---|
committer | ying.yunlong <ying.yunlong@zte.com.cn> | 2018-02-28 15:05:53 +0800 |
commit | e11601e4fc54547d027771fe9c822e9dd6d4060e (patch) | |
tree | 893121778f3963d0cf703365f03c2b0a5f5cf8a7 | |
parent | 305d79a03fa6113e10a3df62bd122d7c5971e6e7 (diff) |
Add vfc-vnflcm vimInfo schema
Change-Id: If3f7a7e12a58f18c8ae23437d3df0d29a6c198f3
Issue-ID: VFC-780
Signed-off-by: ying.yunlong <ying.yunlong@zte.com.cn>
-rw-r--r-- | lcm/lcm/v2/serializers.py | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/lcm/lcm/v2/serializers.py b/lcm/lcm/v2/serializers.py index ab498500..5c1453ee 100644 --- a/lcm/lcm/v2/serializers.py +++ b/lcm/lcm/v2/serializers.py @@ -14,6 +14,40 @@ 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) |