SOL003VNFLifecycleManagement_def.yaml 224 KB
Newer Older
# Copyright (c) ETSI 2017.
# https://forge.etsi.org/etsi-forge-copyright-notice.txt

definitions:
      This type represents request parameters for the "Instantiate VNF" operation.
      * NOTE 1:	The indication of externally-managed internal VLs is needed in case 
                networks have been pre-configured for use with certain VNFs, for instance 
                to ensure that these networks have certain properties such as security or 
                acceleration features, or to address particular network topologies. 
                The present document assumes that externally-managed internal VLs are 
                managed by the NFVO and created towards the VIM.
      * NOTE 2:	It is possible to have several ExtManagedVirtualLinkData for the same VNF 
                internal VL in case of a multi-site VNF spanning several VIMs. The set of 
                ExtManagedVirtualLinkData corresponding to the same VNF internal VL shall 
                indicate so by referencing to the same VnfVirtualLinkDesc and externally-managed 
                multi-site VL instance (refer to clause 4.4.1.12).
      * NOTE 3: The target size for VNF instantiation may be specified in either instantiationLevelId or targetScaleLevelInfo, but
                not both. If none of the two attributes (instantiationLevelId or targetScaleLevelInfo) are present, the default
                instantiation level as declared in the VNFD shall be used.
      * NOTE 4: If targetScaleLevelInfo is specified, information provided in targetScaleLevelInfo shall be used for instantiating
                scalable constituents of the VNF (e.g, VDUs/VLs). For scaling aspects not specified in targetScaleLevelInfo or
                for the VNF constituents (e.g.,VDUs/VLs) that are not scalable, the default instantiation level as declared in the
                VNFD shall be used for instantiation.
      * NOTE 5: If the referenced instantiationLevel or the targetScaleLevelInfo contain information related to VNFCs that are 
                not going to be instantiated due to the selection of deployable modules, the information is stored in the VNFM 
                for later use and included in the instantiatedVnfInfo. If none of the attributes is present, the information from the 
                defaultInstantiationLevel related to those VNFCs is stored and included in the instantiatedVnfInfo. If, during the 
                lifecycle of the VNF, as a result of a change of the selected deployable modules any of those VNFCs is going to 
                be instantiated, the stored information determines the number of instances, unless the request that triggered 
                the change also contains information about the number of instances.
    anyOf:  
      - required:
        - instantiationLevelId
      - required:
        - targetScaleLevelInfo
    type: object
    required:
        description: >
          Identifier of the VNF deployment flavour to be instantiated.
        $ref: "../../General_Definitions/SOL003_def.yaml#/definitions/IdentifierInVnfd"
      instantiationLevelId:
        description: >
          Identifier of the instantiation level of the deployment
          flavour to be instantiated. See note 3 and 5.
        $ref: "../../General_Definitions/SOL003_def.yaml#/definitions/IdentifierInVnfd"
      targetScaleLevelInfo:
        description: >
          This attribute is applicable if VNF supports target
          scale level instantiation.
          For each scaling aspect of the current deployment
          flavour, the attribute specifies the scale level of VNF
          constituents (e.g., VDU level) to be instantiated. See
          $ref: "../../General_Definitions/SOL003_def.yaml#/definitions/ScaleInfo"
      extVirtualLinks:
        description: >
          Information about external VLs to connect the VNF
          to, including configuration information for the CPs
          via which the VNF instance can attach to this VL.
          The following applies to the "ExtVirtualLinkData"
          information provided in this request, together with
          the the related overriding information provided in the
          "Grant" structure (see clause 9.5.2.3): Even if the
          VNF is not instantiated in fully scaled-out state, the
          API consumer shall provide enough CP
          configuration records to allow connecting the VNF
          instance, fully scaled out in all scaling aspects, to
          the external VLs.
        type: array
        items:
          $ref: "../../General_Definitions/SOL003_def.yaml#/definitions/ExtVirtualLinkData"
      extManagedVirtualLinks:
        description: >
          Information about internal VLs that are managed by the NFVO. See note 1 and note 2.
        type: array
        items:
          $ref: "#/definitions/ExtManagedVirtualLinkData"
      vimConnectionInfo:
        description: >
          Information about VIM or CISM connections to be
          used for managing the resources for the VNF
          instance, or refer to external/externally-managed
          virtual links.
          This attribute shall only be supported and may be
          present if
          - the resources for at least one of the VNFCs
          shall be managed by a VIM and VNF-related resource management in direct
          mode is applicable.
          - the resources for at least one of the VNFCs
          shall be managed by a CISM.
          The VNFM shall apply the content of this attribute to
          the "vimConnectionInfo" attribute of "VnfInstance"
          according to the rules of JSON Merge Patch (see
          IETF RFC 7396 [5]).
        type: object
        additionalProperties:
          $ref: "../../General_Definitions/SOL003_def.yaml#/definitions/VimConnectionInfo"
        description: >
          Localization language of the VNF to be instantiated. The value shall
          comply with the format defined in IETF RFC 5646.
        $ref: "../../General_Definitions/SOL003_def.yaml#/definitions/String"
      additionalParams:
        description: >
          Additional input parameters for the instantiation
          process, specific to the VNF being instantiated, as
          declared in the VNFD as part of
          "InstantiateVnfOpConfig" defined in ETSI GS NFVIFA 011 [10].
        $ref: "../../General_Definitions/SOL003_def.yaml#/definitions/KeyValuePairs"
          If present, this attribute provides modifications to the default values, 
          as obtained from the VNFD, of the "extensions" attribute in "VnfInstance", 
          as defined in clause 5.5.2.2. Provisions for handling extensions during the
          operation are defined in clause 5.4.4.3.1.
        $ref: "../../General_Definitions/SOL003_def.yaml#/definitions/KeyValuePairs"
          If present, this attribute provides modifications to the default values, as obtained from the VNFD, of 
          the "vnfConfigurableProperties" attribute in "VnfInstance", as defined in clause 5.5.2.2. Provisions for 
          handling configurable properties during the operation are defined in clause 5.4.4.3.1.
        $ref: "../../General_Definitions/SOL003_def.yaml#/definitions/KeyValuePairs"
      selectedDeployableModule:
        description: >
          Identifier of a selected deployable module. Only VNFCs based on VDUs that belong to deployable 
          modules listed in this attribute are requested to be instantiated.
        type: array
        items:
          $ref: "../../General_Definitions/SOL003_def.yaml#/definitions/IdentifierInVnfd"
Muhammad Umair Khan's avatar
Muhammad Umair Khan committed
      resourceCapacityDefinition:
        description: >
          Indicates values for resource capacity related attributes pertaining to a 
          descriptor. Values can only be provided for resource capacity related attributes 
          that have been defined in the VNFD as being configurable. Furthermore, provided 
          values shall be within the allowed values indicated in the VNFD.
        type: array
        items:
          $ref: "../../General_Definitions/SOL003_def.yaml#/definitions/ResourceCapacityDefinition"
  ExtManagedVirtualLinkData:
    description: >
      This type represents an externally-managed internal VL.

      * NOTE 1: It is only applicable if the externally-managed VL is realized by a secondary container cluster network. It shall
                not be present otherwise.
      * NOTE 2: A link port is not needed for a VNFC internal connection point connected to a secondary container cluster
                network.
      * NOTE 3: An example of the network attachment definition resource when the container infrastructure service
                management is a Kubernetes® instance is a network attachment definition (NAD).

      * NOTE 4: In the case that the cloud native template included in the MCIOP describes the set of VNFC instances, an 
                instance of intCp need not be included for each VNFC instance as all instances would contain the same 
                information. It is sufficient to include one intCp for the related CPD. The case of using, for a scalable VDU, a 
                cloud native template in the MCIOP that describes one single VNFC instance is not specified in the present 
                document version
    type: object
    required:
      - id
      - vnfVirtualLinkDescId
      - resourceId
    properties:
      id:
        description: >
          The identifier of the externally-managed internal VL instance. The
          identifier is assigned by the NFV-MANO entity that manages this VL
          instance.
        $ref: "../../General_Definitions/SOL003_def.yaml#/definitions/Identifier"
      vnfVirtualLinkDescId:
        description: >
          The identifier of the VLD in the VNFD for this VL.
        $ref: "../../General_Definitions/SOL003_def.yaml#/definitions/IdentifierInVnfd"
      vimConnectionId:
        description: >
          Identifier of the VIM connection to manage this resource. This
          attribute shall only be supported and present if VNF-related
          resource management in direct mode is applicable.
        $ref: "../../General_Definitions/SOL003_def.yaml#/definitions/Identifier"
      resourceProviderId:
        description: >
          Identifies the entity responsible for the management of this
          resource. This attribute shall only be supported and present if
          VNF-related resource management in indirect mode is applicable. The
          identification scheme is outside the scope of the present document.
        $ref: "../../General_Definitions/SOL003_def.yaml#/definitions/Identifier"
      resourceId:
        description: >
          The identifier of the resource in the scope of the VIM or the
          resource provider.
        $ref: "../../General_Definitions/SOL003_def.yaml#/definitions/IdentifierInVim"
      netAttDefResourceData:
        description: >
          Externally provided network attachment definition
          resource(s) that provide the specification of the interface
          to attach VNFC connection points to this externallymanaged VL.
          See notes 1 and 3.
        type: array
        items:
          $ref: "../../General_Definitions/SOL003_def.yaml#/definitions/NetAttDefResourceData"
      intCp:
        description: >
          Internal CPs of the VNF to be connected to this
          externally-managed VL. See note 1 and 4.
        type: array
        items:
          $ref: "#/definitions/IntVnfCpData"
      vnfLinkPort:
        description: >
          Externally provided link ports to be used to connect VNFC connection points to this externally-managed VL
          on this network resource. If this attribute is not present, the VNFM shall create the link ports on the
          externally-managed VL. See note 2.
          $ref: "../../General_Definitions/SOL003_def.yaml#/definitions/VnfLinkPortData"
      extManagedMultisiteVirtualLinkId:
        description: >
          Identifier of the externally-managed multi-site VL instance. The identifier is assigned by the NFVMANO
          entity that manages the externally managed multi-site VL instance. It shall be present when the present
          externally-managed internal VL (indicated by extManagedVirtualLinkId) is part of a multi-site VL, e.g.,
          in support of multi-site VNF spanning several VIMs. All externally-managed internal VL instances
          corresponding to an internal VL created based on the same virtualLinkDescId shall refer to the same
          extManagedMultisiteVirtualLinkId.
        $ref: "../../General_Definitions/SOL003_def.yaml#/definitions/Identifier"
  ChangeVnfFlavourRequest:
    description: >
      This type represents request parameters for the "Change VNF flavour" operation.
      * NOTE 1:	The indication of externally-managed internal VLs is needed in case networks 
                have been pre-configured for use with certain VNFs, for instance to ensure 
                that these networks have certain properties such as security or acceleration 
                features, or to address particular network topologies. The present document 
                assumes that externally-managed internal VLs are managed by the NFVO and created 
                towards the VIM.
      * NOTE 2:	It is possible to have several ExtManagedVirtualLinkData for the same VNF internal 
                VL in case of a multi-site VNF spanning several VIMs. The set of ExtManagedVirtualLinkData 
                corresponding to the same VNF internal VL shall indicate so by referencing to the same 
                VnfVirtualLinkDesc and externally-managed multi-site VL instance (refer to clause 4.4.1.12).
      * NOTE 3: The target size for VNF instantiation may be specified in either instantiationLevelId or targetScaleLevelInfo, but
                not both. If none of the two attributes (instantiationLevelId or targetScaleLevelInfo) are present, the default
                instantiation level as declared in the VNFD shall be used.
      * NOTE 4: If targetScaleLevelInfo is specified, information provided in targetScaleLevelInfo shall be used for instantiating
                scalable constituents of the VNF (e.g, VDUs/VLs). For scaling aspects not specified in targetScaleLevelInfo or
                for the VNF constituents (e.g.,VDUs/VLs) that are not scalable, the default instantiation level as declared in the
                VNFD shall be used for instantiation.
    type: object
    required:
        description: >
          Identifier of the VNF deployment flavour to be instantiated.
        $ref: "../../General_Definitions/SOL003_def.yaml#/definitions/IdentifierInVnfd"
      instantiationLevelId:
        description: >
          Identifier of the instantiation level of the deployment flavour to
          be instantiated. See note 3.
        $ref: "../../General_Definitions/SOL003_def.yaml#/definitions/IdentifierInVnfd"
      targetScaleLevelInfo:
        description: >
          This attribute is applicable if VNF supports target scale
          level instantiation.
          For each scaling aspect of the current deployment
          flavour, the attribute specifies the scale level of VNF
          constituents (e.g., VDU level) to be instantiated. See
          notes 3 and 4.
        type: array
        items:
          $ref: "../../General_Definitions/SOL003_def.yaml#/definitions/ScaleInfo"
      extVirtualLinks:
        description: >
          Information about external VLs to connect the VNF to, including configuration information 
          for the CPs via which the VNF instance can attach to this VL.
          Entries in the list of external VLs that are unchanged need not be supplied as part of
          this request.
          The following applies to the "ExtVirtualLinkData" information provided in this 
          request, together with the related "ExtVirtualLinkInfo" information known to the 
          VNFM represented in the "VnfInstance" structure (see clause 5.5.2.2) and the related
          overriding information provided in the "Grant" structure (see clause 9.5.2.3): Even if the VNF 
          is not in fully scaled-out state after changing the flavour, the API consumer shall provide 
          enough CP configuration records to allow connecting the VNF instance, fully scaled out in all scaling 
          aspects, to the external VLs.
        type: array
        items:
          $ref: "../../General_Definitions/SOL003_def.yaml#/definitions/ExtVirtualLinkData"
      extManagedVirtualLinks:
        description: >
          Information about internal VLs that are managed by the NFVO. See notes 1 and 2.
        type: array
        items:
          $ref: "#/definitions/ExtManagedVirtualLinkData"
      vimConnectionInfo:
        description: >
          Information about VIM or CISM connections to be used
          for managing the resources for the VNF instance, or
          refer to external/externally-managed virtual links.
          This attribute shall only be supported and may be
          present if
          - the resources for at least one of the VNFCs
          shall be managed by a VIM and VNF-related
          resource management in direct mode is
          applicable.
          - the resources for at least one of the VNFCs
          shall be managed by a CISM.
          The VNFM shall apply the content of this attribute to
          the "vimConnectionInfo" attribute of "VnfInstance"
          according to the rules of JSON Merge Patch (see IETF
          RFC 7396 [5]).
        type: object
        additionalProperties:
          $ref: "../../General_Definitions/SOL003_def.yaml#/definitions/VimConnectionInfo"
      additionalParams:
        description: >
          Additional input parameters for the instantiation process, specific
          to the VNF being instantiated, as declared in the VNFD as part of
          "InstantiateVnfOpConfig" defined in ETSI GS NFV-IFA 011 [10].
        $ref: "../../General_Definitions/SOL003_def.yaml#/definitions/KeyValuePairs"
      extensions:
        description: >
          If present, this attribute provides modifications to the values of the "extensions" 
          attribute in "VnfInstance", as defined in clause 5.5.2.2. Provisions for handling 
          extensions during the operation, are defined in clause 5.4.7.3.1.
        $ref: "../../General_Definitions/SOL003_def.yaml#/definitions/KeyValuePairs"
      vnfConfigurableProperties:
        description: >
          If present, this attribute provides modifications to the values of the "vnfConfigurableProperties" attribute 
          in  "VnfInstance", as defined in clause 5.5.2.2. 
          Provisions for handling VNF configurable properties during the operation, are defined in clause 5.4.7.3.1.
        $ref: "../../General_Definitions/SOL003_def.yaml#/definitions/KeyValuePairs"
      selectedDeployableModule:
        description: >
          Identifier of a selected deployable module. Only VNFCs based on VDUs that belong to deployable 
          modules listed in this attribute are requested to be instantiated or preserved if they were already 
          instantiated.
        type: array
        items:
          $ref: "../../General_Definitions/SOL003_def.yaml#/definitions/IdentifierInVnfd"
Muhammad Umair Khan's avatar
Muhammad Umair Khan committed
      resourceCapacityDefinition:
        description: >
          Indicates values for resource capacity related attributes pertaining to a descriptor. 
          Values can only be provided for resource capacity related attributes that have been 
          defined in the VNFD as being configurable. Furthermore, provided values shall be within 
          the allowed values indicated in the VNFD.
        type: array
        items:
          $ref: "../../General_Definitions/SOL003_def.yaml#/definitions/ResourceCapacityDefinition"
      certificateConfigurationData:
        description: >
          Configuration for certificate management such as certificate profile and security policy in this VNF. Can 
          be present when setting a new certificate to the VNF instance in delegation mode. Otherwise shall not be 
          present.
          This attribute shall be supported when delegation mode of certificate management is applicable.
        $ref: "#/definitions/CertificateConfigurationData"

      This type represents request parameters for the "Terminate VNF" operation.

      NOTE:	If the VNF is still in service, requesting forceful termination can 
            adversely impact network service.
    type: object
    required:
      - terminationType
    properties:
      terminationType:
        description: >
          Indicates whether forceful or graceful termination is requested. 
          See note.

          - FORCEFUL: The VNFM will shut down the VNF and release the
                      resources immediately after accepting the request.
          - GRACEFUL: The VNFM will first arrange to take the VNF out of
                      service after accepting the request. Once the operation 
                      of taking the VNF out of service finishes (irrespective 
                      of whether it has succeeded or failed) or once the timer 
                      value specified in the "gracefulTerminationTimeout" 
                      attribute expires, the VNFM will shut down the VNF and 
                      release the resources.
        type: string
        enum:
          - FORCEFUL
          - GRACEFUL
      gracefulTerminationTimeout:
        description: >
          This attribute is only applicable in case of graceful termination.
          It defines the time to wait for the VNF to be taken out of service
          before shutting down the VNF and releasing the resources.
          The unit is seconds.
          If not given and the "terminationType" attribute is set to
          "GRACEFUL", it is expected that the VNFM waits for the successful
          taking out of service of the VNF, no matter how long it takes,
          before shutting down the VNF and releasing the resources.
        type: integer
      additionalParams:
        description: >
          Additional parameters passed by the NFVO as input to the termination
          process, specific to the VNF being terminated, as declared in the
          VNFD as part of "TerminateVnfOpConfig" defined in ETSI GS NFV-IFA 011 [10].
        $ref: "../../General_Definitions/SOL003_def.yaml#/definitions/KeyValuePairs"

  HealVnfRequest:
    type: object
    properties:
      cause:
        description: >
          Indicates the reason why a healing procedure is required.
        $ref: "../../General_Definitions/SOL003_def.yaml#/definitions/String"
      additionalParams:
        description: >
          Additional parameters passed by the NFVO as input to the healing
          process, specific to the VNF being healed, as declared in the VNFD
          as part of "HealVnfOpConfig" defined in ETSI GS NFV-IFA 011 [10].
        $ref: "../../General_Definitions/SOL003_def.yaml#/definitions/KeyValuePairs"
Muhammad Umair Khan's avatar
Muhammad Umair Khan committed
      healingResource:
        description: >
          Indicates the kinds of the virtual resource to be healed.
Muhammad Umair Khan's avatar
Muhammad Umair Khan committed
          Permitted values:
            * VL
            * LINKPORT
            * STORAGE
            * VIRTUALCP
            * COMPUTE
            * OSCONTAINER

          Default value is COMPUTE when the VDUs of the VNF are realized by a set of virtual machines 
          and OSCONTAINER when the VDUs of the VNF are realized by a set of OS containers.
        type: array
        enum:
          - VL
          - LINKPORT
          - STORAGE
          - VIRTUALCP
          - COMPUTE
          - OSCONTAINER
    
  OperateVnfRequest:
    description: >
      This type represents request parameters for the "Operate VNF" operation.

      NOTE:	The "stopType" and "gracefulStopTimeout" attributes shall be absent, 
            when the "changeStateTo" attribute is equal to "STARTED". 
            The "gracefulStopTimeout" attribute shall be present, when the "changeStateTo" 
            is equal to "STOPPED" and the "stopType" attribute is equal to "GRACEFUL". 
            The "gracefulStopTimeout" attribute shall be absent, when the "changeStateTo" 
            attribute is equal to "STOPPED" and the "stopType" attribute is equal to "FORCEFUL". 
            The request shall be treated as if the "stopType" attribute has been set to "FORCEFUL", 
            when the "changeStateTo" attribute is equal to "STOPPED" and the "stopType" attribute 
            is absent.
    required:
      - changeStateTo
    properties:
      changeStateTo:
        description: >
          The desired operational state (i.e. started or stopped) to change
          the VNF to.
        $ref: "#/definitions/VnfOperationalStateType"
      stopType:
        description: >
          It signals whether forceful or graceful stop is requested. See note.
        $ref: "#/definitions/StopType"
      gracefulStopTimeout:
        description: >
          The time interval (in seconds) to wait for the VNF to be taken out of service 
          during graceful stop, before stopping the VNF. See note.
        type: integer
      additionalParams:
        description: >
          Additional parameters passed by the NFVO as input to the process,
          specific to the VNF of which the operation status is changed, as
          declared in the VNFD as part of "OperateVnfOpConfig" defined in ETSI GS NFV-IFA 011 [10].
        $ref: "../../General_Definitions/SOL003_def.yaml#/definitions/KeyValuePairs"
  ChangeExtVnfConnectivityRequest:
    description: >
      This type represents request parameters for the
      "Change external VNF connectivity" operation to modify the external
      connectivity of a VNF instance.
    type: object
    required:
      - extVirtualLinks
    properties:
      extVirtualLinks:
        description: >
          Information about external VLs to change (e.g. connect the VNF to) including configuration
          information for the CPs via which the VNF instance can attach to this VL.
          Entries in the list of external VLs that are unchanged need not be supplied
          as part of this request.
          The following applies to the "ExtVirtualLinkData" information provided in this request,
          together with the related "ExtVirtualLinkInfo" informationknown to the VNFM represented
          in the "VnfInstance" structure (see clause 5.5.2.2) and the related overriding 
          information provided in the "Grant" structure (see clause 9.5.2.3): Even if the VNF
          is not in fully scaled-out state, the API consumer shall provide enough CP 
          configuration records to allow connecting the VNF instance, fully scaled out in
          all scaling aspects, to the external VLs.
          $ref: "../../General_Definitions/SOL003_def.yaml#/definitions/ExtVirtualLinkData"
      vimConnectionInfo:
        description: >
          Information about VIM or CISM connections to be used for managing the resources for the VNF instance, or
          refer to external virtual links.
          This attribute shall only be supported and may be present if
            - the resources for at least one of the VNFCs
              shall be managed by a VIM and VNF-related
              resource management in direct mode is
              applicable.
            - the resources for at least one of the VNFCs
              shall be managed by a CISM.
          The VNFM shall apply the content of this attribute to the "vimConnectionInfo" attribute of "VnfInstance"
          according to the rules of JSON Merge Patch (see IETF RFC 7396 [5]).
        type: object
        additionalProperties:
          $ref: "../../General_Definitions/SOL003_def.yaml#/definitions/VimConnectionInfo"
      additionalParams:
        description: >
          Additional input parameters for the instantiation process, specific
          to the VNF being instantiated, as declared in the VNFD as part of
          "ChangeExtVnfConnectivityOpConfig" defined in ETSI GS NFV-IFA 011 [10].
        $ref: "../../General_Definitions/SOL003_def.yaml#/definitions/KeyValuePairs"
      certificateConfigurationData:
        description: >
            Configuration for certificate management such as certificate profile and security policy in this VNF. Can be 
            present when setting a new certificate to the VNF instance in delegation mode. Otherwise shall not be 
            present.This attribute shall be supported when delegation mode of certificate management is applicable.
        $ref: "#/definitions/CertificateConfigurationData"
  ChangeCurrentVnfPkgRequest:
    description: >
      This type represents request parameters for the "Change current VNF package" 
      operation to replace the VNF package on which a VNF instance is based.

      NOTE 1:	The indication of externally-managed internal VLs is needed in case networks 
              have been pre-configured for use with certain VNFs, for instance to ensure 
              that these networks have certain properties such as security or acceleration 
              features, or to address particular network topologies. The present document 
              assumes that externally-managed internal VLs are managed by the NFVO and created 
              towards the VIM.
      NOTE 2:	It is possible to have several ExtManagedVirtualLinkData for the same VNF internal 
              VL in case of a multi-site VNF spanning several VIMs. The set of ExtManagedVirtualLinkData 
              corresponding to the same VNF internal VL shall indicate so by referencing to the same 
              VnfVirtualLinkDesc and externally-managed multi-site VL instance (refer to clause 4.4.1.12).
      NOTE 3: Component mappings are defined in the VNFD in the source or destination package for the relevant change 
              path. See clause 7.1.15.2 in ETSI GS NFV-IFA 011 [13].
Muhammad Umair Khan's avatar
Muhammad Umair Khan committed
      NOTE 4: In the current version of the present document, only Rolling upgrade and Blue-green 
              upgrade types are supported. The definition of additional upgrade types is left for future 
              specification.
    type: object
    required:
      - vnfdId
    properties:
      vnfdId:
        description: >
          Identifier of the VNFD which defines the destination VNF Package for the 
          change.
        $ref: "../../General_Definitions/SOL003_def.yaml#/definitions/Identifier"
      extVirtualLinks:
        description: >
          Information about external VLs to connect the VNF to, including configuration information for 
          the CPs via which the VNF instance can attach to this VL.
          Entries in the list that are unchanged need not be supplied as part of this request.
          The following applies to the "ExtVirtualLinkData" information provided in this request,
          together with the related "ExtVirtualLinkInfo" information known to the VNFM represented
          in the "VnfInstance" structure (see clause 5.5.2.2) and the related overriding information
          provided in the "Grant" structure (see clause 9.5.2.3): Even if the VNF is not in fully
          scaled-out state after the change of the VNF package, the API consumer shall provide enough
          CP configuration records to allow connecting the VNF instance, fully scaled 
          out in all scaling aspects, to the external VLs.
          $ref: "../../General_Definitions/SOL003_def.yaml#/definitions/ExtVirtualLinkData"
      extManagedVirtualLinks:
        description: >
          Information about internal VLs that are managed by the NFVO. See notes 1 and 2.
          $ref: "#/definitions/ExtManagedVirtualLinkData"
      vimConnectionInfo:
        description: >
          Information about VIM or CISM connections to be used for managing the resources for the VNF
          instance, or refer to external virtual links.
          This attribute shall only be supported and may be present if
            - the resources for at least one of the VNFCs shall be managed by a VIM and
            VNF-related resource management in direct mode is applicable.
            - the resources for at least one of the VNFCs shall be managed by a CISM.
            The VNFM shall apply the content of this attribute to the "vimConnectionInfo" attribute of
          "VnfInstance" according to the rules of JSON Merge Patch (see IETF RFC 7396 [5]).
        type: object
        additionalProperties:
          $ref: "../../General_Definitions/SOL003_def.yaml#/definitions/VimConnectionInfo"
      additionalParams:
        description: >
          Additional parameters passed by the NFVO as input to the process, specific 
          to the VNF of which the underlying VNF package is changed, as declared in 
          the VNFD as part of "ChangeCurrentVnfPkgOpConfig" defined in ETSI GS NFV-IFA 011 [10].
        $ref: "../../General_Definitions/SOL003_def.yaml#/definitions/KeyValuePairs"
      extensions:
        description: >
          If present, this attribute provides modifications to the values of the 
          "extensions" attribute in "VnfInstance", as defined in clause 5.5.2.2.
          Provisions for handling extensions during the operation, and needed passed 
          parameter values in case of conflicts, are defined in clause 5.4.11a.3.1.
        $ref: "../../General_Definitions/SOL003_def.yaml#/definitions/KeyValuePairs"
      vnfConfigurableProperties:
        description: >
          If present, this attribute provides modifications to the values of the "vnfConfigurableProperties" attribute 
          in "VnfInstance", as defined in clause 5.5.2.2. Provisions for handling VNF configurable properties during the 
          operation, and needed passed parameter values in case of conflicts, are  defined in clause 5.4.11a.3.1.
        $ref: "../../General_Definitions/SOL003_def.yaml#/definitions/KeyValuePairs"
      selectedDeployableModule:
        description: >
          Identifier of a selected deployable module.
          
          If this attribute is present only VNFCs based on VDUs that belong to deployable modules listed
          in this attribute are requested to be instantiated or preserved if they were already instantiated.
          
          If this attribute is not present the deployable modules that were selected before the operation,
          and that still are defined in the VNFD in the destination package, or the corresponding ones
          according to the component mappings, remain valid. See note 3.
        type: array
        items:
          $ref: "../../General_Definitions/SOL003_def.yaml#/definitions/IdentifierInVnfd"
Muhammad Umair Khan's avatar
Muhammad Umair Khan committed
      resourceCapacityDefinition:
        description: >
          Indicates values for resource capacity related attributes pertaining to a descriptor. 
          Values can only be provided for resource capacity related attributes that have been 
          defined in the VNFD as being configurable. Furthermore, provided values shall be within
          the allowed values indicated in the VNFD.
        type: array
        items:
          $ref: "../../General_Definitions/SOL003_def.yaml#/definitions/ResourceCapacityDefinition"      
      certificateConfigurationData:
        description: >
          Configuration for certificate management such as certificate profile and security policy in this VNF. 
          Can be present when setting a new certificate to the VNF instance in delegation mode. Otherwise
          shall not be present.This attribute shall be supported when delegation
          mode of certificate management is applicable.
        $ref: "#/definitions/CertificateConfigurationData"
Muhammad Umair Khan's avatar
Muhammad Umair Khan committed
      upgradeType:
        description: >
          Indicates upgrade type when change the current VNF Package on which a VNF instance is based.
          Permitted values:
            * ROLLING_UPGRADE
            * BLUE_GREEN
          See note 4.
        type: string
        enum:
          - ROLLING_UPGRADE
          - BLUE_GREEN
  VnfInfoModificationRequest:
    description: >
      This type represents attribute modifications for an "Individual VNF instance" resource, i.e.
      modifications to a resource representation based on the "VnfInstance" data type.
    type: object
    properties:
      vnfInstanceName:
        description: >
          New value of the "vnfInstanceName" attribute in "VnfInstance", or "null" to remove the attribute.
        $ref: "../../General_Definitions/SOL003_def.yaml#/definitions/String"
      vnfInstanceDescription:
        description: >
          New value of the "vnfInstanceDescription" attribute in "VnfInstance", or "null" to remove the attribute.
        $ref: "../../General_Definitions/SOL003_def.yaml#/definitions/String"
          New value of the "vnfdId" attribute in "VnfInstance". The value "null" is not permitted.
        $ref: "../../General_Definitions/SOL003_def.yaml#/definitions/Identifier"
      vnfConfigurableProperties:
        description: >
          Modifications of the "vnfConfigurableProperties" attribute in
          "VnfInstance". If present, these modifications shall be applied
          according to the rules of JSON Merge Patch (see IETF RFC 7396).
        $ref: "../../General_Definitions/SOL003_def.yaml#/definitions/KeyValuePairs"
      metadata:
        description: >
          Modifications of the "metadata" attribute in "VnfInstance". If
          present, these modifications shall be applied according to the rules
          of JSON Merge Patch (see IETF RFC 7396).
        $ref: "../../General_Definitions/SOL003_def.yaml#/definitions/KeyValuePairs"
      extensions:
        description: >
          Modifications of the "extensions" attribute in "VnfInstance". If
          present, these modifications shall be applied according to the rules
          of JSON Merge Patch (see IETF RFC 7396).
        $ref: "../../General_Definitions/SOL003_def.yaml#/definitions/KeyValuePairs"
        description: >
          Modifications of the "vimConnectionInfo" attribute. If present, these modifications shall be applied
          according to the rules of JSON Merge Patch (see IETF RFC 7396 [5]).
        type: object
        additionalProperties:
          $ref: "../../General_Definitions/SOL003_def.yaml#/definitions/VimConnectionInfo"
    description: >
      This type represents attribute modifications that were performed on an "Individual 
      VNF instance" resource. The attributes that can be included consist of those requested 
      to be modified explicitly in the "VnfInfoModificationRequest" data structure, and 
      additional attributes of the "VnfInstance" data structure that were modified implicitly 
      e.g. when modifying the referenced VNF package.

      NOTE:	If present, this attribute (which depends on the value of the "vnfdId" attribute) 
            was modified implicitly following a request to modify the "vnfdId" attribute, by 
            copying the value of this attribute from the VNFD in the VNF Package identified by 
            the "vnfdId" attribute.
    type: object
    properties:
        description: >
          If present, this attribute signals modifications of the
          "vnfInstanceName" attribute in "VnfInstance".
        $ref: "../../General_Definitions/SOL003_def.yaml#/definitions/String"
      vnfInstanceDescription:
        description: >
          If present, this attribute signals modifications of the
          "vnfInstanceDescription" attribute in "VnfInstance".
        $ref: "../../General_Definitions/SOL003_def.yaml#/definitions/String"
      vnfConfigurableProperties:
        description: >
          If present, this attribute signals modifications of the
          "vnfConfigurableProperties" attribute in "VnfInstance".

          In addition, the provisions in clause 5.7 shall apply.
        $ref: "../../General_Definitions/SOL003_def.yaml#/definitions/KeyValuePairs"
      metadata:
        description: >
          If present, this attribute signals modifications of the "metadata"
          attribute in "VnfInstance".
        $ref: "../../General_Definitions/SOL003_def.yaml#/definitions/KeyValuePairs"
      extensions:
        description: >
          If present, this attribute signals modifications of the "extensions"
          attribute in "VnfInstance".

          In addition, the provisions in clause 5.7 shall apply.
        $ref: "../../General_Definitions/SOL003_def.yaml#/definitions/KeyValuePairs"
        description: >
          If present, this attribute signals modifications the "vimConnectionInfo" 
          attribute array in "VnfInstance".
        type: object
        additionalProperties:
          $ref: "../../General_Definitions/SOL003_def.yaml#/definitions/VimConnectionInfo"
        description: >
          If present, this attribute signals modifications of the "vnfdId"
          attribute in "VnfInstance".
        $ref: "../../General_Definitions/SOL003_def.yaml#/definitions/Identifier"
          If present, this attribute signals modifications of the "vnfProvider" attribute 
          in "VnfInstance". See note.
        $ref: "../../General_Definitions/SOL003_def.yaml#/definitions/String"
          If present, this attribute signals modifications of the "vnfProductName" attribute 
          in "VnfInstance". See note.
        $ref: "../../General_Definitions/SOL003_def.yaml#/definitions/String"
      vnfSoftwareVersion:
        description: >
          If present, this attribute signals modifications of the "vnfSoftwareVersion" attribute 
          in "VnfInstance". See note.
        $ref: "../../General_Definitions/SOL003_def.yaml#/definitions/Version"
          If present, this attribute signals modifications of the "vnfdVersion" attribute 
          in "VnfInstance". See note.
        $ref: "../../General_Definitions/SOL003_def.yaml#/definitions/Version"
      * FORCEFUL: The VNFM will stop the VNF instance immediately after accepting 
        the request.
      * GRACEFUL: The VNFM instance will first arrange to take the VNF out of 
        service after accepting the request. Once that operation is successful 
        or once the timer value specified in the "gracefulStopTimeout" attribute
        expires, the VNFM will stop the VNF instance.
      - GRACEFUL

  CreateVnfSnapshotRequest:
    description: >
      This type represents request parameters for the "Create VNF Snapshot" 
      LCM operation which takes a snapshot of a VNF instance and populates 
      a previously-created "Individual VNF snapshot" resource with the content 
      of the snapshot.
    type: object
    required:
      - vnfSnapshotResId
    properties:
      vnfSnapshotInfoId:
        description: >
          Identifier of the "Individual VNF snapshot" resource to which the 
          VNF snapshot is to be associated.
        $ref: "../../General_Definitions/SOL003_def.yaml#/definitions/Identifier"
      additionalParams:
        description: >
          Additional input parameters for the snapshot creation process, specific 
          for the VNF being “snapshotted”, as declared in the VNFD as part of
          “CreateSnapshotVnfOpConfig” defined in ETSI GS NFV-IFA 011 [10].
        $ref: "../../General_Definitions/SOL003_def.yaml#/definitions/KeyValuePairs"
      userDefinedData:
        description: >
          User defined data for the VNF snapshot.
        $ref: "../../General_Definitions/SOL003_def.yaml#/definitions/KeyValuePairs"

  CreateVnfSnapshotInfoRequest:
    description: |
      This type represents request parameters for the creation of an "Individual VNF snapshot" 
      resource which can be populated with content obtained by invoking the "Create VNF snapshot" 
      LCM operation or extracted from a VNF snapshot package.

      NOTE:	The present attribute shall be provided if the "Individual VNF snapshot" resource is 
            requested to be created as part of a VNF snapshot package extraction.
    type: object
    properties:
      vnfSnapshotPkgId:
        description: |
          Identifier of the VNF snapshot package information held by the NFVO. See note.
        $ref: "../../General_Definitions/SOL003_def.yaml#/definitions/Identifier"
      vnfSnapshot:
        description: |
          Information about the VNF snapshot, content and/or reference to its content.
Francesca Moscatelli's avatar
Francesca Moscatelli committed
        $ref: "#/definitions/VnfSnapshot"
  RevertToVnfSnapshotRequest:
    description: >
      This type represents request parameters for the "Revert to VNF Snapshot" operation.
    type: object
    required:
      - vnfSnapshotInfoId
    properties:
      vnfSnapshotInfoId:
        description: >
          Identifier of the "Individual VNF snapshot" resource with the information of the VNF snapshot 
          to be reverted to.
        $ref: "../../General_Definitions/SOL003_def.yaml#/definitions/Identifier"
      additionalParams:
        description: >
          Additional input parameters for the revert to VNF snapshot process, specific for the VNF being 
          “reverted”, as declared in the VNFD as part of “RevertToSnapshotVnfOpConfig” defined in ETSI GS NFV-IFA 011 [10].
        $ref: "../../General_Definitions/SOL003_def.yaml#/definitions/KeyValuePairs"
  SelectVnfDeployableModulesRequest:
    description: >
      This type represents request parameters for the "Select VNF deployable modules" operation.
Muhammad Umair Khan's avatar
Muhammad Umair Khan committed
      * NOTE 1: Thus, the select VNF deployable modules operation cannot be used as a scale VNF operation
        to scale VNFCs that were already instantiated.
      * NOTE 2: Thus, the select VNF deployable modules operation cannot be used as a scale 
        VNF operation to vertically scale VNFCs that were already instantiated.
    type: object
    properties:
      selectedDeployableModule:
        description: >
          Identifier of a selected deployable module, as defined in the VNFD.
          VNFCs based on VDUs that belong to deployable modules listed in
          this attribute will be instantiated if not already instantiated.
          VNFCs based on VDUs that belong to deployable modules not listed in
          this attribute and that were already instantiated will be terminated.
        type: array
        items:
          $ref: "../../General_Definitions/SOL003_def.yaml#/definitions/IdentifierInVnfd"
      targetScaleLevelInfo:
        description: >
          Defines the target scale levels of scaling aspects of the VDUs that
          belong to selected deployable modules. If this attribute is not
          present or if there are VDUs that belong to selected deployable
          modules that take no part in any of the scaling aspects indicated in
          this attribute, the VNFCs based on those VDUs shall be instantiated
          according to the currently valid VNF scale level or instantiation
          level. This attribute should only contain scale level information of
          scaling aspects associated with VDUs that will be used to
          instantiate VNFCs as a result of this operation. If it contains
          other scale level information, it shall be ignored. See note.
        type: array
        items:
          $ref: "../../General_Definitions/SOL003_def.yaml#/definitions/ScaleInfo"
Muhammad Umair Khan's avatar
Muhammad Umair Khan committed
      resourceCapacityDefinition:
        description: >
          Indicates values for resource capacity related attributes pertaining to a descriptor. 
          Values can only be provided for resource capacity related attributes that have been defined
          in the VNFD as being configurable. Furthermore, provided values shall be within the 
          allowed values indicated in the VNFD.

          This attribute should only contain information about resource capacity related attributes 
          of VDUs that will be used to instantiate VNFCs as a result of this operation.
          If it contains information about attributes of other VDUs it shall be ignored. See note 2.
        type: array
        items:
          $ref: "../../General_Definitions/SOL003_def.yaml#/definitions/ResourceCapacityDefinition"    
      additionalParams:
        description: >
          Additional parameters passed by the NFVO as input to the selection
          of deployable modules process, specific to the VNF being affected by
          this operation, as declared in the VNFD as part of
          "selectVnfDeployableModulesOpConfig" defined in ETSI GS NFV-IFA 011 [10].
        $ref: "../../General_Definitions/SOL003_def.yaml#/definitions/KeyValuePairs"

  VnfSnapshotInfoModificationRequest:
    description: |
      This type represents attribute modifications for an "Individual VNF snapshot" resource, i.e. modifications 
      to a resource representation based on the "VnfSnapshotInfo" data type. The attributes of "VnfSnapshotInfo" 
      that can be modified according to the provisions in clause 5.5.2.22 are included in the 
      "VnfSnapshotInfoModificationRequest" data type.
    type: object
    properties:
      vnfSnapshotPkgId:
        description: |
          New value of the "vnfSnapshotPkgId" attribute in "VnfSnapshotInfo". 
          The value "null" is not permitted.
        $ref: "../../General_Definitions/SOL003_def.yaml#/definitions/Identifier"
      vnfSnapshot:
        description: |
          New value of the "vnfSnapshot" attribute in "VnfSnapshotInfo". 
          The value "null" is not permitted.
Francesca Moscatelli's avatar
Francesca Moscatelli committed
        $ref: "#/definitions/VnfSnapshot"

  VnfSnapshotInfoModifications:
    description: |
      This type represents attribute modifications that were performed on an "Individual VNF snapshot" 
      resource. The attributes that can be included consist of those requested to be modified explicitly 
      in the "VnfSnapshotInfoModificationRequest" data structure, and additional attributes of the 
      "VnfSnapshotInfo" data structure that were modified implicitly.
    type: object
    properties:
      vnfSnapshotPkgId:
        description: |
          If present, this attribute signals modifications of the "vnfSnapshotPkgId" attribute in 
          "VnfSnapshotInfo" as defined in clause 5.5.2.22.
        $ref: "../../General_Definitions/SOL003_def.yaml#/definitions/Identifier"
      vnfSnapshot:
        description: |
          If present, this attribute signals modifications of the "vnfSnapshot" attribute in 
          "VnfSnapshotInfo" as defined in clause 5.5.2.22.
Francesca Moscatelli's avatar
Francesca Moscatelli committed
        $ref: "#/definitions/VnfSnapshot"

  VnfInstance:
    description: >
      This type represents a VNF instance.

      NOTE:	Clause B.3.2 provides examples illustrating the relationship among the different run-time 
            information elements (CP, VL and link ports) used to represent the connectivity of a VNF.

      NOTE 1:	Modifying the value of this attribute shall not be performed when conflicts exist between 
              the previous and the newly referred VNF package, i.e. when the new VNFD is changed with 
              respect to the previous VNFD in other aspects than merely referencing to other VNF software 
              images. In order to avoid misalignment of the VnfInstance with the current VNF's on-boarded 
              VNF Package, the values of attributes in the VnfInstance that have corresponding attributes 
              in the VNFD shall be kept in sync with the values in the VNFD.
Muhammad Umair Khan's avatar
Muhammad Umair Khan committed
      NOTE 2:	ETSI GS NFV-SOL 001 [14] specifies the structure and format of the VNFD based on TOSCA specifications.
      NOTE 3:	VNF configurable properties are sometimes also referred to as configuration parameters applicable 
              to a VNF. Some of these are set prior to instantiation and cannot be modified if the VNF is instantiated, 
              some are set prior to instantiation (are part of initial configuration) and can be modified later, 
              and others can be set only after instantiation. The applicability of certain configuration may 
              depend on the VNF and the required operation of the VNF at a certain point in time.
      NOTE 4:	Upon creation of the VnfInstance structure, the VNFM shall create and initialize all child attributes 
              of "vnfConfigurableProperties", "metadata" and "extensions" that were declared in the VNFD with a defined 
              initial value. The defined initial values can be declared in the VNFD, and/or, in case of "metadata", 
              obtained from the "CreateVnfRequest" structure. Child attributes of "vnfConfigurableProperties", 
              "metadata" and "extensions" that have no defined initial value shall not be created, in order to be 
              consistent with the semantics of the JSON Merge Patch method (see IETF RFC 7396) that interprets null 
              values as deletion request.
      NOTE 5:	It is possible to have several ExtManagedVirtualLinkInfo for the same VNF internal VL in case of a 
              multi-site VNF spanning several VIMs. The set of ExtManagedVirtualLinkInfo corresponding to the same 
              VNF internal VL shall indicate so by referencing to the same VnfVirtualLinkDesc and externally-managed 
              multi-site VL instance (refer to clause 5.5.3.3).
      NOTE 6:	Even though externally-managed internal VLs are also used for VNF-internal connectivity, they shall 
              not be listed in the "vnfVirtualLinkResourceInfo" attribute as this would be redundant.
      NOTE 7: Subports need not be used for containerized VNFCs. The application container can send and receive IP 
              packets with any VLAN tag as long as the network interface to connect to the secondary container cluster 
              network has been configured appropriately. Thus, no individual vnfcCpInfo, except the one representing 
              the trunk, need be modelled to allow traffic tagged with a particular VLAN through the connection point.
      NOTE 8: For a scaling aspect whose related VNFCs have not been instantiated due to the selection of deployable 
              modules, the “scaleStatus” indicates the scale level that would be applicable to the aspect if a VNF LCM 
              operation changes the selected deployable modules and the related VNFCs are instantiated, unless the 
              VNF LCM operation explicitly indicates the scale level for the aspect.
Francesca Moscatelli's avatar
Francesca Moscatelli committed
    type: object
    required:
      - id
      - vnfdId
      - vnfProvider
      - vnfProductName
      - vnfSoftwareVersion
      - vnfdVersion
      - instantiationState