XMLWordPrintable

    • Icon: Story Story
    • Resolution: Done
    • Icon: Medium Medium
    • Dublin Release
    • None
    • None

      For addressing CLAMP requirement to include policy_model_id part of the blueprint generated by SDC/Self-server flow,  new node type - clamp.nodes.policy  (extended from dcae.nodes.policy) and relationtype - clamp_node.relationships.gets_input_from (derived from cloudify.relationships.depends_on) should be defined (any blueprint to be deployed via CLAMP must reference this new type file)

        

      policy_model_id  is primarily used by CLAMP to know the mapping between MS deployed and corresponding model id and there is no usage of this field in DCAE currently. As the new nodetype inherits dcae.nodes.policy, this will ensure backward compatibility to policy plugins (as it will search through the inherited chain of node types and will find the dcae.nodes.policy there to recognize the node as policy related). The policy_id specified will be used by PolicyHandler as done currently and the new field policy_model_id will be ignored.

       

      Primary effort here is in creating the required type file and packaging as wrapper plugin.

       

      sample extract blueprint expected from CLAMP:

      tosca_definitions_version: cloudify_dsl_1_3

      inputs:

        policy_id_1:

          type: string

          default: "none"

        policy_id_2:

          type: string

          default: "none"

       

      node_templates:

        tca_k8s_1:

          type: dcae.nodes.ContainerizedServiceComponent   

          relationships:

            - target: tca_policy_1

              type: cloudify.relationships.depends_on

          properties:

              service_component_type: 'dcaegen2-analytics-tca'

              application_config: {}

              docker_config: {}

              …

       

        tca_k8s_2:

          type: dcae.nodes.ContainerizedServiceComponent   

          relationships:

            - target: tca_policy_2

              type: cloudify.relationships.depends_on

            - target: tca_k8s_1

              type: clamp_node.relationships.gets_input_from

          properties:

              service_component_type: 'dcaegen2-analytics-tca'

              application_config: {}

              docker_config: {}

              …

       

      tca_policy_1:

          type: clamp.nodes.policy

          properties:

                **policy_model_id: my_policy-model_id_1

            policy_id:             

                 get_input: policy_id_1

       

      tca_policy_2:

          type: clamp.nodes.policy

          properties:

                **policy_model_id: my_policy-model_id_2

            policy_id:             

                 get_input: policy_id_2

       

       

       

            smileyvignesh smileyvignesh
            vv770d vv770d
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: