[SDC] Onboarding 1710 rebase.
[sdc.git] / openecomp-be / tools / install / database / schemaTemplates / composition / nic.ftl
1 {
2   "$schema": "http://json-schema.org/draft-04/schema#",
3   "type": "object",
4   "properties": {
5     "name": {
6       "type": "string",
7       "enum": [
8         "${nic.name}"
9       ],
10       "default": "${nic.name}"
11     },
12     "description": {
13       "type": "string"
14     }<#if !manual><#if nic.networkId??>,
15     "networkId": {
16       "type": "string",
17       "enum": [
18         "${nic.networkId}"
19       ],
20       "default": "${nic.networkId}"
21     }
22   </#if>
23   <#elseif manual><#if nic.networkId??>,
24   "networkId": {
25   "type": "string",
26   "enum": [
27   "${nic.networkId}"
28   ],
29   "default": "${nic.networkId}"
30   }
31   </#if>
32 <#else>,
33     "networkId": {
34       "type": "string",
35       "enum": [<#list networkIds as networkId>
36         "${networkId}"<#sep>,</#list>
37       ]
38     }
39   </#if>,
40     "networkDescription": {
41       "type": "string"
42     },
43     "networkType": {
44       "type": "string",
45       "enum": [
46         "${nic.networkType}"
47       ],
48       "default": "${nic.networkType}"
49     }
50   },
51
52   "additionalProperties": false,
53   "required": [
54     "name"
55   ]
56 }