Пример #1
0
class VnfLinkPortInfo(serializers.Serializer):
    id = serializers.CharField(
        help_text=
        "Identifier of this link port as provided by the entity that has created the link port.",
        max_length=255,
        required=True,
        allow_null=False,
        allow_blank=False)
    resourceHandle = ResourceHandleSerializer(
        help_text=
        "Reference to the virtualised network resource realizing this link port.",
        required=True,
        allow_null=False)
    cpInstanceId = serializers.CharField(
        help_text=
        "When the link port is used for external connectivity by the VNF, \
        this attribute represents the identifier of the external CP of the VNF to be connected to this \
        link port.",
        max_length=255,
        required=False,
        allow_null=True,
        allow_blank=True)
    cpInstanceType = serializers.ChoiceField(
        required=False,
        choices=enum_to_list(CP_INSTANCE_TYPE),
        help_text="Type of the CP instance that is identified by cpInstanceId."
    )
Пример #2
0
class ResourceDefinitionSerializer(serializers.Serializer):
    id = serializers.CharField(
        help_text=
        "Identifier of this ResourceDefinition, unique at least within the scope of the GrantRequest.",
        required=True)
    type = serializers.ChoiceField(
        help_text="Type of the resource definition referenced.",
        choices=enum_to_list(RESOURE_TYPE),
        required=True)
    vduId = serializers.CharField(
        help_text=
        "Reference to the related VDU in the VNFD applicable to this resource.",
        required=False,
        allow_null=True,
        allow_blank=True)
    resourceTemplateId = serializers.CharField(
        help_text=
        "Reference to a resource template(such as VnfVirtualLinkDesc) in the VNFD.",
        required=False,
        allow_null=True,
        allow_blank=True)
    resource = ResourceHandleSerializer(
        help_text="Resource information for an existing resource.",
        required=False,
        allow_null=True)
Пример #3
0
class VirtualStorageResourceInfoSerializer(serializers.Serializer):
    id = serializers.CharField(
        help_text="Identifier of this VirtualStorageResourceInfo instance.",
        max_length=255,
        required=True,
        allow_null=False,
        allow_blank=False)
    virtualStorageDescId = serializers.CharField(
        help_text="Identifier of the VirtualStorageDesc in the VNFD.",
        max_length=255,
        required=False,
        allow_null=True,
        allow_blank=True)
    storageResource = ResourceHandleSerializer(
        help_text="Reference to the VirtualStorage resource.",
        required=True,
        allow_null=False)
    reservationId = serializers.CharField(
        help_text="The reservation identifier applicable to the resource.",
        max_length=255,
        required=False,
        allow_null=True,
        allow_blank=True)
    metadata = serializers.DictField(help_text="Metadata about this resource.",
                                     child=serializers.CharField(
                                         help_text="KeyValue Pairs",
                                         allow_blank=True),
                                     required=False,
                                     allow_null=True)
Пример #4
0
class VnfVirtualLinkResourceInfoSerializer(serializers.Serializer):
    id = serializers.CharField(
        help_text="Identifier of this VnfVirtualLinkResourceInfo instance.",
        max_length=255,
        required=True,
        allow_null=False,
        allow_blank=False)
    virtualLinkDescId = serializers.CharField(
        help_text=
        "Identifier of the VNF Virtual Link Descriptor (VLD) in the VNFD.",
        max_length=255,
        required=True,
        allow_null=False,
        allow_blank=False)
    networkResource = ResourceHandleSerializer(
        help_text="Reference to the VirtualNetwork resource.",
        required=True,
        allow_null=False)
    reservationId = serializers.CharField(
        help_text="The reservation identifier applicable to the resource.",
        max_length=255,
        required=False,
        allow_null=True,
        allow_blank=True)
    vnfLinkPorts = VnfLinkPortInfo(help_text="Links ports of this VL. \
        Shall be present when the linkPort is used for external connectivity by the VNF",
                                   many=True,
                                   required=False,
                                   allow_null=True)
    metadata = serializers.DictField(help_text="Metadata about this resource.",
                                     child=serializers.CharField(
                                         help_text="KeyValue Pairs",
                                         allow_blank=True),
                                     required=False,
                                     allow_null=True)
Пример #5
0
class ExtLinkPortDataSerializer(serializers.Serializer):
    id = serializers.CharField(
        help_text="Provided by the entity that has created the link port.",
        required=True)
    resourceHandle = ResourceHandleSerializer(
        help_text=
        "Identifier(s) of the virtualised network resource(s) realizing the VL instance.",
        required=True)
Пример #6
0
class ExtLinkPortInfoSerializer(serializers.Serializer):
    id = serializers.CharField(
        help_text=
        "Identifier of this link port as provided by the entity that has created the link port.",
        required=True)
    resourceHandle = ResourceHandleSerializer(
        help_text=
        "Reference to the virtualised resource realizing this link port.",
        required=True)
    cpInstanceId = serializers.CharField(
        help_text=
        "Identifier of the external CP of the VNF connected to this link port.",
        required=False,
        allow_null=True,
        allow_blank=True)
Пример #7
0
class NsVirtualLinkInfoSerializer(serializers.Serializer):
    id = serializers.CharField(help_text="Identifier of the VL instance.",
                               required=True)
    nsVirtualLinkDescId = serializers.CharField(
        help_text="Identifier of the VLD in the NSD.", required=True)
    nsVirtualLinkProfileId = serializers.CharField(
        help_text="Identifier of the VL profile in the NSD.", required=True)
    resourceHandle = ResourceHandleSerializer(
        help_text=
        "Identifier(s) of the virtualised network resource(s) realizing the VL instance",
        required=True,
        many=True)
    linkPort = NsLinkPortInfo(help_text="Link ports of this VL.",
                              many=True,
                              required=False,
                              allow_null=True)
Пример #8
0
class ExtVirtualLinkInfoSerializer(serializers.Serializer):
    id = serializers.CharField(
        help_text=
        "Identifier of the external VL and the related external VL information instance.",
        required=True,
        max_length=255,
        allow_null=False,
        allow_blank=False)
    resourceHandle = ResourceHandleSerializer(
        help_text="Reference to the resource realizing this VL.",
        required=True,
        allow_null=False)
    extlinkPorts = ExtlinkPortInfoSerializer(
        help_text="Link ports of this VL.",
        many=True,
        required=False,
        allow_null=True)
Пример #9
0
class AffectedVirtualLinkSerializer(serializers.Serializer):
    id = serializers.CharField(
        help_text="Identifier of the virtual link instance.", required=True)
    virtualLinkDescId = serializers.CharField(
        help_text="Identifier of the related VLD in the VNFD.", required=True)
    changeType = serializers.ChoiceField(
        help_text="Signals the type of change.",
        choices=enum_to_list(VL_CHANGE_TYPE),
        required=True)
    networkResource = ResourceHandleSerializer(
        help_text="Reference to the VirtualNetwork resource.",
        required=False,
        allow_null=True)
    metadata = serializers.DictField(help_text="Metadata about this resource.",
                                     child=serializers.CharField(
                                         help_text="KeyValue Pairs",
                                         allow_blank=True),
                                     required=False,
                                     allow_null=True)
Пример #10
0
class ExtManagedVirtualLinkInfo(serializers.Serializer):
    id = serializers.CharField(
        help_text=
        "Identifier of the externally-managed inner VL and the related externally-managed VL information instance.",
        max_length=255,
        required=True)
    vnfVirtualLinkDescId = serializers.CharField(
        help_text=
        "Identifier of the VNF Virtual Link Descriptor (VLD) in the VNFD.",
        max_length=255,
        required=True)
    networkResource = ResourceHandleSerializer(
        help_text="ResourceHandle,reference to the VirtualNetwork resource.",
        required=True,
        allow_null=False)
    vnfLinkPorts = VnfLinkPortInfo(
        help_text="VnfLinkPortInfo, Link ports of this VL.",
        many=True,
        required=False)
Пример #11
0
class AffectedVirtualStorageSerializer(serializers.Serializer):
    id = serializers.CharField(help_text="Identifier of the storage instance.",
                               required=True)
    virtualStorageDescId = serializers.CharField(
        help_text=
        "Identifier of the related VirtualStorage descriptor in the VNFD.",
        required=True)
    changeType = serializers.ChoiceField(
        help_text="Signals the type of change.",
        choices=enum_to_list(STORAGE_CHANGE_TYPE),
        required=True)
    storageResource = ResourceHandleSerializer(
        help_text="Reference to the VirtualStorage resource.",
        required=False,
        allow_null=True)
    metadata = serializers.DictField(help_text="Metadata about this resource.",
                                     child=serializers.CharField(
                                         help_text="KeyValue Pairs",
                                         allow_blank=True),
                                     required=False,
                                     allow_null=True)
Пример #12
0
class NsLinkPortInfo(serializers.Serializer):
    id = serializers.CharField(
        help_text=
        "Identifier of this link port as provided by the entity that has created the link port.",
        max_length=255,
        required=True,
        allow_blank=False,
        allow_null=False)
    resourceHandle = ResourceHandleSerializer(
        help_text=
        "Reference to the virtualised resource realizing this link port.",
        required=True,
        allow_null=False)
    cpInstanceId = serializers.CharField(
        help_text=
        "Identifier of the external CP of the VNF connected to this link port. \
        There shall be at most one link port associated with any external connection point instance.",
        max_length=255,
        required=False,
        allow_blank=True,
        allow_null=True)
Пример #13
0
class AffectedVnfcSerializer(serializers.Serializer):
    id = serializers.CharField(help_text="Identifier of the Vnfc instance.",
                               required=True)
    vduId = serializers.CharField(
        help_text="Identifier of the related VDU in the VNFD.", required=True)
    changeType = serializers.ChoiceField(
        help_text="Signals the type of change.",
        choices=enum_to_list(VNFC_CHANGE_TYPE),
        required=True)
    computeResource = ResourceHandleSerializer(
        help_text="Reference to the VirtualCompute resource.", required=True)
    metadata = serializers.DictField(help_text="Metadata about this resource.",
                                     child=serializers.CharField(
                                         help_text="KeyValue Pairs",
                                         allow_blank=True),
                                     required=False,
                                     allow_null=True)
    affectedVnfcCpIds = serializers.ListSerializer(
        help_text=
        "Identifiers of CP(s) of the VNFC instance that were affected by the change.",
        child=serializers.CharField(help_text="Identifier In Vnf",
                                    allow_blank=True),
        required=False,
        allow_null=True)
    addedStorageResourceIds = serializers.ListSerializer(
        help_text=
        "References to VirtualStorage resources that have been added.",
        child=serializers.CharField(help_text="Identifier In Vnf",
                                    allow_blank=True),
        required=False,
        allow_null=True)
    removedStorageResourceIds = serializers.ListSerializer(
        help_text=
        "References to VirtualStorage resources that have been removed.",
        child=serializers.CharField(help_text="Identifier In Vnf",
                                    allow_blank=True),
        required=False,
        allow_null=True)
Пример #14
0
class VnfcResourceInfoSerializer(serializers.Serializer):
    id = serializers.CharField(
        help_text="Identifier of this VnfcResourceInfo instance.",
        max_length=255,
        required=False,
        allow_null=False)
    vduId = serializers.CharField(
        help_text="Reference to the applicable VDU in the VNFD.",
        max_length=255,
        required=False,
        allow_null=False)
    computeResource = ResourceHandleSerializer(
        help_text="Reference to the VirtualCompute resource.",
        required=True,
        allow_null=False)
    storageResourceIds = serializers.ListSerializer(
        help_text=
        "References to the VirtualStorage resources. The value refers to a VirtualStorageResourceInfo item in the VnfInstance.",
        child=serializers.CharField(help_text="Identifier In Vnf",
                                    allow_blank=True),
        required=False,
        allow_null=True)
    reservationId = serializers.CharField(
        help_text="The reservation identifier applicable to the resource.",
        max_length=255,
        required=False,
        allow_null=True,
        allow_blank=True)
    vnfcCpInfo = VnfcCpInfo(
        help_text=
        "CPs of the VNFC instance. Shall be present when that particular CP of the VNFC instance is associated to an external CP of the VNF instance.",
        many=True,
        required=False,
        allow_null=True)
    metadata = serializers.DictField(help_text="Metadata about this resource.",
                                     required=False)