From: fujinhua Date: Wed, 28 Feb 2018 09:06:07 +0000 (+0800) Subject: Add ExtManagedVirtualLinkData Serializer X-Git-Tag: v1.1.0~118 X-Git-Url: https://gerrit.onap.org/r/gitweb?a=commitdiff_plain;h=a3919393a4c610fe2c64fdc26ab541f9a7a3a1e8;p=vfc%2Fnfvo%2Flcm.git Add ExtManagedVirtualLinkData Serializer Change-Id: Ib6718e931137032d7bc56163e7fd2283f38c485b Issue-ID: VFC-779 Signed-off-by: fujinhua --- 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 + )