diff options
author | 2018-02-28 15:09:07 +0800 | |
---|---|---|
committer | 2018-02-28 15:09:07 +0800 | |
commit | b24cf3a7b0091686bf581992deeed968d5818827 (patch) | |
tree | 267fe04214dd6e4fed29705294f7423a6d5ba421 | |
parent | 080e094badb9e04f120a504a9d76ac42ecdca1ff (diff) |
Add VimAsserts serializer
Change-Id: I50433e9ce29f84bde84db1119eb1ffc3cc2fbf29
Issue-ID: VFC-779
Signed-off-by: fujinhua <fu.jinhua@zte.com.cn>
-rw-r--r-- | lcm/v2/serializers.py | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/lcm/v2/serializers.py b/lcm/v2/serializers.py index 37d09925..2e97d6d6 100644 --- a/lcm/v2/serializers.py +++ b/lcm/v2/serializers.py @@ -207,13 +207,23 @@ class VimSoftwareImageSerializer(serializers.Serializer): ) +class VimAssetsSerializer(serializers.Serializer): + computeResourceFlavours = VimComputeResourceFlavourSerializer( + help_text="Mappings between virtual compute descriptors defined in the VNFD and compute resource flavours managed in the VIM.", + many=True + ) + softwareImages = VimSoftwareImageSerializer( + help_text="Mappings between software images defined in the VNFD and software images managed in the VIM.", + many=True + ) + + class GrantSerializer(serializers.Serializer): id = serializers.CharField( help_text="Identifier of the grant.", required=True ) vnfInstanceId = serializers.CharField( - help_text="Identifier of the related VNF instance.", required=True ) vnfLcmOpOccId = serializers.CharField( @@ -268,3 +278,8 @@ class GrantSerializer(serializers.Serializer): help_text="List of resources that are approved to be modified.", many=True ) + vimAssets = VimAssetsSerializer( + help_text="Information about assets for the VNF that are managed by the NFVO in the VIM.", + required=False, + allow_null=True + ) |