},\r
"updated-by": "brindasanth@onap.com",\r
"sources": {\r
- "primary-config-data": {\r
+ "config-data": {\r
"type": "source-rest",\r
"properties": {\r
"type": "JSON",\r
}\r
}\r
}\r
-}
\ No newline at end of file
+}\r
"properties" : { },
"derived_from" : "tosca.nodes.ResourceSource"
},
- "source-processor-db" : {
+ "source-db" : {
"description" : "This is Database Resource Source Node Type",
"version" : "1.0.0",
"properties" : {
"derived_from" : "tosca.nodes.Root"
}
}
-}
\ No newline at end of file
+}
"input" : {
"type" : "source-input"
},
- "primary-config-data" : {
+ "config-data" : {
"type" : "source-rest",
"properties" : {
"type" : "JSON",
"input" : {
"type" : "source-input"
},
- "primary-config-data" : {
+ "config-data" : {
"type" : "source-rest",
"properties" : {
"type" : "JSON",
"properties" : { }
},
"processor-db" : {
- "type" : "source-processor-db",
+ "type" : "source-db",
"properties" : {
"type" : "SQL",
"query" : "select sdnctl.VF_MODEL.nf_role as vf_model_role from sdnctl.VF_MODEL where sdnctl.VF_MODEL.customization_uuid=:vnfmodelcustomizationuuid",
"updated-by" : "Singal, Kapil <ks220y@att.com>",
"sources" : {
"processor-db" : {
- "type" : "source-processor-db",
+ "type" : "source-db",
"properties" : {
"type" : "SQL",
"query" : "select nfc_naming_code as nfc_naming_code from sdnctl.VFC_MODEL where customization_uuid=:vfccustomizationuuid",
"updated-by" : "Singal, Kapil <ks220y@att.com>",
"sources" : {
"processor-db" : {
- "type" : "source-processor-db",
+ "type" : "source-db",
"properties" : {
"type" : "SQL",
"query" : "select sdnctl.IPAM_IP_POOL.prefix as prefix from sdnctl.IPAM_IP_POOL where description = \"private\"",
"input" : {
"type" : "source-input"
},
- "primary-config-data" : {
+ "config-data" : {
"type" : "source-rest",
"properties" : {
"type" : "JSON",
"input" : {
"type" : "source-input"
},
- "primary-config-data" : {
+ "config-data" : {
"type" : "source-rest",
"properties" : {
"type" : "JSON",
"updated-by" : "Singal, Kapil <ks220y@att.com>",
"sources" : {
"processor-db" : {
- "type" : "source-processor-db",
+ "type" : "source-db",
"properties" : {
"type" : "SQL",
"query" : "select sdnctl.IPAM_IP_POOL.prefix_id as prefix_id from sdnctl.IPAM_IP_POOL where description = \"private\"",
"updated-by" : "Singal, Kapil <ks220y@att.com>",
"sources" : {
"processor-db" : {
- "type" : "source-processor-db",
+ "type" : "source-db",
"properties" : {
"type" : "SQL",
"query" : "select sdnctl.IPAM_IP_POOL.prefix_id as prefix_id from sdnctl.IPAM_IP_POOL where description = \"protected\"",
"updated-by" : "Singal, Kapil <ks220y@att.com>",
"sources" : {
"processor-db" : {
- "type" : "source-processor-db",
+ "type" : "source-db",
"properties" : {
"type" : "SQL",
"query" : "select sdnctl.IPAM_IP_POOL.prefix as prefix from sdnctl.IPAM_IP_POOL where description = \"protected\"",
"input" : {
"type" : "source-input"
},
- "primary-config-data" : {
+ "config-data" : {
"type" : "source-rest",
"properties" : {
"type" : "JSON",
"properties" : { }
},
"any-db" : {
- "type" : "source-processor-db",
+ "type" : "source-db",
"properties" : {
"query" : "SELECT artifact_name FROM BLUEPRINT_RUNTIME where artifact_version=\"1.0.0\"",
"input-key-mapping" : { },
}
},
"processor-db" : {
- "type" : "source-processor-db",
+ "type" : "source-db",
"properties" : {
"query" : "SELECT artifact_name FROM BLUEPRINT_RUNTIME where artifact_version=\"1.0.0\"",
"input-key-mapping" : { },
"updated-by" : "Singal, Kapil <ks220y@att.com>",
"sources" : {
"processor-db" : {
- "type" : "source-processor-db",
+ "type" : "source-db",
"properties" : {
"type" : "SQL",
"query" : "select sdnctl.IPAM_IP_POOL.prefix_id as prefix_id from sdnctl.IPAM_IP_POOL where description = \"unprotected\"",
"updated-by" : "Singal, Kapil <ks220y@att.com>",
"sources" : {
"processor-db" : {
- "type" : "source-processor-db",
+ "type" : "source-db",
"properties" : {
"type" : "SQL",
"query" : "select sdnctl.IPAM_IP_POOL.prefix as prefix from sdnctl.IPAM_IP_POOL where description = \"unprotected\"",
"updated-by" : "Singal, Kapil <ks220y@att.com>",
"sources" : {
"processor-db" : {
- "type" : "source-processor-db",
+ "type" : "source-db",
"properties" : {
"type" : "SQL",
"query" : "select sdnctl.VF_MODULE_MODEL.vf_module_label as vf_module_label from sdnctl.VF_MODULE_MODEL where sdnctl.VF_MODULE_MODEL.customization_uuid=:customizationid",
"updated-by" : "adetalhouet",
"sources" : {
"processor-db" : {
- "type" : "source-processor-db",
+ "type" : "source-db",
"properties" : {
"type" : "SQL",
"query" : "select sdnctl.demo.value as value from sdnctl.demo where sdnctl.demo.id=:vfmoduleid",
"properties" : { }
},
"processor-db" : {
- "type" : "source-processor-db",
+ "type" : "source-db",
"properties" : {
"type" : "SQL",
"query" : "select sdnctl.VF_MODEL.naming_policy as vf_naming_policy from sdnctl.VF_MODEL where sdnctl.VF_MODEL.customization_uuid=:vnf_model_customization_uuid",
"updated-by" : "Singal, Kapil <ks220y@att.com>",
"sources" : {
"processor-db" : {
- "type" : "source-processor-db",
+ "type" : "source-db",
"properties" : {
"type" : "SQL",
"query" : "select sdnctl.VF_MODEL.nf_code as vf_nf_code from sdnctl.VF_MODEL where sdnctl.VF_MODEL.customization_uuid=:customizationid",
"updated-by" : "Singal, Kapil <ks220y@att.com>",
"sources" : {
"processor-db" : {
- "type" : "source-processor-db",
+ "type" : "source-db",
"properties" : {
"type" : "SQL",
"query" : "select sdnctl.VF_MODULE_TO_VFC_MAPPING.vfc_customization_uuid as vnf_customid from sdnctl.VF_MODULE_TO_VFC_MAPPING where vm_count = 1 and sdnctl.VF_MODULE_TO_VFC_MAPPING.vf_module_customization_uuid=:vfmodulecustomizationuuid",
"type" : "source-input",
"properties" : { }
},
- "primary-config-data" : {
+ "config-data" : {
"type" : "source-rest",
"properties" : {
"type" : "JSON",
"type" : "source-input",
"properties" : { }
},
- "primary-config-data" : {
+ "config-data" : {
"type" : "source-rest",
"properties" : {
"type" : "JSON",
"updated-by" : "Singal, Kapil <ks220y@att.com>",
"sources" : {
"processor-db" : {
- "type" : "source-processor-db",
+ "type" : "source-db",
"properties" : {
"type" : "SQL",
"query" : "select VFC_MODEL.vm_type as vm_type from VFC_MODEL where customization_uuid=:vfccustomizationuuid",
},
"updated-by" : "Singal, Kapil <ks220y@att.com>",
"sources" : {
- "primary-config-data" : {
+ "config-data" : {
"type" : "source-rest",
"properties" : {
"type" : "JSON",
"type" : "source-input",
"properties" : { }
},
- "primary-config-data" : {
+ "config-data" : {
"type" : "source-rest",
"properties" : {
"type" : "JSON",
"updated-by" : "Singal, Kapil <ks220y@att.com>",
"sources" : {
"processor-db" : {
- "type" : "source-processor-db",
+ "type" : "source-db",
"properties" : {
"type" : "SQL",
"query" : "select VFC_MODEL.invariant_uuid as vfc_invariant_uuid from VFC_MODEL where customization_uuid=:vfccustomizationuuid",
"updated-by" : "Singal, Kapil <ks220y@att.com>",
"sources" : {
"processor-db" : {
- "type" : "source-processor-db",
+ "type" : "source-db",
"properties" : {
"type" : "SQL",
"query" : "select VFC_MODEL.version as vnfc_model_version from VFC_MODEL where customization_uuid=:vfccustomizationuuid",
"type" : "source-input",
"properties" : { }
},
- "primary-config-data" : {
+ "config-data" : {
"type" : "source-rest",
"properties" : {
"type" : "JSON",
"type" : "source-input",
"properties" : { }
},
- "primary-config-data" : {
+ "config-data" : {
"type" : "source-rest",
"properties" : {
"type" : "JSON",
}
}
}
-}
\ No newline at end of file
+}
},
"input-param": false,
"dictionary-name": "vnf-name",
- "dictionary-source": "primary-config-data",
+ "dictionary-source": "config-data",
"dependencies": [
"service-instance-id",
"vnf-id"
],
"version": 0
}
-]
\ No newline at end of file
+]
},
"input-param": false,
"dictionary-name": "vnf-name",
- "dictionary-source": "primary-config-data",
+ "dictionary-source": "config-data",
"dependencies": [
"service-instance-id",
"vnf-id"
},
"input-param": false,
"dictionary-name": "image_name",
- "dictionary-source": "primary-config-data",
+ "dictionary-source": "config-data",
"dependencies": [
"service-instance-id",
"vnf-id"
},
"input-param": false,
"dictionary-name": "key_name",
- "dictionary-source": "primary-config-data",
+ "dictionary-source": "config-data",
"dependencies": [
"service-instance-id",
"vnf-id"
},
"input-param": false,
"dictionary-name": "pub_key",
- "dictionary-source": "primary-config-data",
+ "dictionary-source": "config-data",
"dependencies": [
"service-instance-id",
"vnf-id"
},
"input-param": false,
"dictionary-name": "onap_private_net_id",
- "dictionary-source": "primary-config-data",
+ "dictionary-source": "config-data",
"dependencies": [
"service-instance-id",
"vnf-id"
},
"input-param": false,
"dictionary-name": "onap_private_subnet_id",
- "dictionary-source": "primary-config-data",
+ "dictionary-source": "config-data",
"dependencies": [
"service-instance-id",
"vnf-id"
],
"version": 0
}
-]
\ No newline at end of file
+]
},
"input-param": false,
"dictionary-name": "vnf-name",
- "dictionary-source": "primary-config-data",
+ "dictionary-source": "config-data",
"dependencies": [
"service-instance-id",
"vnf-id"
},
"input-param": false,
"dictionary-name": "image_name",
- "dictionary-source": "primary-config-data",
+ "dictionary-source": "config-data",
"dependencies": [
"service-instance-id",
"vnf-id"
},
"input-param": false,
"dictionary-name": "key_name",
- "dictionary-source": "primary-config-data",
+ "dictionary-source": "config-data",
"dependencies": [
"service-instance-id",
"vnf-id"
},
"input-param": false,
"dictionary-name": "pub_key",
- "dictionary-source": "primary-config-data",
+ "dictionary-source": "config-data",
"dependencies": [
"service-instance-id",
"vnf-id"
},
"input-param": false,
"dictionary-name": "onap_private_net_id",
- "dictionary-source": "primary-config-data",
+ "dictionary-source": "config-data",
"dependencies": [
"service-instance-id",
"vnf-id"
},
"input-param": false,
"dictionary-name": "onap_private_subnet_id",
- "dictionary-source": "primary-config-data",
+ "dictionary-source": "config-data",
"dependencies": [
"service-instance-id",
"vnf-id"
},
"input-param": false,
"dictionary-name": "vfw_private_ip_0",
- "dictionary-source": "primary-config-data",
+ "dictionary-source": "config-data",
"dependencies": [
"service-instance-id",
"vnf-id"
},
"input-param": false,
"dictionary-name": "vsn_private_ip_0",
- "dictionary-source": "primary-config-data",
+ "dictionary-source": "config-data",
"dependencies": [
"service-instance-id",
"vnf-id"
},
"input-param": false,
"dictionary-name": "vpg_private_ip_0",
- "dictionary-source": "primary-config-data",
+ "dictionary-source": "config-data",
"dependencies": [
"service-instance-id",
"vnf-id"
],
"version": 0
}
-]
\ No newline at end of file
+]
},
"input-param": false,
"dictionary-name": "vnf-name",
- "dictionary-source": "primary-config-data",
+ "dictionary-source": "config-data",
"dependencies": [
"service-instance-id",
"vnf-id"
},
"input-param": false,
"dictionary-name": "image_name",
- "dictionary-source": "primary-config-data",
+ "dictionary-source": "config-data",
"dependencies": [
"service-instance-id",
"vnf-id"
},
"input-param": false,
"dictionary-name": "key_name",
- "dictionary-source": "primary-config-data",
+ "dictionary-source": "config-data",
"dependencies": [
"service-instance-id",
"vnf-id"
},
"input-param": false,
"dictionary-name": "pub_key",
- "dictionary-source": "primary-config-data",
+ "dictionary-source": "config-data",
"dependencies": [
"service-instance-id",
"vnf-id"
},
"input-param": false,
"dictionary-name": "onap_private_net_id",
- "dictionary-source": "primary-config-data",
+ "dictionary-source": "config-data",
"dependencies": [
"service-instance-id",
"vnf-id"
},
"input-param": false,
"dictionary-name": "onap_private_subnet_id",
- "dictionary-source": "primary-config-data",
+ "dictionary-source": "config-data",
"dependencies": [
"service-instance-id",
"vnf-id"
},
"input-param": false,
"dictionary-name": "vfw_private_ip_1",
- "dictionary-source": "primary-config-data",
+ "dictionary-source": "config-data",
"dependencies": [
"service-instance-id",
"vnf-id"
],
"version": 0
}
-]
\ No newline at end of file
+]
"properties" : { },
"derived_from" : "tosca.nodes.ResourceSource"
},
- "source-processor-db" : {
+ "source-db" : {
"description" : "This is Database Resource Source Node Type",
"version" : "1.0.0",
"properties" : {
"derived_from" : "tosca.nodes.Vnf"
}
}
-}
\ No newline at end of file
+}
"type" : "source-default",
"properties" : { }
},
- "primary-config-data" : {
+ "config-data" : {
"type" : "source-rest",
"properties" : {
"verb" : "GET",
},
"updated-by" : "Singal, Kapil <ks220y@att.com>",
"sources" : {
- "primary-config-data" : {
+ "config-data" : {
"type" : "source-rest",
"properties" : {
"type" : "JSON",
"key-dependencies" : [ "vf-module-id", "service-instance-id", "vnf-id" ]
}
},
- "primary-aai-data" : {
+ "aai-data" : {
"type" : "source-rest",
"properties" : {
"verb" : "PATCH",
"type" : "source-default",
"properties" : { }
},
- "primary-config-data" : {
+ "config-data" : {
"type" : "source-rest",
"properties" : {
"verb" : "GET",
"type" : "source-default",
"properties" : { }
},
- "primary-config-data" : {
+ "config-data" : {
"type" : "source-rest",
"properties" : {
"verb" : "GET",
"type" : "source-default",
"properties" : { }
},
- "primary-config-data" : {
+ "config-data" : {
"type" : "source-rest",
"properties" : {
"verb" : "GET",
"type" : "source-default",
"properties" : { }
},
- "primary-config-data" : {
+ "config-data" : {
"type" : "source-rest",
"properties" : {
"verb" : "GET",
"type" : "source-default",
"properties" : { }
},
- "primary-config-data" : {
+ "config-data" : {
"type" : "source-rest",
"properties" : {
"verb" : "GET",
"type" : "source-default",
"properties" : { }
},
- "primary-config-data" : {
+ "config-data" : {
"type" : "source-rest",
"properties" : {
"verb" : "GET",
"type" : "source-default",
"properties" : { }
},
- "primary-config-data" : {
+ "config-data" : {
"type" : "source-rest",
"properties" : {
"verb" : "GET",
"type" : "source-default",
"properties" : { }
},
- "primary-config-data" : {
+ "config-data" : {
"type" : "source-rest",
"properties" : {
"verb" : "GET",
"type" : "source-default",
"properties" : { }
},
- "primary-config-data" : {
+ "config-data" : {
"type" : "source-rest",
"properties" : {
"verb" : "GET",
"type" : "source-default",
"properties" : { }
},
- "primary-config-data" : {
+ "config-data" : {
"type" : "source-rest",
"properties" : {
"verb" : "GET",
"type" : "source-default",
"properties" : { }
},
- "primary-config-data" : {
+ "config-data" : {
"type" : "source-rest",
"properties" : {
"verb" : "GET",
"type" : "source-default",
"properties" : { }
},
- "primary-config-data" : {
+ "config-data" : {
"type" : "source-rest",
"properties" : {
"verb" : "GET",
"type" : "source-default",
"properties" : { }
},
- "primary-config-data" : {
+ "config-data" : {
"type" : "source-rest",
"properties" : {
"verb" : "GET",
}
},
"processor-db" : {
- "type" : "source-processor-db",
+ "type" : "source-db",
"properties" : {
"endpoint-selector" : "dynamic-db-source",
"type" : "SQL",
"type" : "source-default",
"properties" : { }
},
- "primary-config-data" : {
+ "config-data" : {
"type" : "source-rest",
"properties" : {
"verb" : "GET",
"type" : "source-default",
"properties" : { }
},
- "primary-config-data" : {
+ "config-data" : {
"type" : "source-rest",
"properties" : {
"verb" : "GET",
"properties" : { }
},
"processor-db" : {
- "type" : "source-processor-db",
+ "type" : "source-db",
"properties" : {
"type" : "SQL",
"query" : "select nfc_naming_code as nfc_naming_code from sdnctl.VFC_MODEL where customization_uuid=:vfccustomizationuuid",
"properties" : { }
},
"processor-db" : {
- "type" : "source-processor-db",
+ "type" : "source-db",
"properties" : {
"endpoint-selector" : "dynamic-db-source",
"type" : "SQL",
}
}
},
- "primary-config-data" : {
+ "config-data" : {
"type" : "source-rest",
"properties" : {
"verb" : "GET",
"type" : "source-default",
"properties" : { }
},
- "primary-config-data" : {
+ "config-data" : {
"type" : "source-rest",
"properties" : {
"verb" : "GET",
"type" : "source-default",
"properties" : { }
},
- "primary-config-data" : {
+ "config-data" : {
"type" : "source-rest",
"properties" : {
"verb" : "GET",
"type" : "source-default",
"properties" : { }
},
- "primary-config-data" : {
+ "config-data" : {
"type" : "source-rest",
"properties" : {
"verb" : "GET",
"properties" : { }
},
"processor-db" : {
- "type" : "source-processor-db",
+ "type" : "source-db",
"properties" : {
"type" : "SQL",
"query" : "select sdnctl.IPAM_IP_POOL.prefix as prefix from sdnctl.IPAM_IP_POOL where description = \"private2\"",
"input-key-mapping" : { }
}
},
- "primary-config-data" : {
+ "config-data" : {
"type" : "source-rest",
"properties" : {
"verb" : "GET",
"type" : "source-default",
"properties" : { }
},
- "primary-config-data" : {
+ "config-data" : {
"type" : "source-rest",
"properties" : {
"verb" : "GET",
}
},
"processor-db" : {
- "type" : "source-processor-db",
+ "type" : "source-db",
"properties" : {
"endpoint-selector" : "dynamic-db-source",
"type" : "SQL",
"type" : "source-default",
"properties" : { }
},
- "primary-config-data" : {
+ "config-data" : {
"type" : "source-rest",
"properties" : {
"verb" : "GET",
}
},
"processor-db" : {
- "type" : "source-processor-db",
+ "type" : "source-db",
"properties" : {
"endpoint-selector" : "dynamic-db-source",
"type" : "SQL",
"type" : "source-default",
"properties" : { }
},
- "primary-config-data" : {
+ "config-data" : {
"type" : "source-rest",
"properties" : {
"verb" : "GET",
"type" : "source-default",
"properties" : { }
},
- "primary-config-data" : {
+ "config-data" : {
"type" : "source-rest",
"properties" : {
"verb" : "GET",
"type" : "source-default",
"properties" : { }
},
- "primary-config-data" : {
+ "config-data" : {
"type" : "source-rest",
"properties" : {
"verb" : "GET",
"properties" : { }
},
"any-db" : {
- "type" : "source-processor-db",
+ "type" : "source-db",
"properties" : {
"query" : "SELECT artifact_name FROM BLUEPRINT_RUNTIME where artifact_version=\"1.0.0\"",
"input-key-mapping" : { },
}
},
"processor-db" : {
- "type" : "source-processor-db",
+ "type" : "source-db",
"properties" : {
"query" : "SELECT artifact_name FROM BLUEPRINT_RUNTIME where artifact_version=\"1.0.0\"",
"input-key-mapping" : { },
"type" : "source-default",
"properties" : { }
},
- "primary-config-data" : {
+ "config-data" : {
"type" : "source-rest",
"properties" : {
"verb" : "GET",
"type" : "source-default",
"properties" : { }
},
- "primary-config-data" : {
+ "config-data" : {
"type" : "source-rest",
"properties" : {
"verb" : "GET",
"type" : "source-default",
"properties" : { }
},
- "primary-config-data" : {
+ "config-data" : {
"type" : "source-rest",
"properties" : {
"verb" : "GET",
"type" : "source-default",
"properties" : { }
},
- "primary-config-data" : {
+ "config-data" : {
"type" : "source-rest",
"properties" : {
"verb" : "GET",
"type" : "source-default",
"properties" : { }
},
- "primary-config-data" : {
+ "config-data" : {
"type" : "source-rest",
"properties" : {
"verb" : "GET",
"key-dependencies" : [ "service-instance-id", "vnf-id" ]
}
},
- "primary-aai-data" : {
+ "aai-data" : {
"type" : "source-rest",
"properties" : {
"verb" : "GET",
"properties" : { }
},
"processor-db" : {
- "type" : "source-processor-db",
+ "type" : "source-db",
"properties" : {
"type" : "SQL",
"query" : "select sdnctl.VF_MODULE_MODEL.vf_module_label as vf_module_label from sdnctl.VF_MODULE_MODEL where sdnctl.VF_MODULE_MODEL.customization_uuid=:customizationid",
"properties" : { }
},
"processor-db" : {
- "type" : "source-processor-db",
+ "type" : "source-db",
"properties" : {
"type" : "SQL",
"query" : "select vf_module_type as vf_module_type from sdnctl.VF_MODULE_MODEL where customization_uuid=:customizationid",
"type" : "source-default",
"properties" : { }
},
- "primary-config-data" : {
+ "config-data" : {
"type" : "source-rest",
"properties" : {
"verb" : "GET",
}
},
"processor-db" : {
- "type" : "source-processor-db",
+ "type" : "source-db",
"properties" : {
"endpoint-selector" : "dynamic-db-source",
"type" : "SQL",
"properties" : { }
},
"processor-db" : {
- "type" : "source-processor-db",
+ "type" : "source-db",
"properties" : {
"endpoint-selector" : "dynamic-db-source",
"type" : "SQL",
"type" : "source-default",
"properties" : { }
},
- "primary-config-data" : {
+ "config-data" : {
"type" : "source-rest",
"properties" : {
"verb" : "GET",
"type" : "source-default",
"properties" : { }
},
- "primary-config-data" : {
+ "config-data" : {
"type" : "source-rest",
"properties" : {
"verb" : "GET",
"type" : "source-default",
"properties" : { }
},
- "primary-config-data" : {
+ "config-data" : {
"type" : "source-rest",
"properties" : {
"verb" : "GET",
"type" : "source-default",
"properties" : { }
},
- "primary-config-data" : {
+ "config-data" : {
"type" : "source-rest",
"properties" : {
"verb" : "GET",
"type" : "source-default",
"properties" : { }
},
- "primary-config-data" : {
+ "config-data" : {
"type" : "source-rest",
"properties" : {
"verb" : "GET",
"type" : "source-default",
"properties" : { }
},
- "primary-config-data" : {
+ "config-data" : {
"type" : "source-rest",
"properties" : {
"verb" : "GET",
"properties" : { }
},
"processor-db" : {
- "type" : "source-processor-db",
+ "type" : "source-db",
"properties" : {
"endpoint-selector" : "dynamic-db-source",
"type" : "SQL",
}
}
},
- "primary-config-data" : {
+ "config-data" : {
"type" : "source-rest",
"properties" : {
"verb" : "GET",
"properties" : { }
},
"processor-db" : {
- "type" : "source-processor-db",
+ "type" : "source-db",
"properties" : {
"type" : "SQL",
"query" : "select VFC_MODEL.vm_type as vm_type from VFC_MODEL where customization_uuid=:vfccustomizationuuid",
"type" : "source-default",
"properties" : { }
},
- "primary-config-data" : {
+ "config-data" : {
"type" : "source-rest",
"properties" : {
"verb" : "GET",
"type" : "source-default",
"properties" : { }
},
- "primary-config-data" : {
+ "config-data" : {
"type" : "source-rest",
"properties" : {
"verb" : "GET",
"properties" : { }
},
"processor-db" : {
- "type" : "source-processor-db",
+ "type" : "source-db",
"properties" : {
"type" : "SQL",
"query" : "select VFC_MODEL.invariant_uuid as vfc_invariant_uuid from VFC_MODEL where customization_uuid=:vfccustomizationuuid",
"properties" : { }
},
"processor-db" : {
- "type" : "source-processor-db",
+ "type" : "source-db",
"properties" : {
"endpoint-selector" : "dynamic-db-source",
"type" : "SQL",
"type" : "source-default",
"properties" : { }
},
- "primary-config-data" : {
+ "config-data" : {
"type" : "source-rest",
"properties" : {
"verb" : "GET",
"type" : "source-default",
"properties" : { }
},
- "primary-config-data" : {
+ "config-data" : {
"type" : "source-rest",
"properties" : {
"verb" : "GET",
"type" : "source-default",
"properties" : { }
},
- "primary-config-data" : {
+ "config-data" : {
"type" : "source-rest",
"properties" : {
"verb" : "GET",
"type" : "source-default",
"properties" : { }
},
- "primary-config-data" : {
+ "config-data" : {
"type" : "source-rest",
"properties" : {
"verb" : "GET",
}
}
}
-}
\ No newline at end of file
+}
},
"input-param": false,
"dictionary-name": "vf-naming-policy",
- "dictionary-source": "primary-config-data",
+ "dictionary-source": "config-data",
"dependencies": [
"service-instance-id",
"vnf-id"
},
"input-param": false,
"dictionary-name": "vlb_private_net_cidr",
- "dictionary-source": "primary-config-data",
+ "dictionary-source": "config-data",
"dependencies": [
"service-instance-id",
"vnf-id"
},
"input-param": false,
"dictionary-name": "pktgen_private_net_cidr",
- "dictionary-source": "primary-config-data",
+ "dictionary-source": "config-data",
"dependencies": [
"service-instance-id",
"vnf-id"
},
"input-param": false,
"dictionary-name": "vnf_name",
- "dictionary-source": "primary-config-data",
+ "dictionary-source": "config-data",
"dependencies": [
"service-instance-id",
"vnf-id"
},
"input-param": false,
"dictionary-name": "pub_key",
- "dictionary-source": "primary-config-data",
+ "dictionary-source": "config-data",
"dependencies": [
"service-instance-id",
"vnf-id"
},
"input-param": false,
"dictionary-name": "key_name",
- "dictionary-source": "primary-config-data",
+ "dictionary-source": "config-data",
"dependencies": [
"service-instance-id",
"vnf-id"
],
"version": 0
}
-]
\ No newline at end of file
+]
},\r
"input-param": false,\r
"dictionary-name": "vdns_vf_module_id",\r
- "dictionary-source": "primary-config-data",\r
+ "dictionary-source": "config-data",\r
"dependencies": [\r
"service-instance-id",\r
"vnf-id"\r
},\r
"input-param": false,\r
"dictionary-name": "vdns_int_private_ip_0",\r
- "dictionary-source": "primary-config-data",\r
+ "dictionary-source": "config-data",\r
"dependencies": [\r
"service-instance-id",\r
"vnf-id",\r
},\r
"input-param": false,\r
"dictionary-name": "vdns_onap_private_ip_0",\r
- "dictionary-source": "primary-config-data",\r
+ "dictionary-source": "config-data",\r
"dependencies": [\r
"service-instance-id",\r
"vnf-id",\r
],\r
"version": 0\r
}\r
-]
\ No newline at end of file
+]\r
},\r
"input-param": false,\r
"dictionary-name": "vdns_vf_module_id",\r
- "dictionary-source": "primary-config-data",\r
+ "dictionary-source": "config-data",\r
"dependencies": [\r
"service-instance-id",\r
"vnf-id"\r
},\r
"input-param": false,\r
"dictionary-name": "vdns_int_private_ip_0",\r
- "dictionary-source": "primary-config-data",\r
+ "dictionary-source": "config-data",\r
"dependencies": [\r
"service-instance-id",\r
"vnf-id",\r
},\r
"input-param": false,\r
"dictionary-name": "vdns_onap_private_ip_0",\r
- "dictionary-source": "primary-config-data",\r
+ "dictionary-source": "config-data",\r
"dependencies": [\r
"service-instance-id",\r
"vnf-id",\r
],\r
"version": 0\r
}\r
-]
\ No newline at end of file
+]\r
},\r
"input-param": false,\r
"dictionary-name": "vlb_onap_private_ip_0",\r
- "dictionary-source": "primary-config-data",\r
+ "dictionary-source": "config-data",\r
"dependencies": [\r
"service-instance-id",\r
"vnf-id"\r
],\r
"version": 0\r
}\r
-]
\ No newline at end of file
+]\r
},
"input-param": false,
"dictionary-name": "cloud_env",
- "dictionary-source": "primary-config-data",
+ "dictionary-source": "config-data",
"dependencies": [
"service-instance-id",
"vnf-id"
},
"input-param": false,
"dictionary-name": "create-md-sal-vnf-param",
- "dictionary-source": "primary-config-data",
+ "dictionary-source": "config-data",
"dependencies": [
"service-instance-id",
"vnf-id",
},
"input-param": false,
"dictionary-name": "onap_private_net_cidr",
- "dictionary-source": "primary-config-data",
+ "dictionary-source": "config-data",
"dependencies": [
"service-instance-id",
"vnf-id"
},
"input-param": false,
"dictionary-name": "install_script_version",
- "dictionary-source": "primary-config-data",
+ "dictionary-source": "config-data",
"dependencies": [
"service-instance-id",
"vnf-id"
},
"input-param": false,
"dictionary-name": "onap_private_net_id",
- "dictionary-source": "primary-config-data",
+ "dictionary-source": "config-data",
"dependencies": [
"service-instance-id",
"vnf-id"
},
"input-param": false,
"dictionary-name": "onap_private_subnet_id",
- "dictionary-source": "primary-config-data",
+ "dictionary-source": "config-data",
"dependencies": [
"service-instance-id",
"vnf-id"
},
"input-param": false,
"dictionary-name": "public_net_id",
- "dictionary-source": "primary-config-data",
+ "dictionary-source": "config-data",
"dependencies": [
"service-instance-id",
"vnf-id"
},
"input-param": false,
"dictionary-name": "sec_group",
- "dictionary-source": "primary-config-data",
+ "dictionary-source": "config-data",
"dependencies": [
"service-instance-id",
"vnf-id"
},
"input-param": false,
"dictionary-name": "vf-naming-policy",
- "dictionary-source": "primary-config-data",
+ "dictionary-source": "config-data",
"dependencies": [
"service-instance-id",
"vnf-id"
},
"input-param": false,
"dictionary-name": "vlb_int_pktgen_private_ip_0",
- "dictionary-source": "primary-config-data",
+ "dictionary-source": "config-data",
"dependencies": [
"service-instance-id",
"vnf-id"
},
"input-param": false,
"dictionary-name": "vlb_int_private_ip_0",
- "dictionary-source": "primary-config-data",
+ "dictionary-source": "config-data",
"dependencies": [
"service-instance-id",
"vnf-id"
},
"input-param": false,
"dictionary-name": "vlb_onap_private_ip_0",
- "dictionary-source": "primary-config-data",
+ "dictionary-source": "config-data",
"dependencies": [
"service-instance-id",
"vnf-id"
},
"input-param": false,
"dictionary-name": "vlb_private_net_cidr",
- "dictionary-source": "primary-config-data",
+ "dictionary-source": "config-data",
"dependencies": [
"service-instance-id",
"vnf-id"
},
"input-param": false,
"dictionary-name": "vnf_name",
- "dictionary-source": "primary-config-data",
+ "dictionary-source": "config-data",
"dependencies": [
"service-instance-id",
"vnf-id"
},
"input-param": false,
"dictionary-name": "image_name",
- "dictionary-source": "primary-config-data",
+ "dictionary-source": "config-data",
"dependencies": [
"service-instance-id",
"vnf-id"
],
"version": 0
}
-]
\ No newline at end of file
+]
},
"input-param": false,
"dictionary-name": "vpg_int_pktgen_private_ip_0",
- "dictionary-source": "primary-config-data",
+ "dictionary-source": "config-data",
"dependencies": [
"service-instance-id",
"vnf-id"
},
"input-param": false,
"dictionary-name": "demo_artifacts_version",
- "dictionary-source": "primary-config-data",
+ "dictionary-source": "config-data",
"dependencies": [
"service-instance-id",
"vnf-id"
},
"input-param": false,
"dictionary-name": "install_script_version",
- "dictionary-source": "primary-config-data",
+ "dictionary-source": "config-data",
"dependencies": [
"service-instance-id",
"vnf-id"
},
"input-param": false,
"dictionary-name": "vnf_name",
- "dictionary-source": "primary-config-data",
+ "dictionary-source": "config-data",
"dependencies": [
"service-instance-id",
"vnf-id"
},
"input-param": false,
"dictionary-name": "onap_private_net_cidr",
- "dictionary-source": "primary-config-data",
+ "dictionary-source": "config-data",
"dependencies": [
"service-instance-id",
"vnf-id"
},
"input-param": false,
"dictionary-name": "onap_private_net_id",
- "dictionary-source": "primary-config-data",
+ "dictionary-source": "config-data",
"dependencies": [
"service-instance-id",
"vnf-id"
},
"input-param": false,
"dictionary-name": "onap_private_subnet_id",
- "dictionary-source": "primary-config-data",
+ "dictionary-source": "config-data",
"dependencies": [
"service-instance-id",
"vnf-id"
},
"input-param": false,
"dictionary-name": "pktgen_private_net_cidr",
- "dictionary-source": "primary-config-data",
+ "dictionary-source": "config-data",
"dependencies": [
"service-instance-id",
"vnf-id"
},
"input-param": false,
"dictionary-name": "public_net_id",
- "dictionary-source": "primary-config-data",
+ "dictionary-source": "config-data",
"dependencies": [
"service-instance-id",
"vnf-id"
},
"input-param": false,
"dictionary-name": "sec_group",
- "dictionary-source": "primary-config-data",
+ "dictionary-source": "config-data",
"dependencies": [
"service-instance-id",
"vnf-id"
},
"input-param": false,
"dictionary-name": "vf-naming-policy",
- "dictionary-source": "primary-config-data",
+ "dictionary-source": "config-data",
"dependencies": [
"service-instance-id",
"vnf-id"
},
"input-param": false,
"dictionary-name": "image_name",
- "dictionary-source": "primary-config-data",
+ "dictionary-source": "config-data",
"dependencies": [
"service-instance-id",
"vnf-id"
},
"input-param": false,
"dictionary-name": "vlb_int_pktgen_private_ip_0",
- "dictionary-source": "primary-config-data",
+ "dictionary-source": "config-data",
"dependencies": [
"service-instance-id",
"vnf-id"
},
"input-param": false,
"dictionary-name": "vlb_int_private_ip_0",
- "dictionary-source": "primary-config-data",
+ "dictionary-source": "config-data",
"dependencies": [
"service-instance-id",
"vnf-id"
},
"input-param": false,
"dictionary-name": "vlb_onap_private_ip_0",
- "dictionary-source": "primary-config-data",
+ "dictionary-source": "config-data",
"dependencies": [
"service-instance-id",
"vnf-id"
},
"input-param": false,
"dictionary-name": "vlb_private_net_cidr",
- "dictionary-source": "primary-config-data",
+ "dictionary-source": "config-data",
"dependencies": [
"service-instance-id",
"vnf-id"
},
"input-param": false,
"dictionary-name": "vpg_onap_private_ip_0",
- "dictionary-source": "primary-config-data",
+ "dictionary-source": "config-data",
"dependencies": [
"service-instance-id",
"vnf-id"
"dependencies": [],
"version": 0
}
-]
\ No newline at end of file
+]
},
"input-param": false,
"dictionary-name": "demo_artifacts_version",
- "dictionary-source": "primary-config-data",
+ "dictionary-source": "config-data",
"dependencies": [
"service-instance-id",
"vnf-id"
},
"input-param": false,
"dictionary-name": "install_script_version",
- "dictionary-source": "primary-config-data",
+ "dictionary-source": "config-data",
"dependencies": [
"service-instance-id",
"vnf-id"
},
"input-param": false,
"dictionary-name": "onap_private_net_cidr",
- "dictionary-source": "primary-config-data",
+ "dictionary-source": "config-data",
"dependencies": [
"service-instance-id",
"vnf-id"
},
"input-param": false,
"dictionary-name": "onap_private_net_id",
- "dictionary-source": "primary-config-data",
+ "dictionary-source": "config-data",
"dependencies": [
"service-instance-id",
"vnf-id"
},
"input-param": false,
"dictionary-name": "onap_private_subnet_id",
- "dictionary-source": "primary-config-data",
+ "dictionary-source": "config-data",
"dependencies": [
"service-instance-id",
"vnf-id"
},
"input-param": false,
"dictionary-name": "pktgen_private_net_cidr",
- "dictionary-source": "primary-config-data",
+ "dictionary-source": "config-data",
"dependencies": [
"service-instance-id",
"vnf-id"
},
"input-param": false,
"dictionary-name": "public_net_id",
- "dictionary-source": "primary-config-data",
+ "dictionary-source": "config-data",
"dependencies": [
"service-instance-id",
"vnf-id"
},
"input-param": false,
"dictionary-name": "pub_key",
- "dictionary-source": "primary-config-data",
+ "dictionary-source": "config-data",
"dependencies": [
"service-instance-id",
"vnf-id"
},
"input-param": false,
"dictionary-name": "key_name",
- "dictionary-source": "primary-config-data",
+ "dictionary-source": "config-data",
"dependencies": [
"service-instance-id",
"vnf-id"
},
"input-param": false,
"dictionary-name": "sec_group",
- "dictionary-source": "primary-config-data",
+ "dictionary-source": "config-data",
"dependencies": [
"service-instance-id",
"vnf-id"
},
"input-param": false,
"dictionary-name": "vf-naming-policy",
- "dictionary-source": "primary-config-data",
+ "dictionary-source": "config-data",
"dependencies": [
"service-instance-id",
"vnf-id"
},
"input-param": false,
"dictionary-name": "image_name",
- "dictionary-source": "primary-config-data",
+ "dictionary-source": "config-data",
"dependencies": [
"service-instance-id",
"vnf-id"
},
"input-param": false,
"dictionary-name": "vlb_int_pktgen_private_ip_0",
- "dictionary-source": "primary-config-data",
+ "dictionary-source": "config-data",
"dependencies": [
"service-instance-id",
"vnf-id"
},
"input-param": false,
"dictionary-name": "vnf_name",
- "dictionary-source": "primary-config-data",
+ "dictionary-source": "config-data",
"dependencies": [
"service-instance-id",
"vnf-id"
},
"input-param": false,
"dictionary-name": "vpg_int_pktgen_private_ip_0",
- "dictionary-source": "primary-config-data",
+ "dictionary-source": "config-data",
"dependencies": [
"service-instance-id",
"vnf-id"
},
"input-param": false,
"dictionary-name": "vpg_onap_private_ip_0",
- "dictionary-source": "primary-config-data",
+ "dictionary-source": "config-data",
"dependencies": [
"service-instance-id",
"vnf-id"
],
"version": 0
}
-]
\ No newline at end of file
+]
"type": "string"
},
"dictionary-name": "vnf_name",
- "dictionary-source": "primary-config-data",
+ "dictionary-source": "config-data",
"dependencies": [
"service-instance-id",
"vnf-id"
"type": "string"
},
"dictionary-name": "vnf_name",
- "dictionary-source": "primary-config-data",
+ "dictionary-source": "config-data",
"dependencies": [
"service-instance-id",
"vnf-id"
"properties": {},
"derived_from": "tosca.nodes.ResourceSource"
},
- "source-processor-db": {
+ "source-db": {
"description": "This is Database Resource Source Node Type",
"version": "1.0.0",
"properties": {
"derived_from": "tosca.nodes.Vnf"
}
}
-}
\ No newline at end of file
+}
"properties": {}
},
"processor-db": {
- "type": "source-processor-db",
+ "type": "source-db",
"properties": {
"endpoint-selector": "dynamic-db-source",
"query": "SELECT artifact_name FROM sdnctl.BLUEPRINT_RUNTIME where artifact_version=\"1.0.0\"",
},
"updated-by": "Singal, Kapil <ks220y@att.com>",
"sources": {
- "primary-config-data": {
+ "config-data": {
"type": "source-rest",
"properties": {
"verb": "GET",
},
"updated-by": "Steve, Siani <steve.djissitchi@bell.ca>",
"sources": {
- "primary-aai-data": {
+ "aai-data": {
"type": "source-rest",
"properties": {
"type": "JSON",
},
"updated-by": "Steve, Siani <steve.djissitchi@bell.ca>",
"sources": {
- "primary-aai-data": {
+ "aai-data": {
"type": "source-rest",
"properties": {
"type": "JSON",
},
"updated-by": "Steve, Siani <steve.djissitchi@bell.ca>",
"sources": {
- "primary-aai-data": {
+ "aai-data": {
"type": "source-rest",
"properties": {
"type": "JSON",
}
}
}
-}
\ No newline at end of file
+}
-blueprintsprocessor.restclient.primary-config-data.type=basic-auth
-blueprintsprocessor.restclient.primary-config-data.url=http://127.0.0.1:9111
-blueprintsprocessor.restclient.primary-config-data.userId=sampleuser
-blueprintsprocessor.restclient.primary-config-data.token=sampletoken
+blueprintsprocessor.restclient.config-data.type=basic-auth
+blueprintsprocessor.restclient.config-data.url=http://127.0.0.1:9111
+blueprintsprocessor.restclient.config-data.userId=sampleuser
+blueprintsprocessor.restclient.config-data.token=sampletoken
-blueprintsprocessor.restclient.primary-config-data1.type=basic-auth
-blueprintsprocessor.restclient.primary-config-data1.url=http://127.0.0.1:9111
-blueprintsprocessor.restclient.primary-config-data1.userId=sampleuser
-blueprintsprocessor.restclient.primary-config-data1.token=sampletoken
\ No newline at end of file
+blueprintsprocessor.restclient.config-data1.type=basic-auth
+blueprintsprocessor.restclient.config-data1.url=http://127.0.0.1:9111
+blueprintsprocessor.restclient.config-data1.userId=sampleuser
+blueprintsprocessor.restclient.config-data1.token=sampletoken
"type" : "source-input",
"properties" : { }
},
- "primary-db": {
- "type": "source-processor-db",
+ "processor-db": {
+ "type": "source-db",
"properties": {
"endpoint-selector": "dynamic-db-source",
"query": "SELECT artifact_name FROM sdnctl.BLUEPRINT_RUNTIME where artifact_version=\"1.0.0\"",
}
}
}
-}
\ No newline at end of file
+}
{
"artifact_types" : {
- "artifact-directed-graph" : {
- "description" : "Directed Graph File",
- "version" : "1.0.0",
- "derived_from" : "tosca.artifacts.Implementation",
- "file_ext" : [ "json", "xml" ]
- },
"artifact-mapping-resource" : {
"description" : "Resource Mapping File used along with Configuration template",
"version" : "1.0.0",
"interface-name" : {
"type" : "string"
},
+ "golden-vf-module-type" : {
+ "type" : "string"
+ },
"interface-description" : {
"type" : "string"
},
"type" : "string",
"default" : "6"
},
- "vf-module-type" : {
- "type" : "string"
- },
"vf-module-number" : {
"type" : "string",
"default" : "3"
{
- "metadata": {
- "template_author": "Alexis de Talhouët",
- "author-email": "adetalhouet89@gmail.com",
- "user-groups": "ADMIN, OPERATION",
- "template_name": "golden",
- "template_version": "1.0.0",
- "template_tags": "test"
+ "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" : "golden",
+ "template_version" : "1.0.0",
+ "template_tags" : "test"
},
- "imports": [
- {
- "file": "Definitions/data_types.json"
+ "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" : {
+ "ipam-1" : {
+ "type" : "token-auth",
+ "url" : "http://netbox-nginx:8080",
+ "token" : "Token 0123456789abcdef0123456789abcdef01234567"
},
- {
- "file": "Definitions/relationship_types.json"
- },
- {
- "file": "Definitions/artifact_types.json"
- },
- {
- "file": "Definitions/node_types.json"
- },
- {
- "file": "Definitions/policy_types.json"
- }
- ],
- "dsl_definitions": {
- "ipam-1": {
- "type": "token-auth",
- "url": "http://netbox-nginx:8080",
- "token": "Token 0123456789abcdef0123456789abcdef01234567"
- },
- "config-deploy-properties": {
- "resolution-key": {
- "get_input": "resolution-key"
+ "config-deploy-properties" : {
+ "resolution-key" : {
+ "get_input" : "resolution-key"
}
}
},
- "topology_template": {
- "workflows": {
- "resource-assignment": {
- "steps": {
- "resource-assignment": {
- "description": "Resource Assign Workflow",
- "target": "resource-assignment",
- "activities": [
- {
- "call_operation": ""
- }
- ]
+ "topology_template" : {
+ "workflows" : {
+ "resource-assignment" : {
+ "steps" : {
+ "resource-assignment" : {
+ "description" : "Resource Assign Workflow",
+ "target" : "resource-assignment",
+ "activities" : [ {
+ "call_operation" : ""
+ } ]
}
},
- "inputs": {
- "resource-assignment-properties": {
- "description": "Dynamic PropertyDefinition for workflow(resource-assignment).",
- "required": true,
- "type": "dt-resource-assignment-properties"
+ "inputs" : {
+ "resource-assignment-properties" : {
+ "description" : "Dynamic PropertyDefinition for workflow(resource-assignment).",
+ "required" : true,
+ "type" : "dt-resource-assignment-properties"
}
},
- "outputs": {
- "meshed-template": {
- "type": "json",
- "value": {
- "get_attribute": [
- "resource-assignment",
- "assignment-params"
- ]
+ "outputs" : {
+ "meshed-template" : {
+ "type" : "json",
+ "value" : {
+ "get_attribute" : [ "resource-assignment", "assignment-params" ]
}
}
}
},
- "config-assign": {
- "steps": {
- "config-assign": {
- "description": "Config Assign Workflow",
- "target": "config-assign",
- "activities": [
- {
- "call_operation": ""
- }
- ]
+ "config-assign" : {
+ "steps" : {
+ "config-assign" : {
+ "description" : "Config Assign Workflow",
+ "target" : "config-assign",
+ "activities" : [ {
+ "call_operation" : ""
+ } ]
}
},
- "inputs": {
- "resolution-key": {
- "required": true,
- "type": "string"
+ "inputs" : {
+ "resolution-key" : {
+ "required" : true,
+ "type" : "string"
},
- "config-assign-properties": {
- "description": "Dynamic PropertyDefinition for workflow(config-assign).",
- "required": true,
- "type": "dt-config-assign-properties"
+ "config-assign-properties" : {
+ "description" : "Dynamic PropertyDefinition for workflow(config-assign).",
+ "required" : true,
+ "type" : "dt-config-assign-properties"
}
},
- "outputs": {
- "dry-run": {
- "type": "json",
- "value": {
- "get_attribute": [
- "config-assign",
- "assignment-params"
- ]
+ "outputs" : {
+ "dry-run" : {
+ "type" : "json",
+ "value" : {
+ "get_attribute" : [ "config-assign", "assignment-params" ]
}
}
}
},
- "config-deploy": {
- "steps": {
- "config-deploy": {
- "description": "Resource Assign and Python Netconf Activation Workflow",
- "target": "config-deploy",
- "activities": [
- {
- "call_operation": ""
- }
- ]
+ "config-deploy" : {
+ "steps" : {
+ "config-deploy" : {
+ "description" : "Resource Assign and Python Netconf Activation Workflow",
+ "target" : "config-deploy",
+ "activities" : [ {
+ "call_operation" : ""
+ } ]
}
},
- "inputs": {
- "resolution-key": {
- "required": false,
- "type": "string"
+ "inputs" : {
+ "resolution-key" : {
+ "required" : false,
+ "type" : "string"
},
- "password": {
- "required": true,
- "type": "string"
+ "password" : {
+ "required" : true,
+ "type" : "string"
},
- "username": {
- "required": true,
- "type": "string"
+ "username" : {
+ "required" : true,
+ "type" : "string"
},
- "ip": {
- "required": true,
- "type": "string"
+ "ip" : {
+ "required" : true,
+ "type" : "string"
}
}
},
- "rollback": {
- "steps": {
- "rollback": {
- "description": "Rollback Workflow",
- "target": "rollback",
- "activities": [
- {
- "call_operation": ""
- }
- ]
+ "rollback" : {
+ "steps" : {
+ "rollback" : {
+ "description" : "Rollback Workflow",
+ "target" : "rollback",
+ "activities" : [ {
+ "call_operation" : ""
+ } ]
}
},
- "inputs": {
- "resolution-key": {
- "required": false,
- "type": "string"
+ "inputs" : {
+ "resolution-key" : {
+ "required" : false,
+ "type" : "string"
},
- "password": {
- "required": true,
- "type": "string"
+ "password" : {
+ "required" : true,
+ "type" : "string"
},
- "username": {
- "required": true,
- "type": "string"
+ "username" : {
+ "required" : true,
+ "type" : "string"
},
- "ip": {
- "required": true,
- "type": "string"
+ "ip" : {
+ "required" : true,
+ "type" : "string"
},
- "rollback-properties": {
- "description": "Dynamic PropertyDefinition for workflow(rollback).",
- "required": true,
- "type": "dt-rollback-properties"
+ "rollback-properties" : {
+ "description" : "Dynamic PropertyDefinition for workflow(rollback).",
+ "required" : true,
+ "type" : "dt-rollback-properties"
}
}
}
},
- "node_templates": {
- "resource-assignment": {
- "type": "component-resource-resolution",
- "interfaces": {
- "ResourceResolutionComponent": {
- "operations": {
- "process": {
- "inputs": {
- "artifact-prefix-names": [
- "vf-module-1"
- ]
+ "node_templates" : {
+ "resource-assignment" : {
+ "type" : "component-resource-resolution",
+ "interfaces" : {
+ "ResourceResolutionComponent" : {
+ "operations" : {
+ "process" : {
+ "inputs" : {
+ "artifact-prefix-names" : [ "vf-module-1" ]
}
}
}
}
},
- "artifacts": {
- "vf-module-1-template": {
- "type": "artifact-template-velocity",
- "file": "Templates/vf-module-1-template.vtl"
+ "artifacts" : {
+ "vf-module-1-template" : {
+ "type" : "artifact-template-velocity",
+ "file" : "Templates/vf-module-1-template.vtl"
},
- "vf-module-1-mapping": {
- "type": "artifact-mapping-resource",
- "file": "Templates/vf-module-1-mapping.json"
+ "vf-module-1-mapping" : {
+ "type" : "artifact-mapping-resource",
+ "file" : "Templates/vf-module-1-mapping.json"
}
}
},
- "config-assign": {
- "type": "component-resource-resolution",
- "interfaces": {
- "ResourceResolutionComponent": {
- "operations": {
- "process": {
- "inputs": {
- "resolution-key": {
- "get_input": "resolution-key"
+ "config-assign" : {
+ "type" : "component-resource-resolution",
+ "interfaces" : {
+ "ResourceResolutionComponent" : {
+ "operations" : {
+ "process" : {
+ "inputs" : {
+ "resolution-key" : {
+ "get_input" : "resolution-key"
},
- "store-result": true,
- "artifact-prefix-names": [
- "hostname", "vfw-interface"
- ]
+ "store-result" : true,
+ "artifact-prefix-names" : [ "hostname", "vfw-interface" ]
}
}
}
}
},
- "artifacts": {
- "hostname-template": {
- "type": "artifact-template-velocity",
- "file": "Templates/hostname-template.vtl"
+ "artifacts" : {
+ "hostname-template" : {
+ "type" : "artifact-template-velocity",
+ "file" : "Templates/hostname-template.vtl"
},
- "hostname-mapping": {
- "type": "artifact-mapping-resource",
- "file": "Templates/hostname-mapping.json"
+ "hostname-mapping" : {
+ "type" : "artifact-mapping-resource",
+ "file" : "Templates/hostname-mapping.json"
},
- "vfw-interface-template": {
- "type": "artifact-template-velocity",
- "file": "Templates/vfw-interface-template.vtl"
+ "vfw-interface-template" : {
+ "type" : "artifact-template-velocity",
+ "file" : "Templates/vfw-interface-template.vtl"
},
- "vfw-interface-mapping": {
- "type": "artifact-mapping-resource",
- "file": "Templates/vfw-interface-mapping.json"
+ "vfw-interface-mapping" : {
+ "type" : "artifact-mapping-resource",
+ "file" : "Templates/vfw-interface-mapping.json"
}
}
},
- "config-deploy": {
- "type": "component-netconf-executor",
- "requirements": {
- "netconf-connection": {
- "capability": "netconf",
- "node": "netconf-device",
- "relationship": "tosca.relationships.ConnectsTo"
+ "config-deploy" : {
+ "type" : "component-netconf-executor",
+ "requirements" : {
+ "netconf-connection" : {
+ "capability" : "netconf",
+ "node" : "netconf-device",
+ "relationship" : "tosca.relationships.ConnectsTo"
}
},
- "interfaces": {
- "ComponentNetconfExecutor": {
- "operations": {
- "process": {
- "inputs": {
- "script-type": "jython",
- "script-class-reference": "Scripts/python/ConfigDeploy.py",
- "instance-dependencies": [],
- "dynamic-properties": "*config-deploy-properties"
+ "interfaces" : {
+ "ComponentNetconfExecutor" : {
+ "operations" : {
+ "process" : {
+ "inputs" : {
+ "script-type" : "jython",
+ "script-class-reference" : "Scripts/python/ConfigDeploy.py",
+ "instance-dependencies" : [ ],
+ "dynamic-properties" : "*config-deploy-properties"
}
}
}
}
}
},
- "rollback": {
- "type": "component-netconf-executor",
- "requirements": {
- "netconf-connection": {
- "capability": "netconf",
- "node": "netconf-device",
- "relationship": "tosca.relationships.ConnectsTo"
+ "rollback" : {
+ "type" : "component-netconf-executor",
+ "requirements" : {
+ "netconf-connection" : {
+ "capability" : "netconf",
+ "node" : "netconf-device",
+ "relationship" : "tosca.relationships.ConnectsTo"
}
},
- "interfaces": {
- "ComponentNetconfExecutor": {
- "operations": {
- "process": {
- "inputs": {
- "script-type": "jython",
- "script-class-reference": "Scripts/python/Rollback.py",
- "instance-dependencies": []
+ "interfaces" : {
+ "ComponentNetconfExecutor" : {
+ "operations" : {
+ "process" : {
+ "inputs" : {
+ "script-type" : "jython",
+ "script-class-reference" : "Scripts/python/Rollback.py",
+ "instance-dependencies" : [ ]
}
}
}
}
},
- "artifacts": {
- "junos-rollback-RPC-template": {
- "type": "artifact-template-velocity",
- "file": "Templates/junos-rollback-RPC-template.vtl"
+ "artifacts" : {
+ "junos-rollback-RPC-template" : {
+ "type" : "artifact-template-velocity",
+ "file" : "Templates/junos-rollback-RPC-template.vtl"
},
- "junos-rollback-RPC-mapping": {
- "type": "artifact-mapping-resource",
- "file": "Templates/junos-rollback-RPC-mapping.json"
+ "junos-rollback-RPC-mapping" : {
+ "type" : "artifact-mapping-resource",
+ "file" : "Templates/junos-rollback-RPC-mapping.json"
}
}
},
- "netconf-device": {
- "type": "vnf-netconf-device",
- "capabilities": {
- "netconf": {
- "properties": {
- "login-key": {
- "get_input": "password"
+ "netconf-device" : {
+ "type" : "vnf-netconf-device",
+ "capabilities" : {
+ "netconf" : {
+ "properties" : {
+ "login-key" : {
+ "get_input" : "password"
},
- "login-account": {
- "get_input": "username"
+ "login-account" : {
+ "get_input" : "username"
},
- "target-ip-address": {
- "get_input": "ip"
+ "target-ip-address" : {
+ "get_input" : "ip"
},
- "port-number": 830,
- "connection-time-out": 5
+ "port-number" : 830,
+ "connection-time-out" : 5
}
}
}
}
}
}
-}
\ No newline at end of file
+}
"component-netconf-executor" : {
"description" : "This is Netconf Transaction Configuration Component API",
"version" : "1.0.0",
+ "attributes" : {
+ "response-data" : {
+ "required" : false,
+ "type" : "json"
+ }
+ },
"capabilities" : {
"component-node" : {
"type" : "tosca.capabilities.Node"
} ],
"default" : "internal"
},
- "dynamic-properties" : {
- "description" : "Dynamic Json Content or DSL Json reference.",
- "required" : false,
- "type" : "json"
- },
"script-class-reference" : {
"description" : "Kotlin Script class name or jython script name.",
"required" : true,
"entry_schema" : {
"type" : "string"
}
+ },
+ "dynamic-properties" : {
+ "description" : "Dynamic Json Content or DSL Json reference.",
+ "required" : false,
+ "type" : "json"
}
},
"outputs" : {
"required" : false,
"type" : "string"
},
+ "occurrence" : {
+ "description" : "Number of time to perform the resolution.",
+ "required" : false,
+ "type" : "integer",
+ "default" : 1
+ },
"store-result" : {
"description" : "Whether or not to store the output.",
"required" : false,
},
"derived_from" : "tosca.nodes.Component"
},
- "dg-generic" : {
- "description" : "This is Generic Directed Graph Type",
- "version" : "1.0.0",
- "properties" : {
- "content" : {
- "required" : true,
- "type" : "string"
- },
- "dependency-node-templates" : {
- "description" : "Dependent Step Components NodeTemplate name.",
- "required" : true,
- "type" : "list",
- "entry_schema" : {
- "type" : "string"
- }
- }
- },
- "derived_from" : "tosca.nodes.Workflow"
- },
"source-capability" : {
"description" : "This is Component Resource Source Node Type",
"version" : "1.0.0",
},
"derived_from" : "tosca.nodes.ResourceSource"
},
- "source-default" : {
- "description" : "This is Default Resource Source Node Type",
- "version" : "1.0.0",
- "properties" : {
- "key" : {
- "required" : false,
- "type" : "string"
- },
- "key-dependencies" : {
- "required" : true,
- "type" : "list",
- "entry_schema" : {
- "type" : "string"
- }
- }
- },
- "derived_from" : "tosca.nodes.ResourceSource"
- },
- "source-input" : {
- "description" : "This is Input Resource Source Node Type",
- "version" : "1.0.0",
- "properties" : {
- "key" : {
- "required" : false,
- "type" : "string"
- },
- "key-dependencies" : {
- "required" : true,
- "type" : "list",
- "entry_schema" : {
- "type" : "string"
- }
- }
- },
- "derived_from" : "tosca.nodes.ResourceSource"
- },
- "source-processor-db" : {
+ "source-db" : {
"description" : "This is Database Resource Source Node Type",
"version" : "1.0.0",
"properties" : {
"type" : "string",
"constraints" : [ {
"valid_values" : [ "SQL", "PLSQL" ]
- } ]
+ } ],
+ "default" : "SQL"
},
"endpoint-selector" : {
"required" : false,
},
"derived_from" : "tosca.nodes.ResourceSource"
},
+ "source-default" : {
+ "description" : "This is Default Resource Source Node Type",
+ "version" : "1.0.0",
+ "properties" : { },
+ "derived_from" : "tosca.nodes.ResourceSource"
+ },
+ "source-input" : {
+ "description" : "This is Input Resource Source Node Type",
+ "version" : "1.0.0",
+ "properties" : { },
+ "derived_from" : "tosca.nodes.ResourceSource"
+ },
"source-rest" : {
"description" : "This is Rest Resource Source Node Type",
"version" : "1.0.0",
"properties" : {
"type" : {
- "required" : false,
+ "required" : true,
"type" : "string",
"constraints" : [ {
"valid_values" : [ "JSON" ]
"default" : "JSON"
},
"verb" : {
- "required" : false,
+ "required" : true,
"type" : "string",
"constraints" : [ {
"valid_values" : [ "GET", "POST", "DELETE", "PUT" ]
"version" : "1.0.0",
"derived_from" : "tosca.nodes.Root"
},
- "tosca.nodes.Workflow" : {
- "description" : "This is Directed Graph Node Type",
- "version" : "1.0.0",
- "derived_from" : "tosca.nodes.Root"
- },
"tosca.nodes.ResourceSource" : {
"description" : "TOSCA base type for Resource Sources",
"version" : "1.0.0",
},
"updated-by" : "adetalhouet",
"sources" : {
- "primary-config-data" : {
+ "config-data" : {
"type" : "source-rest",
"properties" : {
"type" : "JSON",
}
}
},
+ "golden-vf-module-type" : {
+ "tags" : "golden-vf-module-type",
+ "name" : "golden-vf-module-type",
+ "property" : {
+ "description" : "golden-vf-module-type",
+ "type" : "string"
+ },
+ "updated-by" : "adetalhouet",
+ "sources" : {
+ "processor-db" : {
+ "type" : "source-db",
+ "properties" : {
+ "type" : "SQL",
+ "query" : "select sdnctl.demo.value as value from sdnctl.demo where sdnctl.demo.id=:vfmoduleid",
+ "input-key-mapping" : {
+ "vfmoduleid" : "vf-module-number"
+ },
+ "output-key-mapping" : {
+ "golden-vf-module-type" : "value"
+ },
+ "key-dependencies" : [ "vf-module-number" ]
+ }
+ }
+ }
+ },
"hostname" : {
"tags" : "hostname",
"name" : "hostname",
"description" : "hostname",
"type" : "string"
},
- "updated-by" : "adetalhouet",
+ "updated-by" : "Singal, Kapil <ks220y@att.com>",
"sources" : {
"input" : {
"type" : "source-input"
"properties" : { }
}
}
- },
- "vf-module-type" : {
- "tags" : "vf-module-type",
- "name" : "vf-module-type",
- "property" : {
- "description" : "vf-module-type",
- "type" : "string"
- },
- "updated-by" : "adetalhouet",
- "sources" : {
- "processor-db" : {
- "type" : "source-processor-db",
- "properties" : {
- "type" : "SQL",
- "query" : "select sdnctl.demo.value as value from sdnctl.demo where sdnctl.demo.id=:vfmoduleid",
- "input-key-mapping" : {
- "vfmoduleid" : "vf-module-number"
- },
- "output-key-mapping" : {
- "vf-module-type" : "value"
- },
- "key-dependencies" : [ "vf-module-number" ]
- }
- }
- }
}
}
\ No newline at end of file
"property": {
"type": "string"
},
- "dictionary-name": "vf-module-type",
+ "dictionary-name": "golden-vf-module-type",
"dictionary-source": "processor-db",
"dependencies": [
"vf-module-number"
"dictionary-name": "vf-module-number",
"dictionary-source": "default",
"dependencies": [
-
+
]
},
{
"dictionary-name": "prefix-id",
"dictionary-source": "default",
"dependencies": [
-
+
]
},
{
"type": "dt-netbox-ip"
},
"dictionary-name": "create_netbox_ip",
- "dictionary-source": "primary-config-data",
+ "dictionary-source": "config-data",
"dependencies": [
"prefix-id"
]
}
-]
\ No newline at end of file
+]
-[
- {
- "name": "interface-description",
- "input-param": true,
- "property": {
- "type": "string"
- },
- "dictionary-name": "interface-description",
- "dictionary-source": "capability",
- "dependencies": [
- "vf-module-type"
- ]
+[{
+ "name": "interface-description",
+ "input-param": true,
+ "property": {
+ "type": "string"
},
- {
- "name": "interface-name",
- "input-param": true,
- "property": {
- "type": "string"
- },
- "dictionary-name": "interface-name",
- "dictionary-source": "input",
- "dependencies": [
-
- ]
+ "dictionary-name": "interface-description",
+ "dictionary-source": "capability",
+ "dependencies": [
+ "golden-vf-module-type"
+ ]
+}, {
+ "name": "interface-name",
+ "input-param": true,
+ "property": {
+ "type": "string"
},
- {
- "name": "unit-number",
- "input-param": true,
- "property": {
- "type": "string"
- },
- "dictionary-name": "unit-number",
- "dictionary-source": "input",
- "dependencies": [
-
- ]
+ "dictionary-name": "interface-name",
+ "dictionary-source": "input",
+ "dependencies": [
+
+ ]
+}, {
+ "name": "unit-number",
+ "input-param": true,
+ "property": {
+ "type": "string"
},
- {
- "name": "prefix-id",
- "input-param": true,
- "property": {
- "type": "string",
- "default": "6"
- },
- "dictionary-name": "prefix-id",
- "dictionary-source": "default",
- "dependencies": [
-
- ]
+ "dictionary-name": "unit-number",
+ "dictionary-source": "input",
+ "dependencies": [
+
+ ]
+}, {
+ "name": "prefix-id",
+ "input-param": true,
+ "property": {
+ "type": "string",
+ "default": "6"
},
- {
- "name": "vf-module-type",
- "input-param": true,
- "property": {
- "type": "string"
- },
- "dictionary-name": "vf-module-type",
- "dictionary-source": "processor-db",
- "dependencies": [
- "vf-module-number"
- ]
+ "dictionary-name": "prefix-id",
+ "dictionary-source": "default",
+ "dependencies": [
+
+ ]
+}, {
+ "name": "golden-vf-module-type",
+ "input-param": true,
+ "property": {
+ "type": "string"
},
- {
- "name": "vf-module-number",
- "input-param": true,
- "property": {
- "type": "string",
- "default": "3"
- },
- "dictionary-name": "vf-module-number",
- "dictionary-source": "default",
- "dependencies": [
-
- ]
+ "dictionary-name": "golden-vf-module-type",
+ "dictionary-source": "processor-db",
+ "dependencies": [
+ "vf-module-number"
+ ]
+}, {
+ "name": "vf-module-number",
+ "input-param": true,
+ "property": {
+ "type": "string",
+ "default": "3"
},
- {
- "name": "vfw_interface_ip",
- "input-param": true,
- "property": {
- "type": "dt-netbox-ip"
- },
- "dictionary-name": "create_netbox_ip",
- "dictionary-source": "primary-config-data",
- "dependencies": [
- "prefix-id"
- ]
- }
-]
\ No newline at end of file
+ "dictionary-name": "vf-module-number",
+ "dictionary-source": "default",
+ "dependencies": [
+
+ ]
+}, {
+ "name": "vfw_interface_ip",
+ "input-param": true,
+ "property": {
+ "type": "dt-netbox-ip"
+ },
+ "dictionary-name": "create_netbox_ip",
+ "dictionary-source": "config-data",
+ "dependencies": [
+ "prefix-id"
+ ]
+}]
"type": "source-default",\r
"properties": {}\r
},\r
- "primary-config-data": {\r
+ "config-data": {\r
"type": "source-rest",\r
"properties": {\r
"type": "JSON",\r
}\r
}\r
}\r
-}
\ No newline at end of file
+}\r
--- /dev/null
+{
+ "tags" : "oam-local-ipv4-address",
+ "name" : "create_netbox_ip",
+ "property" : {
+ "description" : "netbox ip",
+ "type" : "dt-netbox-ip"
+ },
+ "updated-by" : "adetalhouet",
+ "sources" : {
+ "config-data" : {
+ "type" : "source-rest",
+ "properties" : {
+ "type" : "JSON",
+ "verb" : "POST",
+ "endpoint-selector" : "ipam-1",
+ "url-path" : "/api/ipam/prefixes/$prefix-id/available-ips/",
+ "path" : "",
+ "input-key-mapping" : {
+ "prefix-id" : "prefix-id"
+ },
+ "output-key-mapping" : {
+ "address" : "address",
+ "id" : "id"
+ },
+ "key-dependencies" : [ "prefix-id" ]
+ }
+ }
+ }
+ }
"type": "source-default",\r
"properties": {}\r
},\r
- "primary-config-data": {\r
+ "config-data": {\r
"type": "source-rest",\r
"properties": {\r
"type": "JSON",\r
}\r
}\r
}\r
-}
\ No newline at end of file
+}\r
"type": "source-default",\r
"properties": {}\r
},\r
- "primary-config-data": {\r
+ "config-data": {\r
"type": "source-rest",\r
"properties": {\r
"type": "JSON",\r
}\r
}\r
}\r
-}
\ No newline at end of file
+}\r
--- /dev/null
+{
+ "tags": "oam-local-ipv4-address",
+ "name": "delete_netbox_ip",
+ "property": {
+ "description": "delete netbox ip",
+ "type": "string"
+ },
+ "updated-by": "adetalhouet",
+ "sources": {
+ "config-data": {
+ "type": "source-rest",
+ "properties": {
+ "type": "JSON",
+ "verb": "DELETE",
+ "endpoint-selector": "ipam-1",
+ "url-path": "/api/ipam/ip-addresses/$ip-address-id",
+ "path": "/address",
+ "input-key-mapping": {
+ "ip-address-id": "ip-address-id"
+ },
+ "output-key-mapping": {
+
+ },
+ "key-dependencies": [
+ "ip-address-id"
+ ]
+ }
+ }
+ }
+}
"type": "source-default",\r
"properties": {}\r
},\r
- "primary-config-data": {\r
+ "config-data": {\r
"type": "source-rest",\r
"properties": {\r
"type": "JSON",\r
}\r
}\r
}\r
-}
\ No newline at end of file
+}\r
--- /dev/null
+{
+ "tags" : "golden-vf-module-type",
+ "name" : "golden-vf-module-type",
+ "property" : {
+ "description" : "golden-vf-module-type",
+ "type" : "string"
+ },
+ "updated-by" : "adetalhouet",
+ "sources" : {
+ "processor-db" : {
+ "type" : "source-db",
+ "properties" : {
+ "type" : "SQL",
+ "query" : "select sdnctl.demo.value as value from sdnctl.demo where sdnctl.demo.id=:vfmoduleid",
+ "input-key-mapping" : {
+ "vfmoduleid" : "vf-module-number"
+ },
+ "output-key-mapping" : {
+ "golden-vf-module-type" : "value"
+ },
+ "key-dependencies" : [ "vf-module-number" ]
+ }
+ }
+ }
+}
"type": "source-default",\r
"properties": {}\r
},\r
- "primary-config-data": {\r
+ "config-data": {\r
"type": "source-rest",\r
"properties": {\r
"type": "JSON",\r
}\r
}\r
}\r
-}
\ No newline at end of file
+}\r
"input": {
"type": "source-input"
},
- "primary-config-data": {
+ "config-data": {
"type": "source-rest",
"properties": {
"type": "JSON",
}
}
}
-}
\ No newline at end of file
+}
"type": "source-default",\r
"properties": {}\r
},\r
- "primary-config-data": {\r
+ "config-data": {\r
"type": "source-rest",\r
"properties": {\r
"type": "JSON",\r
}\r
}\r
}\r
-}
\ No newline at end of file
+}\r
"type": "source-default",\r
"properties": {}\r
},\r
- "primary-config-data": {\r
+ "config-data": {\r
"type": "source-rest",\r
"properties": {\r
"type": "JSON",\r
}\r
}\r
}\r
-}
\ No newline at end of file
+}\r
"type": "source-default",\r
"properties": {}\r
},\r
- "primary-config-data": {\r
+ "config-data": {\r
"type": "source-rest",\r
"properties": {\r
"type": "JSON",\r
}\r
}\r
}\r
-}
\ No newline at end of file
+}\r
"type": "source-default",\r
"properties": {}\r
},\r
- "primary-config-data": {\r
+ "config-data": {\r
"type": "source-rest",\r
"properties": {\r
"type": "JSON",\r
}\r
}\r
}\r
-}
\ No newline at end of file
+}\r
"type": "source-default",\r
"properties": {}\r
},\r
- "primary-config-data": {\r
+ "config-data": {\r
"type": "source-rest",\r
"properties": {\r
"type": "JSON",\r
}\r
}\r
}\r
-}
\ No newline at end of file
+}\r
--- /dev/null
+{
+ "tags": "interface-description",
+ "name": "interface-description",
+ "property": {
+ "description": "interface-description",
+ "type": "string"
+ },
+ "updated-by": "adetalhouet",
+ "sources": {
+ "capability": {
+ "type": "source-capability",
+ "properties": {
+ "script-type": "jython",
+ "script-class-reference": "Scripts/python/DescriptionExample.py",
+ "instance-dependencies": []
+ }
+ }
+ }
+}
--- /dev/null
+{
+ "name" : "interface-name",
+ "tags" : "interface-name",
+ "updated-by" : "adetalhouet",
+ "property" : {
+ "description" : "interface-name",
+ "type" : "string"
+ },
+ "sources" : {
+ "input" : {
+ "type" : "source-input",
+ "properties" : { }
+ }
+ }
+}
\ No newline at end of file
"input": {
"type": "source-input"
},
- "primary-config-data": {
+ "config-data": {
"type": "source-rest",
"properties": {
"type": "JSON",
}
}
}
-}
\ No newline at end of file
+}
"type": "source-default",\r
"properties": {}\r
},\r
- "primary-config-data": {\r
+ "config-data": {\r
"type": "source-rest",\r
"properties": {\r
"type": "JSON",\r
}\r
}\r
}\r
-}
\ No newline at end of file
+}\r
"type": "source-default",\r
"properties": {}\r
},\r
- "primary-config-data": {\r
+ "config-data": {\r
"type": "source-rest",\r
"properties": {\r
"type": "JSON",\r
}\r
},\r
"processor-db": {\r
- "type": "source-processor-db",\r
+ "type": "source-db",\r
"properties": {\r
"endpoint-selector": "dynamic-db-source",\r
"type": "SQL",\r
}\r
}\r
}\r
-}
\ No newline at end of file
+}\r
},
"updated-by": "brindasanth@onap.com",
"sources": {
- "primary-config-data": {
+ "config-data": {
"type": "source-rest",
"properties": {
"type": "JSON",
}
}
}
-}
\ No newline at end of file
+}
"type": "source-default",\r
"properties": {}\r
},\r
- "primary-config-data": {\r
+ "config-data": {\r
"type": "source-rest",\r
"properties": {\r
"type": "JSON",\r
}\r
}\r
}\r
-}
\ No newline at end of file
+}\r
"type": "source-default",\r
"properties": {}\r
},\r
- "primary-config-data": {\r
+ "config-data": {\r
"type": "source-rest",\r
"properties": {\r
"type": "JSON",\r
}\r
}\r
}\r
-}
\ No newline at end of file
+}\r
}
},
"processor-db" : {
- "type" : "source-processor-db",
+ "type" : "source-db",
"properties" : {
"type" : "SQL",
"query" : "select sdnctl.VF_MODEL.nf_role as vf_model_role from sdnctl.VF_MODEL where sdnctl.VF_MODEL.customization_uuid=:vnfmodelcustomizationuuid",
}
}
}
-}
\ No newline at end of file
+}
"properties": {}\r
},\r
"processor-db": {\r
- "type": "source-processor-db",\r
+ "type": "source-db",\r
"properties": {\r
"endpoint-selector": "dynamic-db-source",\r
"type": "SQL",\r
}\r
}\r
}\r
-}
\ No newline at end of file
+}\r
"type": "source-default",\r
"properties": {}\r
},\r
- "primary-config-data": {\r
+ "config-data": {\r
"type": "source-rest",\r
"properties": {\r
"type": "JSON",\r
}\r
},\r
"processor-db": {\r
- "type": "source-processor-db",\r
+ "type": "source-db",\r
"properties": {\r
"endpoint-selector": "dynamic-db-source",\r
"type": "SQL",\r
}\r
}\r
}\r
-}
\ No newline at end of file
+}\r
"type": "source-default",\r
"properties": {}\r
},\r
- "primary-config-data": {\r
+ "config-data": {\r
"type": "source-rest",\r
"properties": {\r
"type": "JSON",\r
}\r
}\r
\r
- }
\ No newline at end of file
+ }\r
"type": "source-default",\r
"properties": {}\r
},\r
- "primary-config-data": {\r
+ "config-data": {\r
"type": "source-rest",\r
"properties": {\r
"type": "JSON",\r
}\r
}\r
}\r
-}
\ No newline at end of file
+}\r
"type": "source-default",\r
"properties": {}\r
},\r
- "primary-config-data": {\r
+ "config-data": {\r
"type": "source-rest",\r
"properties": {\r
"type": "JSON",\r
}\r
}\r
}\r
-}
\ No newline at end of file
+}\r
"type": "source-default",\r
"properties": {}\r
},\r
- "primary-config-data": {\r
+ "config-data": {\r
"type": "source-rest",\r
"properties": {\r
"type": "JSON",\r
},\r
\r
"processor-db": {\r
- "type": "source-processor-db",\r
+ "type": "source-db",\r
"properties": {\r
"endpoint-selector": "dynamic-db-source",\r
"type": "SQL",\r
}\r
}\r
}\r
-
\ No newline at end of file
"type": "source-default",\r
"properties": {}\r
},\r
- "primary-config-data": {\r
+ "config-data": {\r
"type": "source-rest",\r
"properties": {\r
"type": "JSON",\r
}\r
}\r
}\r
-
\ No newline at end of file
--- /dev/null
+{
+ "tags": "prefix-id",
+ "name": "prefix-id",
+ "property" :{
+ "description": "prefix-id",
+ "type": "integer"
+ },
+ "updated-by": "adetalhouet",
+ "sources": {
+ "default": {
+ "type": "source-default",
+ "properties": {
+ }
+ }
+ }
+}
\ No newline at end of file
"properties": {}\r
},\r
"processor-db": {\r
- "type": "source-processor-db",\r
+ "type": "source-db",\r
"properties": {\r
"endpoint-selector": "dynamic-db-source",\r
"type": "SQL",\r
}\r
}\r
}\r
-}
\ No newline at end of file
+}\r
"type": "source-default",\r
"properties": {}\r
},\r
- "primary-config-data": {\r
+ "config-data": {\r
"type": "source-rest",\r
"properties": {\r
"type": "JSON",\r
}\r
},\r
"processor-db": {\r
- "type": "source-processor-db",\r
+ "type": "source-db",\r
"properties": {\r
"endpoint-selector": "dynamic-db-source",\r
"type": "SQL",\r
}\r
}\r
}\r
-}
\ No newline at end of file
+}\r
"type": "source-default",\r
"properties": {}\r
},\r
- "primary-config-data": {\r
+ "config-data": {\r
"type": "source-rest",\r
"properties": {\r
"type": "JSON",\r
}\r
},\r
"processor-db": {\r
- "type": "source-processor-db",\r
+ "type": "source-db",\r
"properties": {\r
"endpoint-selector": "dynamic-db-source",\r
"type": "SQL",\r
}\r
}\r
}\r
-}
\ No newline at end of file
+}\r
},
"sources" : {
"processor-db" : {
- "type" : "source-processor-db",
+ "type" : "source-db",
"properties" : {
"type" : "SQL",
"query" : "select sdnctl.IPAM_IP_POOL.prefix_id as prefix_id from sdnctl.IPAM_IP_POOL where description = \"protected\"",
}
}
}
-}
\ No newline at end of file
+}
},
"sources" : {
"processor-db" : {
- "type" : "source-processor-db",
+ "type" : "source-db",
"properties" : {
"type" : "SQL",
"query" : "select sdnctl.IPAM_IP_POOL.prefix as prefix from sdnctl.IPAM_IP_POOL where description = \"protected\"",
}
}
}
-}
\ No newline at end of file
+}
"type": "source-default",\r
"properties": {}\r
},\r
- "primary-config-data": {\r
+ "config-data": {\r
"type": "source-rest",\r
"properties": {\r
"type": "JSON",\r
}\r
}\r
}\r
-}
\ No newline at end of file
+}\r
"type": "source-default",\r
"properties": {}\r
},\r
- "primary-config-data": {\r
+ "config-data": {\r
"type": "source-rest",\r
"properties": {\r
"type": "JSON",\r
}\r
}\r
\r
- }
\ No newline at end of file
+ }\r
-{\r
- "name": "sample-db-source",\r
- "property" :{\r
- "description": "name of the ",\r
- "type": "string"\r
- },\r
- "updated-by": "brindasanth@onap.com",\r
- "tags": "processor-db-source, brindasanth@onap.com",\r
- "sources": {\r
- "processor-db": {\r
- "type": "source-processor-db",\r
- "properties": {\r
- "query": "SELECT db-country, db-state FROM DEVICE_PROFILE WHERE profile_name = :profile_name",\r
- "input-key-mapping": {\r
- "profile_name": "profile_name"\r
- },\r
- "output-key-mapping": {\r
- "db-country": "country",\r
- "db-state": "state"\r
- }\r
- }\r
- }\r
- }\r
-}
\ No newline at end of file
+{
+ "name": "sample-db-source",
+ "property" :{
+ "description": "name of the ",
+ "type": "string"
+ },
+ "updated-by": "brindasanth@onap.com",
+ "tags": "processor-db, brindasanth@onap.com",
+ "sources": {
+ "processor-db": {
+ "type": "source-db",
+ "properties": {
+ "query": "SELECT db-country, db-state FROM DEVICE_PROFILE WHERE profile_name = :profile_name",
+ "input-key-mapping": {
+ "profile_name": "profile_name"
+ },
+ "output-key-mapping": {
+ "db-country": "country",
+ "db-state": "state"
+ }
+ }
+ }
+ }
+}
},\r
"updated-by": "brindasanth@onap.com",\r
"sources": {\r
- "primary-config-data": {\r
+ "config-data": {\r
"type": "source-rest",\r
"properties": {\r
"type": "JSON",\r
}\r
}\r
}\r
-}
\ No newline at end of file
+}\r
},\r
"updated-by": "brindasanth@onap.com",\r
"sources": {\r
- "primary-config-data": {\r
+ "config-data": {\r
"type": "source-rest",\r
"properties": {\r
"type": "JSON",\r
}\r
}\r
}\r
-}
\ No newline at end of file
+}\r
"type": "source-default",\r
"properties": {}\r
},\r
- "primary-config-data": {\r
+ "config-data": {\r
"type": "source-rest",\r
"properties": {\r
"type": "JSON",\r
}\r
}\r
\r
- }
\ No newline at end of file
+ }\r
"properties" : { }
},
"any-db": {
- "type": "source-processor-db",
+ "type": "source-db",
"properties": {
"query": "SELECT artifact_name FROM BLUEPRINT_RUNTIME where artifact_version=\"1.0.0\"",
"input-key-mapping": {
}
},
"processor-db": {
- "type": "source-processor-db",
+ "type": "source-db",
"properties": {
"query": "SELECT artifact_name FROM BLUEPRINT_RUNTIME where artifact_version=\"1.0.0\"",
"input-key-mapping": {
}
}
}
-}
\ No newline at end of file
+}
--- /dev/null
+{
+ "tags": "unit-number",
+ "name": "unit-number",
+ "property": {
+ "description": "unit-number",
+ "type": "string"
+ },
+ "updated-by": "adetalhouet",
+ "sources": {
+ "input": {
+ "type": "source-input"
+ }
+ }
+ }
\ No newline at end of file
},
"sources" : {
"processor-db" : {
- "type" : "source-processor-db",
+ "type" : "source-db",
"properties" : {
"type" : "SQL",
"query" : "select sdnctl.IPAM_IP_POOL.prefix_id as prefix_id from sdnctl.IPAM_IP_POOL where description = \"unprotected\"",
}
}
}
-}
\ No newline at end of file
+}
},
"sources" : {
"processor-db" : {
- "type" : "source-processor-db",
+ "type" : "source-db",
"properties" : {
"type" : "SQL",
"query" : "select sdnctl.IPAM_IP_POOL.prefix as prefix from sdnctl.IPAM_IP_POOL where description = \"unprotected\"",
}
}
}
-}
\ No newline at end of file
+}
"type": "source-default",\r
"properties": {}\r
},\r
- "primary-config-data": {\r
+ "config-data": {\r
"type": "source-rest",\r
"properties": {\r
"type": "JSON",\r
}\r
}\r
\r
- }
\ No newline at end of file
+ }\r
"type": "source-default",\r
"properties": {}\r
},\r
- "primary-config-data": {\r
+ "config-data": {\r
"type": "source-rest",\r
"properties": {\r
"type": "JSON",\r
}\r
}\r
}\r
-}
\ No newline at end of file
+}\r
"type": "source-default",\r
"properties": {}\r
},\r
- "primary-config-data": {\r
+ "config-data": {\r
"type": "source-rest",\r
"properties": {\r
"type": "JSON",\r
}\r
}\r
}\r
-}
\ No newline at end of file
+}\r
"type": "source-default",\r
"properties": {}\r
},\r
- "primary-config-data": {\r
+ "config-data": {\r
"type": "source-rest",\r
"properties": {\r
"type": "JSON",\r
}\r
}\r
\r
- }
\ No newline at end of file
+ }\r
"type": "source-default",\r
"properties": {}\r
},\r
- "primary-config-data": {\r
+ "config-data": {\r
"type": "source-rest",\r
"properties": {\r
"type": "JSON",\r
}\r
}\r
}\r
-}
\ No newline at end of file
+}\r
"properties": {}\r
},\r
"processor-db": {\r
- "type": "source-processor-db",\r
+ "type": "source-db",\r
"properties": {\r
- "endpoint-selector": "dynamic-db-source",\r
"type": "SQL",\r
"query": "select sdnctl.VF_MODULE_MODEL.vf_module_label as vf_module_label from sdnctl.VF_MODULE_MODEL where sdnctl.VF_MODULE_MODEL.customization_uuid=:customizationid",\r
"input-key-mapping": {\r
}\r
}\r
}\r
-}
\ No newline at end of file
+}\r
--- /dev/null
+{
+ "tags": "vf-module-number",
+ "name": "vf-module-number",
+ "property" :{
+ "description": "vf-module-number",
+ "type": "string"
+ },
+ "updated-by": "adetalhouet",
+ "sources": {
+ "default": {
+ "type": "source-default",
+ "properties": {
+ }
+ }
+ }
+}
\ No newline at end of file
"properties": {}\r
},\r
"processor-db": {\r
- "type": "source-processor-db",\r
+ "type": "source-db",\r
"properties": {\r
- "endpoint-selector": "dynamic-db-source",\r
"type": "SQL",\r
"query": "select vf_module_type as vf_module_type from sdnctl.VF_MODULE_MODEL where customization_uuid=:customizationid",\r
"input-key-mapping": {\r
}\r
}\r
}\r
-}
\ No newline at end of file
+}\r
}
},
"processor-db" : {
- "type" : "source-processor-db",
+ "type" : "source-db",
"properties" : {
"type" : "SQL",
"query" : "select sdnctl.VF_MODEL.naming_policy as vf_naming_policy from sdnctl.VF_MODEL where sdnctl.VF_MODEL.customization_uuid=:vnf_model_customization_uuid",
}
}
}
-}
\ No newline at end of file
+}
},
"sources" : {
"processor-db" : {
- "type" : "source-processor-db",
+ "type" : "source-db",
"properties" : {
"type" : "SQL",
"query" : "select sdnctl.VF_MODEL.nf_code as vf_nf_code from sdnctl.VF_MODEL where sdnctl.VF_MODEL.customization_uuid=:customizationid",
}
}
}
-}
\ No newline at end of file
+}
"properties": {}\r
},\r
"processor-db": {\r
- "type": "source-processor-db",\r
+ "type": "source-db",\r
"properties": {\r
"endpoint-selector": "dynamic-db-source",\r
"type": "SQL",\r
}\r
}\r
}\r
-}
\ No newline at end of file
+}\r
"properties" : {
}
},
- "primary-config-data" : {
+ "config-data" : {
"type" : "source-rest",
"properties" : {
"type" : "JSON",
"properties" : {
}
},
- "primary-config-data" : {
+ "config-data" : {
"type" : "source-rest",
"properties" : {
"type" : "JSON",
"type": "source-default",\r
"properties": {}\r
},\r
- "primary-config-data": {\r
+ "config-data": {\r
"type": "source-rest",\r
"properties": {\r
"type": "JSON",\r
}\r
}\r
}\r
-}
\ No newline at end of file
+}\r
"type": "source-default",\r
"properties": {}\r
},\r
- "primary-config-data": {\r
+ "config-data": {\r
"type": "source-rest",\r
"properties": {\r
"type": "JSON",\r
}\r
}\r
}\r
-}
\ No newline at end of file
+}\r
"type": "source-default",\r
"properties": {}\r
},\r
- "primary-config-data": {\r
+ "config-data": {\r
"type": "source-rest",\r
"properties": {\r
"type": "JSON",\r
}\r
}\r
}\r
-}
\ No newline at end of file
+}\r
"type": "source-default",\r
"properties": {}\r
},\r
- "primary-config-data": {\r
+ "config-data": {\r
"type": "source-rest",\r
"properties": {\r
"type": "JSON",\r
}\r
}\r
}\r
-}
\ No newline at end of file
+}\r
"type": "source-default",\r
"properties": {}\r
},\r
- "primary-config-data": {\r
+ "config-data": {\r
"type": "source-rest",\r
"properties": {\r
"type": "JSON",\r
}\r
}\r
}\r
-
\ No newline at end of file
"type": "source-default",\r
"properties": {}\r
},\r
- "primary-config-data": {\r
+ "config-data": {\r
"type": "source-rest",\r
"properties": {\r
"type": "JSON",\r
}\r
}\r
\r
- }
\ No newline at end of file
+ }\r
"type": "source-default",\r
"properties": {}\r
},\r
- "primary-config-data": {\r
+ "config-data": {\r
"type": "source-rest",\r
"properties": {\r
"type": "JSON",\r
}\r
}\r
}\r
-}
\ No newline at end of file
+}\r
"type": "source-default",\r
"properties": {}\r
},\r
- "primary-config-data": {\r
+ "config-data": {\r
"type": "source-rest",\r
"properties": {\r
"type": "JSON",\r
}\r
}\r
}\r
-}
\ No newline at end of file
+}\r
"type": "source-default",\r
"properties": {}\r
},\r
- "primary-config-data": {\r
+ "config-data": {\r
"type": "source-rest",\r
"properties": {\r
"type": "JSON",\r
}\r
},\r
"processor-db": {\r
- "type": "source-processor-db",\r
+ "type": "source-db",\r
"properties": {\r
"endpoint-selector": "dynamic-db-source",\r
"type": "SQL",\r
}\r
}\r
}\r
-}
\ No newline at end of file
+}\r
"type": "source-default",\r
"properties": {}\r
},\r
- "primary-config-data": {\r
+ "config-data": {\r
"type": "source-rest",\r
"properties": {\r
"type": "JSON",\r
}\r
}\r
}\r
-}
\ No newline at end of file
+}\r
"properties": {}\r
},\r
"processor-db": {\r
- "type": "source-processor-db",\r
+ "type": "source-db",\r
"properties": {\r
"endpoint-selector": "dynamic-db-source",\r
"type": "SQL",\r
}\r
}\r
}\r
-}
\ No newline at end of file
+}\r
"type": "source-default",\r
"properties": {}\r
},\r
- "primary-config-data": {\r
+ "config-data": {\r
"type": "source-rest",\r
"properties": {\r
"type": "JSON",\r
}\r
}\r
}\r
-
\ No newline at end of file
"type": "source-default",\r
"properties": {}\r
},\r
- "primary-config-data": {\r
+ "config-data": {\r
"type": "source-rest",\r
"properties": {\r
"type": "JSON",\r
]\r
}\r
},\r
- "primary-aai-data": {\r
+ "aai-data": {\r
"type": "source-rest",\r
"properties": {\r
"type": "JSON",\r
}\r
}\r
}\r
-}
\ No newline at end of file
+}\r
"properties": {
}
},
- "primary-config-data" : {
+ "config-data" : {
"type" : "source-rest",
"properties" : {
"type" : "JSON",
"properties": {}\r
},\r
"processor-db": {\r
- "type": "source-processor-db",\r
+ "type": "source-db",\r
"properties": {\r
"endpoint-selector": "dynamic-db-source",\r
"type": "SQL",\r
}\r
}\r
}\r
-}
\ No newline at end of file
+}\r
"properties": {}\r
},\r
"processor-db": {\r
- "type": "source-processor-db",\r
+ "type": "source-db",\r
"properties": {\r
"endpoint-selector": "dynamic-db-source",\r
"type": "SQL",\r
}\r
}\r
}\r
-}
\ No newline at end of file
+}\r
"type": "source-default",\r
"properties": {}\r
},\r
- "primary-config-data": {\r
+ "config-data": {\r
"type": "source-rest",\r
"properties": {\r
"type": "JSON",\r
}\r
}\r
}\r
-}
\ No newline at end of file
+}\r
"type": "source-default",\r
"properties": {}\r
},\r
- "primary-config-data": {\r
+ "config-data": {\r
"type": "source-rest",\r
"properties": {\r
"type": "JSON",\r
}\r
}\r
}\r
-}
\ No newline at end of file
+}\r
"type": "source-default",\r
"properties": {}\r
},\r
- "primary-config-data": {\r
+ "config-data": {\r
"type": "source-rest",\r
"properties": {\r
"type": "JSON",\r
}\r
}\r
}\r
-}
\ No newline at end of file
+}\r
"type": "source-default",\r
"properties": {}\r
},\r
- "primary-config-data": {\r
+ "config-data": {\r
"type": "source-rest",\r
"properties": {\r
"type": "JSON",\r
}\r
}\r
}\r
-}
\ No newline at end of file
+}\r
"properties" : {
}
},
- "primary-config-data" : {
+ "config-data" : {
"type" : "source-rest",
"properties" : {
"type" : "JSON",
"properties" : {
}
},
- "primary-config-data" : {
+ "config-data" : {
"type" : "source-rest",
"properties" : {
"type" : "JSON",
},
"updated-by" : "adetalhouet",
"sources" : {
- "primary-config-data" : {
+ "config-data" : {
"type" : "source-rest",
"properties" : {
"type" : "JSON",
}
}
}
- }
\ No newline at end of file
+ }
},
"updated-by": "adetalhouet",
"sources": {
- "primary-config-data": {
+ "config-data": {
"type": "source-rest",
"properties": {
"type": "JSON",
}
}
}
-}
\ No newline at end of file
+}
"updated-by": "adetalhouet",
"sources": {
"processor-db": {
- "type": "source-processor-db",
+ "type": "source-db",
"properties": {
"type": "SQL",
"query": "select sdnctl.demo.value as value from sdnctl.demo where sdnctl.demo.id=:vfmoduleid",
}
}
}
-}
\ No newline at end of file
+}
create_netbox_ip_address code
=============================
-.. code-block:: json
- :linenos:
-
- {
- "tags" : "oam-local-ipv4-address",
- "name" : "create_netbox_ip",
- "property" : {
- "description" : "netbox ip",
- "type" : "dt-netbox-ip"
- },
- "updated-by" : "adetalhouet",
- "sources" : {
- "primary-config-data" : {
- "type" : "source-rest",
- "properties" : {
- "type" : "JSON",
- "verb" : "POST",
- "endpoint-selector" : "ipam-1",
- "url-path" : "/api/ipam/prefixes/$prefixId/available-ips/",
- "path" : "",
- "input-key-mapping" : {
- "prefixId" : "prefix-id"
- },
- "output-key-mapping" : {
- "address" : "address",
- "id" : "id"
- },
- "key-dependencies" : [ "prefix-id" ]
- }
- }
- }
- }
\ No newline at end of file
+{
+ "tags" : "oam-local-ipv4-address",
+ "name" : "create_netbox_ip",
+ "property" : {
+ "description" : "netbox ip",
+ "type" : "dt-netbox-ip"
+ },
+ "updated-by" : "adetalhouet",
+ "sources" : {
+ "config-data" : {
+ "type" : "source-rest",
+ "properties" : {
+ "type" : "JSON",
+ "verb" : "POST",
+ "endpoint-selector" : "ipam-1",
+ "url-path" : "/api/ipam/prefixes/$prefixId/available-ips/",
+ "path" : "",
+ "input-key-mapping" : {
+ "prefixId" : "prefix-id"
+ },
+ "output-key-mapping" : {
+ "address" : "address",
+ "id" : "id"
+ },
+ "key-dependencies" : [ "prefix-id" ]
+ }
+ }
+ }
+ }
### START -Controller Blueprints Properties
# Load Resource Source Mappings
-resourceSourceMappings=processor-db=source-processor-db,primary-db=source-processor-db,input=source-input,default=source-default,primary-config-data=source-rest,primary-aai-data=source-rest,capability=source-capability
+resourceSourceMappings=processor-db=source-db,input=source-input,default=source-default,config-data=source-rest,aai-data=source-rest,capability=source-capability
# Controller Blueprints Core Configuration
controllerblueprints.blueprintDeployPath=blueprints/deploy
blueprintsprocessor.blueprintArchivePath=blueprints/archive
blueprintsprocessor.blueprintWorkingPath=blueprints/work
# Primary Database Configuration
-blueprintsprocessor.db.primary.url=jdbc:mysql://localhost:3306/sdnctl
-blueprintsprocessor.db.primary.username=sdnctl
-blueprintsprocessor.db.primary.password=sdnctl
-blueprintsprocessor.db.primary.driverClassName=org.mariadb.jdbc.Driver
-blueprintsprocessor.db.primary.hibernateHbm2ddlAuto=update
-blueprintsprocessor.db.primary.hibernateDDLAuto=none
-blueprintsprocessor.db.primary.hibernateNamingStrategy=org.hibernate.cfg.ImprovedNamingStrategy
-blueprintsprocessor.db.primary.hibernateDialect=org.hibernate.dialect.MySQL5InnoDBDialect
+blueprintsprocessor.db.url=jdbc:mysql://localhost:3306/sdnctl
+blueprintsprocessor.db.username=sdnctl
+blueprintsprocessor.db.password=sdnctl
+blueprintsprocessor.db.driverClassName=org.mariadb.jdbc.Driver
+blueprintsprocessor.db.hibernateHbm2ddlAuto=update
+blueprintsprocessor.db.hibernateDDLAuto=none
+blueprintsprocessor.db.hibernateNamingStrategy=org.hibernate.cfg.ImprovedNamingStrategy
+blueprintsprocessor.db.hibernateDialect=org.hibernate.dialect.MySQL5InnoDBDialect
# Python executor
### If testing in docker, use the absolute paths as Docker view of filesystem will not respect relative paths.
# Web server config
### START -Controller Blueprints Properties
# Load Resource Source Mappings
-resourceSourceMappings=processor-db=source-processor-db,primary-db=source-processor-db,input=source-input,default=source-default,primary-config-data=source-rest,primary-aai-data=source-rest,capability=source-capability
+resourceSourceMappings=processor-db=source-db,input=source-input,default=source-default,config-data=source-rest,aai-data=source-rest,capability=source-capability
# Controller Blueprints Core Configuration
controllerblueprints.blueprintDeployPath=/opt/app/onap/blueprints/deploy
blueprintsprocessor.blueprintWorkingPath=/opt/app/onap/blueprints/working
# Primary Database Configuration
-blueprintsprocessor.db.primary.url=jdbc:mysql://db:3306/sdnctl
-blueprintsprocessor.db.primary.username=sdnctl
-blueprintsprocessor.db.primary.password=sdnctl
-blueprintsprocessor.db.primary.driverClassName=org.mariadb.jdbc.Driver
-blueprintsprocessor.db.primary.hibernateHbm2ddlAuto=update
-blueprintsprocessor.db.primary.hibernateDDLAuto=update
-blueprintsprocessor.db.primary.hibernateNamingStrategy=org.hibernate.cfg.ImprovedNamingStrategy
-blueprintsprocessor.db.primary.hibernateDialect=org.hibernate.dialect.MySQL5InnoDBDialect
+blueprintsprocessor.db.url=jdbc:mysql://db:3306/sdnctl
+blueprintsprocessor.db.username=sdnctl
+blueprintsprocessor.db.password=sdnctl
+blueprintsprocessor.db.driverClassName=org.mariadb.jdbc.Driver
+blueprintsprocessor.db.hibernateHbm2ddlAuto=update
+blueprintsprocessor.db.hibernateDDLAuto=update
+blueprintsprocessor.db.hibernateNamingStrategy=org.hibernate.cfg.ImprovedNamingStrategy
+blueprintsprocessor.db.hibernateDialect=org.hibernate.dialect.MySQL5InnoDBDialect
# Python executor
blueprints.processor.functions.python.executor.executionPath=/opt/app/onap/scripts/jython/ccsdk_blueprints
# Primary Config Data REST client settings
-blueprintsprocessor.restclient.primary-config-data.type=basic-auth
-blueprintsprocessor.restclient.primary-config-data.url=http://sdnc:8282
-blueprintsprocessor.restclient.primary-config-data.username=admin
-blueprintsprocessor.restclient.primary-config-data.password=Kp8bJ4SXszM0WXlhak3eHlcse2gAw84vaoGGmJvUy2U
+blueprintsprocessor.restclient.config-data.type=basic-auth
+blueprintsprocessor.restclient.config-data.url=http://sdnc:8282
+blueprintsprocessor.restclient.config-data.username=admin
+blueprintsprocessor.restclient.config-data.password=Kp8bJ4SXszM0WXlhak3eHlcse2gAw84vaoGGmJvUy2U
# Primary AAI Data REST Client settings
-blueprintsprocessor.restclient.primary-aai-data.type=basic-auth
-blueprintsprocessor.restclient.primary-aai-data.url=https://aai.onap:8443
-blueprintsprocessor.restclient.primary-aai-data.username=aai@aai.onap.org
-blueprintsprocessor.restclient.primary-aai-data.password=demo123456!
+blueprintsprocessor.restclient.aai-data.type=basic-auth
+blueprintsprocessor.restclient.aai-data.url=https://aai.onap:8443
+blueprintsprocessor.restclient.aai-data.username=aai@aai.onap.org
+blueprintsprocessor.restclient.aai-data.password=demo123456!
# Kafka-message-lib Configuration
blueprintsprocessor.messageclient.self-service-api.topic=producer.t
blueprintsprocessor.grpcEnable=true
blueprintsprocessor.grpcPort=0
-blueprintsprocessor.db.primary.url=jdbc:h2:mem:testdb;MODE=MySQL;DB_CLOSE_DELAY=-1
-blueprintsprocessor.db.primary.username=sa
-blueprintsprocessor.db.primary.password=
-blueprintsprocessor.db.primary.driverClassName=org.h2.Driver
-blueprintsprocessor.db.primary.hibernateHbm2ddlAuto=create-drop
-blueprintsprocessor.db.primary.hibernateDDLAuto=update
-blueprintsprocessor.db.primary.hibernateNamingStrategy=org.hibernate.cfg.ImprovedNamingStrategy
-blueprintsprocessor.db.primary.hibernateDialect=org.hibernate.dialect.H2Dialect
+blueprintsprocessor.db.url=jdbc:h2:mem:testdb;MODE=MySQL;DB_CLOSE_DELAY=-1
+blueprintsprocessor.db.username=sa
+blueprintsprocessor.db.password=
+blueprintsprocessor.db.driverClassName=org.h2.Driver
+blueprintsprocessor.db.hibernateHbm2ddlAuto=create-drop
+blueprintsprocessor.db.hibernateDDLAuto=update
+blueprintsprocessor.db.hibernateNamingStrategy=org.hibernate.cfg.ImprovedNamingStrategy
+blueprintsprocessor.db.hibernateDialect=org.hibernate.dialect.H2Dialect
# The properties bellow are set programmatically
#blueprintsprocessor.blueprintDeployPath=
blueprintsprocessor.cliExecutor.enabled=true
blueprintprocessor.netconfExecutor.enabled=true
-blueprintsprocessor.restconfEnabled=true
\ No newline at end of file
+blueprintsprocessor.restconfEnabled=true
server.port=8080
### START -Controller Blueprints Properties
# Load Resource Source Mappings
-resourceSourceMappings=processor-db=source-processor-db,primary-db=source-processor-db,input=source-input,default=source-default,primary-config-data=source-rest,primary-aai-data=source-rest,capability=source-capability
+resourceSourceMappings=processor-db=source-db,input=source-input,default=source-default,config-data=source-rest,aai-data=source-rest,capability=source-capability
# Controller Blueprints Core Configuration
controllerblueprints.blueprintDeployPath=/opt/app/onap/blueprints/deploy
blueprintsprocessor.blueprintArchivePath=/opt/app/onap/blueprints/archive
blueprintsprocessor.blueprintWorkingPath=/opt/app/onap/blueprints/work
# Primary Database Configuration
-blueprintsprocessor.db.primary.url=jdbc:h2:mem:testdb;DB_CLOSE_ON_EXIT=FALSE
-blueprintsprocessor.db.primary.username=sa
-blueprintsprocessor.db.primary.password=
-blueprintsprocessor.db.primary.driverClassName=org.h2.Driver
-blueprintsprocessor.db.primary.hibernateHbm2ddlAuto=create-drop
-blueprintsprocessor.db.primary.hibernateDDLAuto=update
-blueprintsprocessor.db.primary.hibernateNamingStrategy=org.hibernate.cfg.ImprovedNamingStrategy
-blueprintsprocessor.db.primary.hibernateDialect=org.hibernate.dialect.H2Dialect
+blueprintsprocessor.db.url=jdbc:h2:mem:testdb;DB_CLOSE_ON_EXIT=FALSE
+blueprintsprocessor.db.username=sa
+blueprintsprocessor.db.password=
+blueprintsprocessor.db.driverClassName=org.h2.Driver
+blueprintsprocessor.db.hibernateHbm2ddlAuto=create-drop
+blueprintsprocessor.db.hibernateDDLAuto=update
+blueprintsprocessor.db.hibernateNamingStrategy=org.hibernate.cfg.ImprovedNamingStrategy
+blueprintsprocessor.db.hibernateDialect=org.hibernate.dialect.H2Dialect
# Python executor
blueprints.processor.functions.python.executor.executionPath=/opt/app/onap/scripts/jython/ccsdk_blueprints
blueprints.processor.functions.python.executor.modulePaths=/opt/app/onap/scripts/jython/ccsdk_blueprints
MYSQL_DATABASE: sdnctl\r
MYSQL_USER: sdnctl\r
MYSQL_PASSWORD: sdnctl\r
- blueprints-processor:\r
- depends_on:\r
- - db\r
- image: onap/ccsdk-blueprintsprocessor:latest\r
- container_name: bp-rest\r
- ports:\r
- - "8000:8080"\r
- restart: always\r
- environment:\r
- APPLICATIONNAME: BlueprintsProcessor\r
- BUNDLEVERSION: 1.0.0\r
- APP_CONFIG_HOME: /opt/app/onap/config\r
- STICKYSELECTORKEY:\r
- ENVCONTEXT: dev
\ No newline at end of file
# See the License for the specific language governing permissions and
# limitations under the License.
#
-blueprintsprocessor.db.primary.url=jdbc:h2:mem:testdb;DB_CLOSE_DELAY=-1
-blueprintsprocessor.db.primary.username=sa
-blueprintsprocessor.db.primary.password=
-blueprintsprocessor.db.primary.driverClassName=org.h2.Driver
-blueprintsprocessor.db.primary.hibernateHbm2ddlAuto=create-drop
-blueprintsprocessor.db.primary.hibernateDDLAuto=update
-blueprintsprocessor.db.primary.hibernateNamingStrategy=org.hibernate.cfg.ImprovedNamingStrategy
-blueprintsprocessor.db.primary.hibernateDialect=org.hibernate.dialect.H2Dialect
+blueprintsprocessor.db.url=jdbc:h2:mem:testdb;DB_CLOSE_DELAY=-1
+blueprintsprocessor.db.username=sa
+blueprintsprocessor.db.password=
+blueprintsprocessor.db.driverClassName=org.h2.Driver
+blueprintsprocessor.db.hibernateHbm2ddlAuto=create-drop
+blueprintsprocessor.db.hibernateDDLAuto=update
+blueprintsprocessor.db.hibernateNamingStrategy=org.hibernate.cfg.ImprovedNamingStrategy
+blueprintsprocessor.db.hibernateDialect=org.hibernate.dialect.H2Dialect
# Controller Blueprints Core Configuration
blueprintsprocessor.blueprintDeployPath=./target/blueprints/deploy
blueprintsprocessor.blueprintArchivePath=./target/blueprints/archive
blueprints.processor.functions.python.executor.modulePaths=./../../../../components/scripts/python/ccsdk_blueprints
# Executor Options
-blueprintprocessor.netconfExecutor.enabled=true
\ No newline at end of file
+blueprintprocessor.netconfExecutor.enabled=true
# See the License for the specific language governing permissions and
# limitations under the License.
-blueprintsprocessor.db.primary.url=jdbc:h2:mem:testdb;DB_CLOSE_DELAY=-1
-blueprintsprocessor.db.primary.username=sa
-blueprintsprocessor.db.primary.password=
-blueprintsprocessor.db.primary.driverClassName=org.h2.Driver
-blueprintsprocessor.db.primary.hibernateHbm2ddlAuto=create-drop
-blueprintsprocessor.db.primary.hibernateDDLAuto=update
-blueprintsprocessor.db.primary.hibernateNamingStrategy=org.hibernate.cfg.ImprovedNamingStrategy
-blueprintsprocessor.db.primary.hibernateDialect=org.hibernate.dialect.H2Dialect
+blueprintsprocessor.db.url=jdbc:h2:mem:testdb;DB_CLOSE_DELAY=-1
+blueprintsprocessor.db.username=sa
+blueprintsprocessor.db.password=
+blueprintsprocessor.db.driverClassName=org.h2.Driver
+blueprintsprocessor.db.hibernateHbm2ddlAuto=create-drop
+blueprintsprocessor.db.hibernateDDLAuto=update
+blueprintsprocessor.db.hibernateNamingStrategy=org.hibernate.cfg.ImprovedNamingStrategy
+blueprintsprocessor.db.hibernateDialect=org.hibernate.dialect.H2Dialect
# Controller Blueprints Core Configuration
blueprintsprocessor.blueprintDeployPath=./target/blueprints/deploy
blueprintsprocessor.blueprintArchivePath=./target/blueprints/archive
blueprints.processor.functions.python.executor.modulePaths=./../../../../components/scripts/python/ccsdk_blueprints
# Executor Options
-blueprintprocessor.netconfExecutor.enabled=true
\ No newline at end of file
+blueprintprocessor.netconfExecutor.enabled=true
# See the License for the specific language governing permissions and
# limitations under the License.
#
-blueprintsprocessor.db.primary.url=jdbc:h2:mem:testdb;DB_CLOSE_DELAY=-1
-blueprintsprocessor.db.primary.username=sa
-blueprintsprocessor.db.primary.password=
-blueprintsprocessor.db.primary.driverClassName=org.h2.Driver
-blueprintsprocessor.db.primary.hibernateHbm2ddlAuto=create-drop
-blueprintsprocessor.db.primary.hibernateDDLAuto=update
-blueprintsprocessor.db.primary.hibernateNamingStrategy=org.hibernate.cfg.ImprovedNamingStrategy
-blueprintsprocessor.db.primary.hibernateDialect=org.hibernate.dialect.H2Dialect
+blueprintsprocessor.db.url=jdbc:h2:mem:testdb;DB_CLOSE_DELAY=-1
+blueprintsprocessor.db.username=sa
+blueprintsprocessor.db.password=
+blueprintsprocessor.db.driverClassName=org.h2.Driver
+blueprintsprocessor.db.hibernateHbm2ddlAuto=create-drop
+blueprintsprocessor.db.hibernateDDLAuto=update
+blueprintsprocessor.db.hibernateNamingStrategy=org.hibernate.cfg.ImprovedNamingStrategy
+blueprintsprocessor.db.hibernateDialect=org.hibernate.dialect.H2Dialect
# Controller Blueprints Core Configuration
blueprintsprocessor.blueprintDeployPath=./target/blueprints/deploy
blueprintsprocessor.blueprintArchivePath=./target/blueprints/archive
blueprints.processor.functions.python.executor.modulePaths=./../../../../components/scripts/python/ccsdk_blueprints
# Executor Options
-blueprintprocessor.netconfExecutor.enabled=true
\ No newline at end of file
+blueprintprocessor.netconfExecutor.enabled=true
checkNotEmpty(resourceAssignment.dictionaryName) {
"resource assignment dictionary name is not defined for template key (${resourceAssignment.name})"
}
- check(resourceAssignment.dictionarySource in arrayOf(ResourceDictionaryConstants.SOURCE_PROCESSOR_DB, ResourceDictionaryConstants.SOURCE_PRIMARY_DB))
+ check(resourceAssignment.dictionarySource in getListOfDBSources())
{
- "resource assignment source is not ${ResourceDictionaryConstants.SOURCE_PROCESSOR_DB} but it is ${resourceAssignment.dictionarySource}"
+ "resource assignment source is not ${ResourceDictionaryConstants.PROCESSOR_DB} but it is ${resourceAssignment.dictionarySource}"
}
}
+ //placeholder to get the list of DB sources.
+ //TODO: This will be replaced with a DB
+ private fun getListOfDBSources(): Array<String> = arrayOf(ResourceDictionaryConstants.PROCESSOR_DB)
+
private fun populateNamedParameter(inputKeyMapping: Map<String, String>): Map<String, Any> {
val namedParameters = HashMap<String, Any>()
inputKeyMapping.forEach {
override suspend fun recoverNB(runtimeException: RuntimeException, resourceAssignment: ResourceAssignment) {
raRuntimeService.getBluePrintError().addError(runtimeException.message!!)
}
-}
\ No newline at end of file
+}
val resourceAssignment = ResourceAssignment().apply {
name = "rr-name"
dictionaryName = "vnf_name"
- dictionarySource = "primary-config-data"
+ dictionarySource = "config-data"
property = PropertyDefinition().apply {
type = "string"
}
val resourceAssignment = ResourceAssignment().apply {
name = "rr-aai"
dictionaryName = "aai-get-resource"
- dictionarySource = "primary-aai-data"
+ dictionarySource = "aai-data"
property = PropertyDefinition().apply {
type = "string"
}
val resourceAssignment = ResourceAssignment().apply {
name = "rr-aai"
dictionaryName = "aai-put-resource"
- dictionarySource = "primary-aai-data"
+ dictionarySource = "aai-data"
property = PropertyDefinition().apply {
type = "string"
}
println(processorName)
}
}
-}
\ No newline at end of file
+}
# See the License for the specific language governing permissions and
# limitations under the License.
#
-blueprintsprocessor.db.primary.url=jdbc:h2:mem:testdb;DB_CLOSE_DELAY=-1
-blueprintsprocessor.db.primary.username=sa
-blueprintsprocessor.db.primary.password=
-blueprintsprocessor.db.primary.driverClassName=org.h2.Driver
-blueprintsprocessor.db.primary.hibernateHbm2ddlAuto=create-drop
-blueprintsprocessor.db.primary.hibernateDDLAuto=update
-blueprintsprocessor.db.primary.hibernateNamingStrategy=org.hibernate.cfg.ImprovedNamingStrategy
-blueprintsprocessor.db.primary.hibernateDialect=org.hibernate.dialect.H2Dialect
+blueprintsprocessor.db.url=jdbc:h2:mem:testdb;DB_CLOSE_DELAY=-1
+blueprintsprocessor.db.username=sa
+blueprintsprocessor.db.password=
+blueprintsprocessor.db.driverClassName=org.h2.Driver
+blueprintsprocessor.db.hibernateHbm2ddlAuto=create-drop
+blueprintsprocessor.db.hibernateDDLAuto=update
+blueprintsprocessor.db.hibernateNamingStrategy=org.hibernate.cfg.ImprovedNamingStrategy
+blueprintsprocessor.db.hibernateDialect=org.hibernate.dialect.H2Dialect
# Controller Blueprints Core Configuration
blueprintsprocessor.blueprintDeployPath=./target/blueprints/deploy
blueprintsprocessor.blueprintArchivePath=./target/blueprints/archive
blueprints.processor.functions.python.executor.executionPath=./../../../../components/scripts/python/ccsdk_blueprints
blueprints.processor.functions.python.executor.modulePaths=./../../../../components/scripts/python/ccsdk_blueprints
-blueprintsprocessor.restclient.primary-config-data.type=basic-auth
-blueprintsprocessor.restclient.primary-config-data.url=http://127.0.0.1:9911
-blueprintsprocessor.restclient.primary-config-data.username=sampleuser
-blueprintsprocessor.restclient.primary-config-data.password=sampletoken
+blueprintsprocessor.restclient.config-data.type=basic-auth
+blueprintsprocessor.restclient.config-data.url=http://127.0.0.1:9911
+blueprintsprocessor.restclient.config-data.username=sampleuser
+blueprintsprocessor.restclient.config-data.password=sampletoken
-blueprintsprocessor.restclient.primary-aai-data.type=basic-auth
-blueprintsprocessor.restclient.primary-aai-data.url=http://127.0.0.1:30800
-blueprintsprocessor.restclient.primary-aai-data.username=admin
-blueprintsprocessor.restclient.primary-aai-data.password=aaiTest
\ No newline at end of file
+blueprintsprocessor.restclient.aai-data.type=basic-auth
+blueprintsprocessor.restclient.aai-data.url=http://127.0.0.1:30800
+blueprintsprocessor.restclient.aai-data.username=admin
+blueprintsprocessor.restclient.aai-data.password=aaiTest
-{\r
- "version": "1.0.0",\r
- "description": "test Data Type",\r
- "properties": {\r
- "country": {\r
- "required": true,\r
- "type": "string"\r
- },\r
- "state": {\r
- "required": false,\r
- "type": "string"\r
- }\r
- },\r
- "derived_from": "tosca.datatypes.Root"\r
-}\r
+{
+ "version": "1.0.0",
+ "description": "test Data Type",
+ "properties": {
+ "country": {
+ "required": true,
+ "type": "string"
+ },
+ "state": {
+ "required": false,
+ "type": "string"
+ }
+ },
+ "derived_from": "tosca.datatypes.Root"
+}
-{\r
- "locations": {\r
- "name": "locations",\r
- "data-type": "list",\r
- "entry-schema": "dt-location",\r
- "source": {\r
- "primary-db": {\r
- "query": "SELECT db-country, db-state FROM DEVICE_PROFILE WHERE profile_name = :profile_name",\r
- "input-key-mapping": {\r
- "profile_name": "profile_name"\r
- },\r
- "output-key-mapping": {\r
- "db-country": "country",\r
- "db-state": "state"\r
- }\r
- }\r
- },\r
- "candidate-dependency": {\r
- "primary-db": {\r
- "names": [\r
- "profile_name"\r
- ]\r
- }\r
- }\r
- },\r
- "profile_name": {\r
- "name": "profile_name",\r
- "data-type": "string",\r
- "source": {\r
- "input": {\r
- \r
- }\r
- }\r
- }\r
-}\r
+{
+ "locations": {
+ "name": "locations",
+ "data-type": "list",
+ "entry-schema": "dt-location",
+ "source": {
+ "processor-db": {
+ "query": "SELECT db-country, db-state FROM DEVICE_PROFILE WHERE profile_name = :profile_name",
+ "input-key-mapping": {
+ "profile_name": "profile_name"
+ },
+ "output-key-mapping": {
+ "db-country": "country",
+ "db-state": "state"
+ }
+ }
+ },
+ "candidate-dependency": {
+ "processor-db": {
+ "names": [
+ "profile_name"
+ ]
+ }
+ }
+ },
+ "profile_name": {
+ "name": "profile_name",
+ "data-type": "string",
+ "source": {
+ "input": {
+
+ }
+ }
+ }
+}
-{\r
- "location": {\r
- "name": "location",\r
- "data-type": "dt-location",\r
- "source": {\r
- "primary-db": {\r
- "query": "SELECT db-country, db-state FROM DEVICE_PROFILE WHERE profile_name = :profile_name",\r
- "input-key-mapping": {\r
- "profile_name": "profile_name"\r
- },\r
- "output-key-mapping": {\r
- "db-country": "country",\r
- "db-state": "state"\r
- }\r
- }\r
- }\r
- },\r
- "profile_name": {\r
- "name": "profile_name",\r
- "data-type": "string",\r
- "source": {\r
- "input": {\r
- \r
- }\r
- }\r
- }\r
-}\r
+{
+ "location": {
+ "name": "location",
+ "data-type": "dt-location",
+ "source": {
+ "processor-db": {
+ "query": "SELECT db-country, db-state FROM DEVICE_PROFILE WHERE profile_name = :profile_name",
+ "input-key-mapping": {
+ "profile_name": "profile_name"
+ },
+ "output-key-mapping": {
+ "db-country": "country",
+ "db-state": "state"
+ }
+ }
+ }
+ },
+ "profile_name": {
+ "name": "profile_name",
+ "data-type": "string",
+ "source": {
+ "input": {
+
+ }
+ }
+ }
+}
-{\r
- "country": {\r
- "name": "country",\r
- "data-type": "string",\r
- "source": {\r
- "primary-db": {\r
- "query": "SELECT country FROM DEVICE_PROFILE WHERE profile_name = :profile_name",\r
- "input-key-mapping": {\r
- "profile_name": "profile_name"\r
- },\r
- "output-key-mapping": {\r
- "country": "country"\r
- }\r
- }\r
- }\r
- },\r
- "profile_name": {\r
- "name": "profile_name",\r
- "data-type": "string",\r
- "source": {\r
- "input": {\r
- \r
- }\r
- }\r
- }\r
-}\r
+{
+ "country": {
+ "name": "country",
+ "data-type": "string",
+ "source": {
+ "processor-db": {
+ "query": "SELECT country FROM DEVICE_PROFILE WHERE profile_name = :profile_name",
+ "input-key-mapping": {
+ "profile_name": "profile_name"
+ },
+ "output-key-mapping": {
+ "country": "country"
+ }
+ }
+ }
+ },
+ "profile_name": {
+ "name": "profile_name",
+ "data-type": "string",
+ "source": {
+ "input": {
+
+ }
+ }
+ }
+}
-[\r
- {\r
- "name": "country",\r
- "input-param": true,\r
- "property": {\r
- "type": "string"\r
- },\r
- "dictionary-name": "country",\r
- "dictionary-source": "primary-db",\r
- "dependencies": ["state"]\r
- },\r
- {\r
- "name": "state",\r
- "input-param": true,\r
- "property": {\r
- "type": "string"\r
- },\r
- "dictionary-name": "state",\r
- "dictionary-source": "input",\r
- "dependencies": []\r
- }\r
-]\r
+[
+ {
+ "name": "country",
+ "input-param": true,
+ "property": {
+ "type": "string"
+ },
+ "dictionary-name": "country",
+ "dictionary-source": "processor-db",
+ "dependencies": ["state"]
+ },
+ {
+ "name": "state",
+ "input-param": true,
+ "property": {
+ "type": "string"
+ },
+ "dictionary-name": "state",
+ "dictionary-source": "input",
+ "dependencies": []
+ }
+]
# See the License for the specific language governing permissions and
# limitations under the License.
#
-blueprintsprocessor.db.primary.url=jdbc:h2:mem:testdb;DB_CLOSE_DELAY=-1
-blueprintsprocessor.db.primary.username=sa
-blueprintsprocessor.db.primary.password=
-blueprintsprocessor.db.primary.driverClassName=org.h2.Driver
-blueprintsprocessor.db.primary.hibernateHbm2ddlAuto=create-drop
-blueprintsprocessor.db.primary.hibernateDDLAuto=update
-blueprintsprocessor.db.primary.hibernateNamingStrategy=org.hibernate.cfg.ImprovedNamingStrategy
-blueprintsprocessor.db.primary.hibernateDialect=org.hibernate.dialect.H2Dialect
+blueprintsprocessor.db.url=jdbc:h2:mem:testdb;DB_CLOSE_DELAY=-1
+blueprintsprocessor.db.username=sa
+blueprintsprocessor.db.password=
+blueprintsprocessor.db.driverClassName=org.h2.Driver
+blueprintsprocessor.db.hibernateHbm2ddlAuto=create-drop
+blueprintsprocessor.db.hibernateDDLAuto=update
+blueprintsprocessor.db.hibernateNamingStrategy=org.hibernate.cfg.ImprovedNamingStrategy
+blueprintsprocessor.db.hibernateDialect=org.hibernate.dialect.H2Dialect
# Controller Blueprints Core Configuration
blueprintsprocessor.blueprintDeployPath=./target/blueprints/deploy
blueprintsprocessor.blueprintArchivePath=./target/blueprints/archive
@Bean("primary-database-properties")
open fun getPrimaryProperties(): PrimaryDataSourceProperties {
- return bluePrintProperties.propertyBeanType(DBLibConstants.PREFIX_DB_PRIMARY,
+ return bluePrintProperties.propertyBeanType(DBLibConstants.PREFIX_DB,
PrimaryDataSourceProperties::class.java)
}
}
class DBLibConstants {
companion object {
- const val PREFIX_DB_PRIMARY: String = "blueprintsprocessor.db.primary"
+ const val PREFIX_DB: String = "blueprintsprocessor.db"
//list of database
const val MARIA_DB: String = "maria-db"
- const val PRIMARY_DB: String = "primary-db"
+ const val PRIMARY_DB: String = "processor-db"
const val MYSQL_DB: String = "mysql-db"
const val ORACLE_DB: String = "oracle-db"
const val POSTGRES_DB: String = "postgres-db"
const val DRIVER_ORACLE_DB = "oracle.jdbc.driver.OracleDriver"
const val DRIVER_POSTGRES_DB = "org.postgresql.Driver"
}
-}
\ No newline at end of file
+}
lateinit var hibernateDialect: String
override var driverClassName = DBLibConstants.DRIVER_MYSQL_DB
}
-
# See the License for the specific language governing permissions and
# limitations under the License.
#
-blueprintsprocessor.db.primary.url=jdbc:h2:mem:testdb;DB_CLOSE_DELAY=-1
-blueprintsprocessor.db.primary.username=sa
-blueprintsprocessor.db.primary.password=
-blueprintsprocessor.db.primary.driverClassName=org.h2.Driver
-blueprintsprocessor.db.primary.hibernateHbm2ddlAuto=create-drop
-blueprintsprocessor.db.primary.hibernateDDLAuto=update
-blueprintsprocessor.db.primary.hibernateNamingStrategy=org.hibernate.cfg.ImprovedNamingStrategy
-blueprintsprocessor.db.primary.hibernateDialect=org.hibernate.dialect.H2Dialect
+blueprintsprocessor.db.url=jdbc:h2:mem:testdb;DB_CLOSE_DELAY=-1
+blueprintsprocessor.db.username=sa
+blueprintsprocessor.db.password=
+blueprintsprocessor.db.driverClassName=org.h2.Driver
+blueprintsprocessor.db.hibernateHbm2ddlAuto=create-drop
+blueprintsprocessor.db.hibernateDDLAuto=update
+blueprintsprocessor.db.hibernateNamingStrategy=org.hibernate.cfg.ImprovedNamingStrategy
+blueprintsprocessor.db.hibernateDialect=org.hibernate.dialect.H2Dialect
# Controller Blueprints Core Configuration
blueprintsprocessor.blueprintDeployPath=./target/blueprints/deploy
blueprintsprocessor.blueprintArchivePath=./target/blueprints/archive
# See the License for the specific language governing permissions and
# limitations under the License.
-blueprintsprocessor.db.primary.url=jdbc:h2:mem:testdb;DB_CLOSE_DELAY=-1
-blueprintsprocessor.db.primary.username=sa
-blueprintsprocessor.db.primary.password=
-blueprintsprocessor.db.primary.driverClassName=org.h2.Driver
-blueprintsprocessor.db.primary.hibernateHbm2ddlAuto=create-drop
-blueprintsprocessor.db.primary.hibernateDDLAuto=update
-blueprintsprocessor.db.primary.hibernateNamingStrategy=org.hibernate.cfg.ImprovedNamingStrategy
-blueprintsprocessor.db.primary.hibernateDialect=org.hibernate.dialect.H2Dialect
+blueprintsprocessor.db.url=jdbc:h2:mem:testdb;DB_CLOSE_DELAY=-1
+blueprintsprocessor.db.username=sa
+blueprintsprocessor.db.password=
+blueprintsprocessor.db.driverClassName=org.h2.Driver
+blueprintsprocessor.db.hibernateHbm2ddlAuto=create-drop
+blueprintsprocessor.db.hibernateDDLAuto=update
+blueprintsprocessor.db.hibernateNamingStrategy=org.hibernate.cfg.ImprovedNamingStrategy
+blueprintsprocessor.db.hibernateDialect=org.hibernate.dialect.H2Dialect
# Controller Blueprints Core Configuration
blueprintsprocessor.blueprintDeployPath=./target/blueprints/deploy
blueprintsprocessor.blueprintWorkingPath=./target/blueprints/work
#\r
-# Copyright © 2017-2018 AT&T Intellectual Property.\r
+# Copyright � 2017-2018 AT&T Intellectual Property.\r
#\r
-# Modifications Copyright © 2019 IBM, Bell Canada.\r
+# Modifications Copyright � 2019 IBM, Bell Canada.\r
#\r
# Licensed under the Apache License, Version 2.0 (the "License");\r
# you may not use this file except in compliance with the License.\r
# See the License for the specific language governing permissions and\r
# limitations under the License.\r
#\r
-blueprintsprocessor.db.primary.url=jdbc:h2:mem:testdb;DB_CLOSE_DELAY=-1\r
-blueprintsprocessor.db.primary.username=sa\r
-blueprintsprocessor.db.primary.password=\r
-blueprintsprocessor.db.primary.driverClassName=org.h2.Driver\r
-blueprintsprocessor.db.primary.hibernateHbm2ddlAuto=create-drop\r
-blueprintsprocessor.db.primary.hibernateDDLAuto=update\r
-blueprintsprocessor.db.primary.hibernateNamingStrategy=org.hibernate.cfg.ImprovedNamingStrategy\r
-blueprintsprocessor.db.primary.hibernateDialect=org.hibernate.dialect.H2Dialect\r
+blueprintsprocessor.db.url=jdbc:h2:mem:testdb;DB_CLOSE_DELAY=-1\r
+blueprintsprocessor.db.username=sa\r
+blueprintsprocessor.db.password=\r
+blueprintsprocessor.db.driverClassName=org.h2.Driver\r
+blueprintsprocessor.db.hibernateHbm2ddlAuto=create-drop\r
+blueprintsprocessor.db.hibernateDDLAuto=update\r
+blueprintsprocessor.db.hibernateNamingStrategy=org.hibernate.cfg.ImprovedNamingStrategy\r
+blueprintsprocessor.db.hibernateDialect=org.hibernate.dialect.H2Dialect\r
# Controller Blueprints Core Configuration\r
blueprintsprocessor.blueprintDeployPath=./target/blueprints/deploy\r
blueprintsprocessor.blueprintWorkingPath=./target/blueprints/work\r
@Bean(name = [
"rr-processor-source-input",
"rr-processor-source-default",
- "rr-processor-source-processor-db",
+ "rr-processor-source-db",
"rr-processor-source-rest"])
open fun sourceInstance(): ResourceAssignmentProcessor {
return mockk<ResourceAssignmentProcessor>()
}
-}
\ No newline at end of file
+}
# See the License for the specific language governing permissions and
# limitations under the License.
#
-blueprintsprocessor.db.primary.url=jdbc:h2:mem:testdb;DB_CLOSE_DELAY=-1
-blueprintsprocessor.db.primary.username=sa
-blueprintsprocessor.db.primary.password=
-blueprintsprocessor.db.primary.driverClassName=org.h2.Driver
-blueprintsprocessor.db.primary.hibernateHbm2ddlAuto=create-drop
-blueprintsprocessor.db.primary.hibernateDDLAuto=update
-blueprintsprocessor.db.primary.hibernateNamingStrategy=org.hibernate.cfg.ImprovedNamingStrategy
-blueprintsprocessor.db.primary.hibernateDialect=org.hibernate.dialect.H2Dialect
+blueprintsprocessor.db.url=jdbc:h2:mem:testdb;DB_CLOSE_DELAY=-1
+blueprintsprocessor.db.username=sa
+blueprintsprocessor.db.password=
+blueprintsprocessor.db.driverClassName=org.h2.Driver
+blueprintsprocessor.db.hibernateHbm2ddlAuto=create-drop
+blueprintsprocessor.db.hibernateDDLAuto=update
+blueprintsprocessor.db.hibernateNamingStrategy=org.hibernate.cfg.ImprovedNamingStrategy
+blueprintsprocessor.db.hibernateDialect=org.hibernate.dialect.H2Dialect
# Controller Blueprints Core Configuration
blueprintsprocessor.blueprintDeployPath=./target/blueprints/deploy
blueprintsprocessor.blueprintWorkingPath=./target/blueprints/work
spring.jpa.hibernate.naming-strategy=org.hibernate.cfg.ImprovedNamingStrategy
spring.jpa.properties.hibernate.dialect=org.hibernate.dialect.MySQL5InnoDBDialect
# Load Resource Source Mappings
-resourceSourceMappings=processor-db=source-processor-db,primary-db=source-processor-db,input=source-input,default=source-default,primary-config-data=source-rest,primary-aai-data=source-rest,capability=source-capability
+resourceSourceMappings=processor-db=source-db,input=source-input,default=source-default,config-data=source-rest,aai-data=source-rest,capability=source-capability
# Controller Blueprints Core Configuration
-controllerblueprints.blueprintDeployPath=/etc/blueprints/deploy
-controllerblueprints.blueprintArchivePath=/etc/blueprints/archive
-controllerblueprints.blueprintWorkingPath=/etc/blueprints/work
+controllerblueprints.blueprintDeployPath=blueprints/deploy
+controllerblueprints.blueprintArchivePath=blueprints/archive
+controllerblueprints.blueprintWorkingPath=blueprints/work
# Controller Blueprint Load Configurations
controllerblueprints.loadInitialData=true
controllerblueprints.loadBluePrint=false
controllerblueprints.loadCbaExtension=zip
# Web server config
-server.port=8080
\ No newline at end of file
+server.port=8082
spring.jpa.properties.hibernate.dialect=org.hibernate.dialect.MySQL5InnoDBDialect
# Load Resource Source Mappings
-resourceSourceMappings=processor-db=source-processor-db,primary-db=source-processor-db,input=source-input,default=source-default,primary-config-data=source-rest,primary-aai-data=source-rest,capability=source-capability
+resourceSourceMappings=processor-db=source-db,input=source-input,default=source-default,config-data=source-rest,aai-data=source-rest,capability=source-capability
# Controller Blueprints Core Configuration
controllerblueprints.blueprintDeployPath=/etc/blueprints/deploy
controllerblueprints.loadCbaExtension=zip
# Web server config
-server.port=8080
\ No newline at end of file
+server.port=8080
swagger.contact.email=brindasanth@onap.com\r
\r
# Load Resource Source Mappings\r
-resourceSourceMappings=processor-db=source-processor-db,primary-db=source-processor-db,input=source-input,default=source-default,primary-config-data=source-rest,primary-aai-data=source-rest,capability=source-capability\r
+resourceSourceMappings=processor-db=source-db,input=source-input,default=source-default,config-data=source-rest,aai-data=source-rest,capability=source-capability\r
\r
# Controller Blueprints Core Configuration\r
controllerblueprints.blueprintDeployPath=./target/blueprints/deploy\r
controllerblueprints.loadBlueprintsExamplesPath=./../../../../components/model-catalog/blueprint-model/test-blueprint\r
\r
# Web server config\r
-server.port=8080
\ No newline at end of file
+server.port=8080\r
fun workflowStepFirstCallOperation(workFlowName: String, stepName: String): String {
return workflowStepByName(workFlowName, stepName).activities?.filter { it.callOperation != null }?.single()?.callOperation
- ?: throw BluePrintException("could't get first callOperation for WorkFlow($workFlowName) ")
+ ?: throw BluePrintException("couldn't get first callOperation for WorkFlow($workFlowName) ")
}
// DSL
fun dslPropertiesByName(name: String): JsonNode = dslDefinitions()?.get(name)
- ?: throw BluePrintException("could't get policy type for the dsl($name)")
+ ?: throw BluePrintException("couldn't get policy type for the dsl($name)")
// Data Type
fun dataTypeByName(name: String): DataType? = dataTypes()?.get(name)
return BluePrintChainedService(this).nodeTypeChainedProperties(nodeTypeName)
}
-}
\ No newline at end of file
+}
BluePrintConstants.DATA_TYPE_FLOAT,
BluePrintConstants.DATA_TYPE_DOUBLE,
BluePrintConstants.DATA_TYPE_TIMESTAMP,
- BluePrintConstants.DATA_TYPE_STRING ->
+ BluePrintConstants.DATA_TYPE_STRING,
+ BluePrintConstants.DATA_TYPE_NULL ->
objectNode.set(key, value)
else -> throw BluePrintException("populatePrimitiveValues expected only primitive values! Received: ($value)")
}
BluePrintConstants.DATA_TYPE_FLOAT,
BluePrintConstants.DATA_TYPE_DOUBLE,
BluePrintConstants.DATA_TYPE_TIMESTAMP,
- BluePrintConstants.DATA_TYPE_STRING -> arrayNode.add(value)
+ BluePrintConstants.DATA_TYPE_STRING,
+ BluePrintConstants.DATA_TYPE_NULL ->
+ arrayNode.add(value)
else -> throw BluePrintException("populatePrimitiveValues expected only primitive values! Received: ($value)")
}
}
"default": {
"type": "any"
},
- "primary-aai-data": {
+ "aai-data": {
"type": "object",
"properties": {
"verb": {
}
}
},
- "primary-config-data": {
+ "config-data": {
"type": "object",
"properties": {
"path": {
}
}
},
- "primary-db": {
+ "processor-db": {
"type": "object",
"properties": {
"query": {
}
}
},
- "primary-aai-data": {
+ "aai-data": {
"type": "object",
"properties": {
"names": {
}
}
},
- "primary-config-data": {
+ "config-data": {
"type": "object",
"properties": {
"names": {
}
}
},
- "primary-db": {
+ "processor-db": {
"type": "object",
"properties": {
"names": {
},
"updated-by": "brindasanth@onap.com",
"sources": {
- "primary-config-data": {
+ "config-data": {
"type": "source-rest",
"properties": {
"type": "JSON",
}
}
}
-}
\ No newline at end of file
+}
"type" : "string"
},
"sources" : {
- "primary-db" : {
- "type" : "source-processor-db",
+ "processor-db" : {
+ "type" : "source-db",
"properties" : {
"type" : "SQL",
"query" : "select sdnctl.VF_MODEL.nf_role as vf_model_role from sdnctl.VF_MODEL where sdnctl.VF_MODEL.customization_uuid=:vnfmodelcustomizationuuid",
}
}
}
-}
\ No newline at end of file
+}
"type" : "string"
},
"sources" : {
- "primary-db" : {
- "type" : "source-processor-db",
+ "processor-db" : {
+ "type" : "source-db",
"properties" : {
"type" : "SQL",
"query" : "select nfc_naming_code as nfc_naming_code from sdnctl.VFC_MODEL where customization_uuid=:vfccustomizationuuid",
}
}
}
-}
\ No newline at end of file
+}
"type" : "string"
},
"sources" : {
- "primary-db" : {
- "type" : "source-processor-db",
+ "processor-db" : {
+ "type" : "source-db",
"properties" : {
"type" : "SQL",
"query" : "select sdnctl.IPAM_IP_POOL.prefix as prefix from sdnctl.IPAM_IP_POOL where description = private",
}
}
}
-}
\ No newline at end of file
+}
+++ /dev/null
-{
- "name": "primary-db-source",
- "property" :{
- "description": "name of the ",
- "type": "string"
- },
- "updated-by": "brindasanth@onap.com",
- "tags": "bundle-id, brindasanth@onap.com",
- "sources": {
- "primary-db": {
- "type": "source-processor-db",
- "properties": {
- "query": "SELECT db-country, db-state FROM DEVICE_PROFILE WHERE profile_name = :profile_name",
- "input-key-mapping": {
- "profile_name": "profile_name"
- },
- "output-key-mapping": {
- "db-country": "country",
- "db-state": "state"
- }
- }
- }
- }
-}
\ No newline at end of file
"type" : "string"
},
"sources" : {
- "primary-db" : {
- "type" : "source-processor-db",
+ "processor-db" : {
+ "type" : "source-db",
"properties" : {
"type" : "SQL",
"query" : "select sdnctl.IPAM_IP_POOL.prefix_id as prefix_id from sdnctl.IPAM_IP_POOL where description = private",
}
}
}
-}
\ No newline at end of file
+}
"tags": "bundle-id, brindasanth@onap.com",
"sources": {
"processor-db": {
- "type": "source-processor-db",
+ "type": "source-db",
"properties": {
"query": "SELECT db-country, db-state FROM DEVICE_PROFILE WHERE profile_name = :profile_name",
"input-key-mapping": {
}
}
}
-}
\ No newline at end of file
+}
"type" : "string"
},
"sources" : {
- "primary-db" : {
- "type" : "source-processor-db",
+ "processor-db" : {
+ "type" : "source-db",
"properties" : {
"type" : "SQL",
"query" : "select sdnctl.IPAM_IP_POOL.prefix_id as prefix_id from sdnctl.IPAM_IP_POOL where description = protected",
}
}
}
-}
\ No newline at end of file
+}
"type" : "string"
},
"sources" : {
- "primary-db" : {
- "type" : "source-processor-db",
+ "processor-db" : {
+ "type" : "source-db",
"properties" : {
"type" : "SQL",
"query" : "select sdnctl.IPAM_IP_POOL.prefix as prefix from sdnctl.IPAM_IP_POOL where description = protected",
}
}
}
-}
\ No newline at end of file
+}
"type" : "string"
},
"sources" : {
- "primary-db" : {
- "type" : "source-processor-db",
+ "processor-db" : {
+ "type" : "source-db",
"properties" : {
"type" : "SQL",
"query" : "select sdnctl.IPAM_IP_POOL.prefix_id as prefix_id from sdnctl.IPAM_IP_POOL where description = unprotected",
}
}
}
-}
\ No newline at end of file
+}
"type" : "string"
},
"sources" : {
- "primary-db" : {
- "type" : "source-processor-db",
+ "processor-db" : {
+ "type" : "source-db",
"properties" : {
"type" : "SQL",
"query" : "select sdnctl.IPAM_IP_POOL.prefix as prefix from sdnctl.IPAM_IP_POOL where description = unprotected",
}
}
}
-}
\ No newline at end of file
+}
"type" : "string"
},
"sources" : {
- "primary-db" : {
- "type" : "source-processor-db",
+ "processor-db" : {
+ "type" : "source-db",
"properties" : {
"type" : "SQL",
"query" : "select sdnctl.VF_MODULE_MODEL.vf_module_label as vf_module_label from sdnctl.VF_MODULE_MODEL where sdnctl.VF_MODULE_MODEL.customization_uuid=:customizationid",
}
}
}
-}
\ No newline at end of file
+}
"type" : "string"
},
"sources" : {
- "primary-db" : {
- "type" : "source-processor-db",
+ "processor-db" : {
+ "type" : "source-db",
"properties" : {
"type" : "SQL",
"query" : "select vf_module_type as vf_module_type from sdnctl.VF_MODULE_MODEL where customization_uuid=:customizationid",
}
}
}
-}
\ No newline at end of file
+}
"type" : "string"
},
"sources" : {
- "primary-db" : {
- "type" : "source-processor-db",
+ "processor-db" : {
+ "type" : "source-db",
"properties" : {
"type" : "SQL",
"query" : "select sdnctl.VF_MODEL.naming_policy as vf_naming_policy from sdnctl.VF_MODEL where sdnctl.VF_MODEL.customization_uuid=:vnf_model_customization_uuid",
}
}
}
-}
\ No newline at end of file
+}
"type" : "string"
},
"sources" : {
- "primary-db" : {
- "type" : "source-processor-db",
+ "processor-db" : {
+ "type" : "source-db",
"properties" : {
"type" : "SQL",
"query" : "select sdnctl.VF_MODEL.nf_code as vf_nf_code from sdnctl.VF_MODEL where sdnctl.VF_MODEL.customization_uuid=:customizationid",
}
}
}
-}
\ No newline at end of file
+}
"type" : "string"
},
"sources" : {
- "primary-db" : {
- "type" : "source-processor-db",
+ "processor-db" : {
+ "type" : "source-db",
"properties" : {
"type" : "SQL",
"query" : "select sdnctl.VF_MODULE_TO_VFC_MAPPING.vfc_customization_uuid as vnf_customid from sdnctl.VF_MODULE_TO_VFC_MAPPING where vm_count = 1 and sdnctl.VF_MODULE_TO_VFC_MAPPING.vf_module_customization_uuid=:vfmodulecustomizationuuid",
}
}
}
-}
\ No newline at end of file
+}
"key" : "vfw_private_ip_0"
}
},
- "primary-config-data" : {
+ "config-data" : {
"type" : "source-rest",
"properties" : {
"type" : "JSON",
}
}
}
-}
\ No newline at end of file
+}
"key" : "vfw_private_ip_1"
}
},
- "primary-config-data" : {
+ "config-data" : {
"type" : "source-rest",
"properties" : {
"type" : "JSON",
}
}
}
-}
\ No newline at end of file
+}
"type" : "string"
},
"sources" : {
- "primary-db" : {
- "type" : "source-processor-db",
+ "processor-db" : {
+ "type" : "source-db",
"properties" : {
"type" : "SQL",
"query" : "select vfc_model.vm_type as vm_type from VFC_MODEL where customization_uuid=:vfccustomizationuuid",
}
}
}
-}
\ No newline at end of file
+}
"type" : "string"
},
"sources" : {
- "primary-config-data": {
+ "config-data": {
"type": "source-rest",
"properties": {
"type": "JSON",
]
}
},
- "primary-aai-data": {
+ "aai-data": {
"type": "source-rest",
"properties": {
"type": "JSON",
}
}
}
-}
\ No newline at end of file
+}
"type" : "string"
},
"sources" : {
- "primary-config-data" : {
+ "config-data" : {
"type" : "source-rest",
"properties" : {
"type" : "JSON",
}
}
}
-}
\ No newline at end of file
+}
"type" : "string"
},
"sources" : {
- "primary-db" : {
- "type" : "source-processor-db",
+ "processor-db" : {
+ "type" : "source-db",
"properties" : {
"type" : "SQL",
"query" : "select vfc_model.invariant_uuid as vfc_invariant_uuid from VFC_MODEL where customization_uuid=:vfccustomizationuuid",
}
}
}
-}
\ No newline at end of file
+}
"type" : "string"
},
"sources" : {
- "primary-db" : {
- "type" : "source-processor-db",
+ "processor-db" : {
+ "type" : "source-db",
"properties" : {
"type" : "SQL",
"query" : "select vfc_model.version as vnfc_model_version from VFC_MODEL where customization_uuid=:vfccustomizationuuid",
}
}
}
-}
\ No newline at end of file
+}
"key" : "vpg_private_ip_0"
}
},
- "primary-config-data" : {
+ "config-data" : {
"type" : "source-rest",
"properties" : {
"type" : "JSON",
}
}
}
-}
\ No newline at end of file
+}
"key" : "vsn_private_ip_0"
}
},
- "primary-config-data" : {
+ "config-data" : {
"type" : "source-rest",
"properties" : {
"type" : "JSON",
}
}
}
-}
\ No newline at end of file
+}
object ResourceDictionaryConstants {
const val SOURCE_INPUT = "input"
const val SOURCE_DEFAULT = "default"
- //const val SOURCE_PRIMARY_CONFIG_DATA = "rest"
- const val SOURCE_PROCESSOR_DB = "processor-db"
- const val SOURCE_PRIMARY_CONFIG_DATA = "primary-config-data"
- const val SOURCE_PRIMARY_DB = "primary-db"
- const val SOURCE_PRIMARY_AAI_DATA = "primary-aai-data"
+ const val PROCESSOR_DB = "processor-db"
const val MODEL_DIR_RESOURCE_DEFINITION: String = "resource_dictionary"
const val PROPERTY_KEY_DEPENDENCIES = "key-dependencies"
const val PATH_RESOURCE_DEFINITION_TYPE = "resources_definition_types"
-}
\ No newline at end of file
+}
@Test
public void testDictionaryDefinitionDBSource(){
- String fileName = basePath + "/primary-db-source.json";
+ String fileName = basePath + "/processor-db-source.json";
ResourceDefinition resourceDefinition = JacksonUtils.Companion.readValueFromFile(fileName, ResourceDefinition.class);
- Assert.assertNotNull("Failed to populate dictionaryDefinition for primary-db type", resourceDefinition);
+ Assert.assertNotNull("Failed to populate dictionaryDefinition for processor-db type", resourceDefinition);
}
@Test
@Test
public void testRegisterResourceMapping() {
- ResourceSourceMappingFactory.INSTANCE.registerSourceMapping("primary-db", "source-processor-db");
- ResourceSourceMappingFactory.INSTANCE.registerSourceMapping("processor-db", "source-processor-db");
+ ResourceSourceMappingFactory.INSTANCE.registerSourceMapping("processor-db", "source-db");
ResourceSourceMappingFactory.INSTANCE.registerSourceMapping("input", "source-input");
ResourceSourceMappingFactory.INSTANCE.registerSourceMapping("default", "source-default");
- ResourceSourceMappingFactory.INSTANCE.registerSourceMapping("primary-config-data", "source-rest");
- ResourceSourceMappingFactory.INSTANCE.registerSourceMapping("primary-aai-data", "source-rest");
+ ResourceSourceMappingFactory.INSTANCE.registerSourceMapping("config-data", "source-rest");
+ ResourceSourceMappingFactory.INSTANCE.registerSourceMapping("aai-data", "source-rest");
- String nodeTypeName = ResourceSourceMappingFactory.INSTANCE.getRegisterSourceMapping("primary-db");
- Assert.notNull(nodeTypeName, "Failed to get primary-db mapping");
+ String nodeTypeName = ResourceSourceMappingFactory.INSTANCE.getRegisterSourceMapping("processor-db");
+ Assert.notNull(nodeTypeName, "Failed to get processor-db mapping");
ResourceSourceMapping resourceSourceMapping = ResourceSourceMappingFactory.INSTANCE.getRegisterSourceMapping();
Assert.notNull(resourceSourceMapping, "Failed to get resource source mapping");
Assert.assertEquals("Expected First source Default, but.", ResourceDictionaryConstants.SOURCE_DEFAULT, resourceAssignment.getDictionarySource());
// To Check Assigned Source
- resourceAssignment.setDictionarySource(ResourceDictionaryConstants.SOURCE_PROCESSOR_DB);
+ resourceAssignment.setDictionarySource(ResourceDictionaryConstants.PROCESSOR_DB);
ResourceDictionaryUtils.populateSourceMapping(resourceAssignment, resourceDefinition);
- Assert.assertEquals("Expected Assigned source DB, but.", ResourceDictionaryConstants.SOURCE_PROCESSOR_DB, resourceAssignment.getDictionarySource());
+ Assert.assertEquals("Expected Assigned source DB, but.", ResourceDictionaryConstants.PROCESSOR_DB, resourceAssignment.getDictionarySource());
}
Assert.assertEquals("Expected source Input, but.", ResourceDictionaryConstants.SOURCE_INPUT, inputFirstSource);
// TO check the multiple Source
- sources.put(ResourceDictionaryConstants.SOURCE_PROCESSOR_DB, new NodeTemplate());
+ sources.put(ResourceDictionaryConstants.PROCESSOR_DB, new NodeTemplate());
String multipleFirstSource = ResourceDictionaryUtils.findFirstSource(sources);
Assert.assertEquals("Expected source Input, but.", ResourceDictionaryConstants.SOURCE_INPUT, multipleFirstSource);
@JvmStatic
fun setUpResourceSourceMapping() {
- ResourceSourceMappingFactory.registerSourceMapping("primary-db", "source-processor-db")
- ResourceSourceMappingFactory.registerSourceMapping("processor-db", "source-processor-db")
+ ResourceSourceMappingFactory.registerSourceMapping("processor-db", "source-db")
ResourceSourceMappingFactory.registerSourceMapping("input", "source-input")
ResourceSourceMappingFactory.registerSourceMapping("default", "source-default")
- ResourceSourceMappingFactory.registerSourceMapping("primary-config-data", "source-rest")
- ResourceSourceMappingFactory.registerSourceMapping("primary-aai-data", "source-rest")
+ ResourceSourceMappingFactory.registerSourceMapping("config-data", "source-rest")
+ ResourceSourceMappingFactory.registerSourceMapping("aai-data", "source-rest")
}
-}
\ No newline at end of file
+}
"required": true
},
"dictionary-name": "bundle-id",
- "dictionary-source": "primary-config-data",
+ "dictionary-source": "config-data",
"dependencies": [
"vnf-id"
]
"required": true
},
"dictionary-name": "bundle-ip",
- "dictionary-source": "primary-config-data",
+ "dictionary-source": "config-data",
"dependencies": [
"vnf-id"
]
"type": "string"
},
"dictionary-name": "bundle-mac",
- "dictionary-source": "primary-config-data",
+ "dictionary-source": "config-data",
"dependencies": [
"vnf-id",
"bundle-id"
"type": "string"
},
"dictionary-name": "managed-ip",
- "dictionary-source": "primary-config-data",
+ "dictionary-source": "config-data",
"dependencies": [
"loopback-ip"
]
"type": "string"
},
"dictionary-name": "managed-ip1",
- "dictionary-source": "primary-config-data",
+ "dictionary-source": "config-data",
"dependencies": [
"loopback-ip"
]
"type": "string"
},
"dictionary-name": "loopback-ip",
- "dictionary-source": "primary-db",
+ "dictionary-source": "processor-db",
"dependencies": [
"bundle-mac",
"managed-ip1"
"required": true
},
"dictionary-name": "bundle-id",
- "dictionary-source": "primary-config-data",
+ "dictionary-source": "config-data",
"dependencies": [
"vnf-id"
]
"required": true
},
"dictionary-name": "bundle-ip",
- "dictionary-source": "primary-config-data",
+ "dictionary-source": "config-data",
"dependencies": [
"vnf-id"
]
"type": "string"
},
"dictionary-name": "bundle-mac",
- "dictionary-source": "primary-config-data",
+ "dictionary-source": "config-data",
"dependencies": [
"vnf-id",
"bundle-id"
"type": "string"
},
"dictionary-name": "bundle-mac",
- "dictionary-source": "primary-config-data",
+ "dictionary-source": "config-data",
"dependencies": [
"loopback-ip"
]
"type": "string"
},
"dictionary-name": "managed-ip1",
- "dictionary-source": "primary-config-data",
+ "dictionary-source": "config-data",
"dependencies": [
"loopback-ip"
]
"type": "string"
},
"dictionary-name": "loopback-ip",
- "dictionary-source": "primary-db",
+ "dictionary-source": "processor-db",
"dependencies": [
"bundle-mac"
]
"required": true
},
"dictionary-name": "bundle-id",
- "dictionary-source": "primary-config-data",
+ "dictionary-source": "config-data",
"dependencies": [
"vnf-id"
]
"required": true
},
"dictionary-name": "bundle-ip",
- "dictionary-source": "primary-config-data",
+ "dictionary-source": "config-data",
"dependencies": [
"vnf-id"
]
"type": "string"
},
"dictionary-name": "bundle-mac",
- "dictionary-source": "primary-config-data",
+ "dictionary-source": "config-data",
"dependencies": [
"vnf-id",
"bundle-id"
"type": "string"
},
"dictionary-name": "managed-ip",
- "dictionary-source": "primary-config-data",
+ "dictionary-source": "config-data",
"dependencies": [
"loopback-ip"
]
"type": "string"
},
"dictionary-name": "managed-ip1",
- "dictionary-source": "primary-config-data",
+ "dictionary-source": "config-data",
"dependencies": [
"loopback-ip"
]
"type": "string"
},
"dictionary-name": "loopback-ip",
- "dictionary-source": "primary-db",
+ "dictionary-source": "processor-db",
"dependencies": [
"bundle-mac"
]
@RestControllerAdvice("org.onap.ccsdk.cds.controllerblueprints")
open class ControllerBlueprintExceptionHandler {
- companion object ControllerBlueprintExeptionHandler {
+ companion object ControllerBlueprintExceptionHandler {
val LOG = LoggerFactory.getLogger(ControllerBlueprintExceptionHandler::class.java)
}
return ResponseEntity(errorMessage, HttpStatus.resolve(errorCode!!.httpCode))
}
}
-
@Test
@Commit
fun test01Save() {
- val resourceDefinition = JacksonUtils.readValueFromFile("./../../../../components/model-catalog/resource-dictionary/starter-dictionary/sample-primary-db-source.json", ResourceDefinition::class.java)
+ val resourceDefinition = JacksonUtils.readValueFromFile("./../../../../components/model-catalog/resource-dictionary/starter-dictionary/sample-db-source.json", ResourceDefinition::class.java)
Assert.assertNotNull("Failed to get resourceDefinition from content", resourceDefinition)
resourceDefinition!!.name = sourceName
resourceDictionary.definition = resourceDefinition
return resourceDictionary
}
-}
\ No newline at end of file
+}
logging.level.org.hibernate.SQL=warn
logging.level.org.hibernate.type.descriptor.sql=debug
# Load Resource Source Mappings
-resourceSourceMappings=processor-db=source-processor-db,primary-db=source-processor-db,input=source-input,default=source-default,primary-config-data=source-rest,primary-aai-data=source-rest,capability=source-capability
+resourceSourceMappings=processor-db=source-db,input=source-input,default=source-default,config-data=source-rest,aai-data=source-rest,capability=source-capability
# Controller Blueprints Core Configuration
controllerblueprints.blueprintDeployPath=./target/blueprints/deploy
controllerblueprints.blueprintArchivePath=./target/blueprints/archive
controllerblueprints.loadCbaExtension=zip
# CBA examples for tests cases
-controllerblueprints.loadBlueprintsExamplesPath=./../../../../components/model-catalog/blueprint-model/test-blueprint
\ No newline at end of file
+controllerblueprints.loadBlueprintsExamplesPath=./../../../../components/model-catalog/blueprint-model/test-blueprint
"required": true\r
},\r
"dictionary-name": "sample-db-source",\r
- "dictionary-source": "primary-db",\r
+ "dictionary-source": "processor-db",\r
"dependencies": [\r
"input-source"\r
]\r
"required": true\r
},\r
"dictionary-name": "sample-mdsal-source",\r
- "dictionary-source": "primary-config-data",\r
+ "dictionary-source": "config-data",\r
"dependencies": []\r
}\r
]\r
},\r
"input-param": false,\r
"dictionary-name": "sample-db-source",\r
- "dictionary-source": "primary-db",\r
+ "dictionary-source": "processor-db",\r
"dependencies": [\r
"hostname"\r
],\r
},\r
"input-param": false,\r
"dictionary-name": "sample-mdsal-source",\r
- "dictionary-source": "primary-config-data",\r
+ "dictionary-source": "config-data",\r
"dependencies": [\r
"service-instance-id"\r
],\r
},\r
"input-param": false,\r
"dictionary-name": "sample-licenses",\r
- "dictionary-source": "primary-config-data",\r
+ "dictionary-source": "config-data",\r
"dependencies": [\r
"service-instance-id"\r
],\r
},\r
"data_types": {\r
}\r
-}
\ No newline at end of file
+}\r
},
"input-param" : false,
"dictionary-name" : "sample-db-source",
- "dictionary-source" : "primary-db",
+ "dictionary-source" : "processor-db",
"dependencies" : [ "hostname" ],
"version" : 0
}, {
},
"input-param" : false,
"dictionary-name" : "sample-mdsal-source",
- "dictionary-source" : "primary-config-data",
+ "dictionary-source" : "config-data",
"dependencies" : [ "service-instance-id" ],
"version" : 0
}, {
},
"input-param" : false,
"dictionary-name" : "sample-licenses",
- "dictionary-source" : "primary-config-data",
+ "dictionary-source" : "config-data",
"dependencies" : [ "service-instance-id" ],
"version" : 0
}, {
}
}
}
-}
\ No newline at end of file
+}