OASIS Topology and Orchestration Specification for Cloud Applications (TOSCA) TC

Notation for reference to a notification in an event

  • 1.  Notation for reference to a notification in an event

    Posted 01-04-2021 10:45
      |   view attached




    Hello Calin, Chris, all,
     
    Happy New Year to all of you!
     
    If I want to use a notification as an event in a trigger definition it is not clear to me how I should refer to the notification.
     
    Should it be:
     
    a) <interface_type_name>.<notification_name>
     
    or
     
    b) <interface_name>.<notification_name>
     
    For example:
     
    tosca_definitions_version: tosca_simple_yaml_1_3

    interface_types:
     
    MyCompany.nfv.interfaces.VnfIndicator

        derived_from: tosca.interfaces.nfv.VnfIndicator
         notifications:
          utilization:
            description: this notification is used to received asynchronous information of value change of the utilization_vnf_indicator
            outputs:
              utilization_vnf_indicator:
                type: float

    node_types:
      MyCompany.SunshineDB.1_0.1_0:
        derived_from: tosca.nodes.nfv.VNF

        interfaces:
          VnfIndicator :
            type: MyCompany.nfv.interfaces.VnfIndicator
             notifications:
              utilization:
                outputs:
                  utilization_vnf_indicator: [ SELF, utilization_vnf_indicator ]

     
    policies:
        - auto_scale:
            type: tosca.policies.nfv.VnfIndicator
            properties:
              source: vnf
            triggers:
              scale_out:
                event:
    MyCompany.nfv.interfaces.VnfIndicator .utilization
     
    #           or
    #
               event:
    VnfIndicator .utilization
     
                condition:
                  - utilization_vnf_indicator: [ { greater_or_equal: 60.0 } ]
                  - call_proc_scale_level: [ { less_than: 3 } ]
                action:
                  - call_operation:
                      operation: Vnflcm.scale
                      inputs:
                        - type:

                            value: scale_out
                        - aspect:

                            value: call_proc
                        - number_of_steps:

                            value: 1 # optional
     
    I dug up the document from Calin that introduced it (attached) as I had the memory that the full interface type should be used.  However, in the document the node template does not indicate an interface name (or it uses
    the same name for the interface as for interface type) so from the document it is not possible to say what notation is used for the notification in the event definition.
     
    Best regards,
    Arturo
     



    Attachment: NotificationInterface2018_10_26.docx Description: NotificationInterface2018_10_26.docx

    Attachment(s)