diff options
author | 2018-02-28 16:53:03 +0800 | |
---|---|---|
committer | 2018-02-28 16:53:03 +0800 | |
commit | 1c2381af195f80f6ffb2fe7621b58da032d05359 (patch) | |
tree | d48617e6055bae81dcef77ac78e245c0d828c756 | |
parent | 7fd56dbdde96d7ec18845f325c09752e374ecbe3 (diff) |
Add ExtVirtualLinkData Serializer
Change-Id: I1ac4e87d5c7b2a8e19a7408361e195c4d8880311
Issue-ID: VFC-779
Signed-off-by: fujinhua <fu.jinhua@zte.com.cn>
-rw-r--r-- | lcm/v2/serializers.py | 31 |
1 files changed, 31 insertions, 0 deletions
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.", |