aboutsummaryrefslogtreecommitdiffstats
path: root/components/model-catalog/blueprint-model/test-blueprint/capability_python/Definitions/activation-blueprint.json
blob: 9ce89a97b061c015f724f8b91a6787dbea51a769 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
{
  "tosca_definitions_version" : "controller_blueprint_1_0_0",
  "metadata" : {
    "template_author" : "Alexis de Talhouët",
    "author-email" : "adetalhouet89@gmail.com",
    "user-groups" : "ADMIN, OPERATION",
    "template_name" : "capability_python",
    "template_version" : "1.0.0",
    "template_tags" : "test"
  },
  "imports" : [ {
    "file" : "Definitions/data_types.json"
  }, {
    "file" : "Definitions/relationship_types.json"
  }, {
    "file" : "Definitions/artifact_types.json"
  }, {
    "file" : "Definitions/node_types.json"
  }, {
    "file" : "Definitions/policy_types.json"
  } ],
  "dsl_definitions": {
    "dynamic-db-source": {
      "type": "maria-db",
      "url": "jdbc:mysql://localhost:3306/sdnctl",
      "username": "sdnctl",
      "password": {
        "get_attribute": [
          "BPP",
          "dynamic-db-source.password"
        ]
      }
    }
  },
  "topology_template" : {
    "inputs" : {
      "request-id" : {
        "required" : true,
        "type" : "string"
      },
      "action-name" : {
        "required" : true,
        "type" : "string"
      }
    },
    "workflows" : {
      "assign-activate" : {
        "steps" : {
          "activate-process" : {
            "description" : "Resource Assign and Netconf Activation Workflow",
            "target" : "assign-activate-process",
            "activities" : [ {
              "call_operation" : ""
            } ]
          }
        },
        "inputs" : {
          "assign-activate-properties" : {
            "description" : "Dynamic PropertyDefinition for workflow(assign-activate).",
            "required" : true,
            "type" : "dt-assign-activate-properties"
          }
        }
      }
    },
    "node_templates" : {
      "assign-activate-process" : {
        "type" : "dg-generic",
        "properties" : {
          "content" : {
            "get_artifact" : [ "SELF", "dg-assign-activate-process" ]
          },
          "dependency-node-templates" : [ "resource-assignment", "activate-jython" ]
        },
        "artifacts" : {
          "dg-assign-activate-process" : {
            "type" : "artifact-directed-graph",
            "file" : "Plans/CONFIG_AssignActivateNetconf_1.0.0.xml"
          }
        }
      },
      "resource-assignment" : {
        "type" : "component-resource-resolution",
        "interfaces" : {
          "ResourceResolutionComponent" : {
            "operations" : {
              "process" : {
                "inputs" : {
                  "artifact-prefix-names" : [ "baseconfig" ]
                },
                "outputs" : {
                  "resource-assignment-params" : {
                    "get_attribute" : [ "SELF", "assignment-params" ]
                  },
                  "status" : "success"
                }
              }
            }
          }
        },
        "artifacts" : {
          "baseconfig-template" : {
            "type" : "artifact-template-velocity",
            "file" : "Templates/baseconfig-template.vtl"
          },
          "baseconfig-mapping" : {
            "type" : "artifact-mapping-resource",
            "file" : "Definitions/baseconfig-mapping.json"
          }
        }
      },
      "activate-jython" : {
        "type" : "component-jython-executor",
        "interfaces" : {
          "ComponentJythonExecutor" : {
            "operations" : {
              "process" : {
                "implementation" : {
                  "primary" : "component-script"
                },
                "inputs" : {
                  "instance-dependencies" : [ ]
                },
                "outputs" : {
                  "response-data" : "",
                  "status" : ""
                }
              }
            }
          }
        },
        "artifacts" : {
          "component-script" : {
            "type" : "artifact-script-jython",
            "file" : "Scripts/python/SamplePythonComponentNode.py"
          }
        }
      }
    }
  }
}