From a3919393a4c610fe2c64fdc26ab541f9a7a3a1e8 Mon Sep 17 00:00:00 2001 From: fujinhua Date: Wed, 28 Feb 2018 17:06:07 +0800 Subject: [PATCH] Add ExtManagedVirtualLinkData Serializer Change-Id: Ib6718e931137032d7bc56163e7fd2283f38c485b Issue-ID: VFC-779 Signed-off-by: fujinhua --- lcm/v2/serializers.py | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) diff --git a/lcm/v2/serializers.py b/lcm/v2/serializers.py index 5dc97684..e64c63dc 100644 --- a/lcm/v2/serializers.py +++ b/lcm/v2/serializers.py @@ -356,6 +356,33 @@ class ExtVirtualLinkDataSerializer(serializers.Serializer): ) +class ExtManagedVirtualLinkDataSerializer(serializers.Serializer): + id = serializers.CharField( + help_text="The identifier of the externally-managed internal VL instance.", + required=True + ) + virtualLinkDescId = serializers.CharField( + help_text="The identifier of the VLD in the VNFD for this VL.", + required=True + ) + vimConnectionId = serializers.CharField( + help_text="Identifier of the VIM connection to manage this resource.", + required=False, + allow_null=True, + allow_blank=True + ) + resourceProviderId = serializers.CharField( + help_text="Identifies the entity responsible for the management of this resource.", + required=False, + allow_null=True, + allow_blank=True + ) + resourceId = serializers.CharField( + help_text="The identifier of the resource in the scope of the VIM or the resource provider.", + required=True + ) + + class GrantSerializer(serializers.Serializer): id = serializers.CharField( help_text="Identifier of the grant.", @@ -421,3 +448,11 @@ class GrantSerializer(serializers.Serializer): required=False, allow_null=True ) + extVirtualLinks = ExtVirtualLinkDataSerializer( + help_text="Information about external VLs to connect the VNF to.", + many=True + ) + extManagedVirtualLinks = ExtManagedVirtualLinkDataSerializer( + help_text="Information about internal VLs that are managed by other entities than the VNFM.", + many=True + ) -- 2.16.6