From: fujinhua Date: Wed, 28 Feb 2018 08:53:03 +0000 (+0800) Subject: Add ExtVirtualLinkData Serializer X-Git-Tag: v1.1.0~119 X-Git-Url: https://gerrit.onap.org/r/gitweb?a=commitdiff_plain;h=1c2381af195f80f6ffb2fe7621b58da032d05359;p=vfc%2Fnfvo%2Flcm.git Add ExtVirtualLinkData Serializer Change-Id: I1ac4e87d5c7b2a8e19a7408361e195c4d8880311 Issue-ID: VFC-779 Signed-off-by: fujinhua --- diff --git a/lcm/v2/serializers.py b/lcm/v2/serializers.py index 5e613bfe..5dc97684 100644 --- a/lcm/v2/serializers.py +++ b/lcm/v2/serializers.py @@ -325,6 +325,37 @@ class ExtLinkPortDataSerializer(serializers.Serializer): ) +class ExtVirtualLinkDataSerializer(serializers.Serializer): + id = serializers.CharField( + help_text="The identifier of the external VL instance.", + 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 + ) + extCps = VnfExtCpDataSerializer( + help_text="External CPs of the VNF to be connected to this external VL.", + many=True + ) + extLinkPorts = ExtLinkPortDataSerializer( + help_text="Externally provided link ports to be used to connect external connection points to this external VL.", + many=True + ) + + class GrantSerializer(serializers.Serializer): id = serializers.CharField( help_text="Identifier of the grant.",