diff options
author | fujinhua <fu.jinhua@zte.com.cn> | 2018-02-28 09:56:12 +0800 |
---|---|---|
committer | fujinhua <fu.jinhua@zte.com.cn> | 2018-02-28 09:56:12 +0800 |
commit | 45796e0731c662853f3bfdd19c45c9bba92b26c9 (patch) | |
tree | 883dc20ec5e89ebd3be32c14c39704ccc6c1d5e9 | |
parent | c5171eedd40b28edce4f0c8855e783c806bf82a2 (diff) |
Add VimConnectionInfo serializer
Change-Id: I22dca2e052d21784434ebbe4f2eae3e5b43fbf46
Issue-ID: VFC-779
Signed-off-by: fujinhua <fu.jinhua@zte.com.cn>
-rw-r--r-- | lcm/v2/serializers.py | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/lcm/v2/serializers.py b/lcm/v2/serializers.py index 3d1d3083..8fa57a5a 100644 --- a/lcm/v2/serializers.py +++ b/lcm/v2/serializers.py @@ -45,6 +45,43 @@ class GrantRequestSerializer(serializers.Serializer): ) +class VimConnectionInfoSerializer(serializers.Serializer): + id = serializers.CharField( + help_text="The identifier of the VIM Connection. This identifier is managed by the NFVO.", + required=True + ) + vimId = serializers.CharField( + help_text="The identifier of the VIM instance. This identifier is managed by the NFVO.", + required=False, + allow_null=True, + allow_blank=True + ) + vimType = serializers.CharField( + help_text="Discriminator for the different types of the VIM information.", + required=False, + allow_null=True, + allow_blank=True + ) + interfaceInfo = serializers.DictField( + help_text="Information about the interface or interfaces to the VIM.", + child=serializers.CharField(help_text="Interface Info", allow_blank=True), + required=False, + allow_null=True + ) + accessInfo = serializers.DictField( + help_text="Authentication credentials for accessing the VIM.", + child=serializers.CharField(help_text="Access Info", allow_blank=True), + required=False, + allow_null=True + ) + extra = serializers.DictField( + help_text="VIM type specific additional information.", + child=serializers.CharField(help_text="Extra", allow_blank=True), + required=False, + allow_null=True + ) + + class GrantSerializer(serializers.Serializer): id = serializers.CharField( help_text="Identifier of the grant.", |