aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lcm/v2/serializers.py35
1 files changed, 35 insertions, 0 deletions
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
+ )