[SDC] Onboarding 1710 rebase.
[sdc.git] / openecomp-be / tools / install / database / schemaTemplates / composition / nic.ftl
index 6111348..fec5b9c 100644 (file)
@@ -3,12 +3,11 @@
   "type": "object",
   "properties": {
     "name": {
-      "type": "string"<#if !manual>,
+      "type": "string",
       "enum": [
         "${nic.name}"
       ],
       "default": "${nic.name}"
-    </#if>
     },
     "description": {
       "type": "string"
       ],
       "default": "${nic.networkId}"
     }
-  </#if><#else>,
+  </#if>
+  <#elseif 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>
+  </#if>,
+    "networkDescription": {
+      "type": "string"
+    },
+    "networkType": {
+      "type": "string",
+      "enum": [
+        "${nic.networkType}"
+      ],
+      "default": "${nic.networkType}"
+    }
   },
+
   "additionalProperties": false,
   "required": [
     "name"