summaryrefslogtreecommitdiffstats
path: root/openecomp-be/tools/install/database/schemaTemplates/composition
diff options
context:
space:
mode:
Diffstat (limited to 'openecomp-be/tools/install/database/schemaTemplates/composition')
-rw-r--r--openecomp-be/tools/install/database/schemaTemplates/composition/component.ftl28
-rw-r--r--openecomp-be/tools/install/database/schemaTemplates/composition/network.ftl25
-rw-r--r--openecomp-be/tools/install/database/schemaTemplates/composition/nic.ftl36
3 files changed, 89 insertions, 0 deletions
diff --git a/openecomp-be/tools/install/database/schemaTemplates/composition/component.ftl b/openecomp-be/tools/install/database/schemaTemplates/composition/component.ftl
new file mode 100644
index 0000000000..1c0cb4eb8a
--- /dev/null
+++ b/openecomp-be/tools/install/database/schemaTemplates/composition/component.ftl
@@ -0,0 +1,28 @@
+{
+ "$schema": "http://json-schema.org/draft-04/schema#",
+ "type": "object",
+ "properties": {
+ "name": {
+ "type": "string"<#if !manual>,
+ "enum": [
+ "${component.name}"
+ ],
+ "default": "${component.name}"</#if>
+ },
+ "displayName": {
+ "type": "string"<#if !manual && component.displayName??>,
+ "enum": [
+ "${component.displayName}"
+ ],
+ "default": "${component.displayName}"</#if>
+ },
+ "description": {
+ "type": "string"
+ }
+ },
+ "additionalProperties": false,
+ "required": [
+ "name"<#if !manual && component.displayName??>,
+ "displayName"</#if>
+ ]
+} \ No newline at end of file
diff --git a/openecomp-be/tools/install/database/schemaTemplates/composition/network.ftl b/openecomp-be/tools/install/database/schemaTemplates/composition/network.ftl
new file mode 100644
index 0000000000..1193992923
--- /dev/null
+++ b/openecomp-be/tools/install/database/schemaTemplates/composition/network.ftl
@@ -0,0 +1,25 @@
+{
+ "$schema": "http://json-schema.org/draft-04/schema#",
+ "type": "object",
+ "properties": {
+ "name": {
+ "type": "string"<#if !manual>,
+ "enum": [
+ "${network.name}"
+ ],
+ "default": "${network.name}"</#if>
+ },
+ "dhcp": {
+ "type": "boolean"<#if !manual>,
+ "enum": [
+ ${network.dhcp?c}
+ ],
+ "default": ${network.dhcp?c}</#if>
+ }
+ },
+ "additionalProperties": false,
+ "required": [
+ "name",
+ "dhcp"
+ ]
+} \ No newline at end of file
diff --git a/openecomp-be/tools/install/database/schemaTemplates/composition/nic.ftl b/openecomp-be/tools/install/database/schemaTemplates/composition/nic.ftl
new file mode 100644
index 0000000000..6111348f88
--- /dev/null
+++ b/openecomp-be/tools/install/database/schemaTemplates/composition/nic.ftl
@@ -0,0 +1,36 @@
+{
+ "$schema": "http://json-schema.org/draft-04/schema#",
+ "type": "object",
+ "properties": {
+ "name": {
+ "type": "string"<#if !manual>,
+ "enum": [
+ "${nic.name}"
+ ],
+ "default": "${nic.name}"
+ </#if>
+ },
+ "description": {
+ "type": "string"
+ }<#if !manual><#if nic.networkId??>,
+ "networkId": {
+ "type": "string",
+ "enum": [
+ "${nic.networkId}"
+ ],
+ "default": "${nic.networkId}"
+ }
+ </#if><#else>,
+ "networkId": {
+ "type": "string",
+ "enum": [<#list networkIds as networkId>
+ "${networkId}"<#sep>,</#list>
+ ]
+ }
+ </#if>
+ },
+ "additionalProperties": false,
+ "required": [
+ "name"
+ ]
+} \ No newline at end of file