blob: fec5b9cd6407b01a121cc8371cfff38bb2ff0b33 [file] [log] [blame]
Michael Landof5f13c42017-02-19 12:35:04 +02001{
2 "$schema": "http://json-schema.org/draft-04/schema#",
3 "type": "object",
4 "properties": {
5 "name": {
Avi Zivb8e2faf2017-07-18 19:45:38 +03006 "type": "string",
Michael Landof5f13c42017-02-19 12:35:04 +02007 "enum": [
8 "${nic.name}"
9 ],
10 "default": "${nic.name}"
Michael Landof5f13c42017-02-19 12:35:04 +020011 },
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 }
Avi Zivb8e2faf2017-07-18 19:45:38 +030022 </#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>,
Michael Landof5f13c42017-02-19 12:35:04 +020033 "networkId": {
34 "type": "string",
35 "enum": [<#list networkIds as networkId>
36 "${networkId}"<#sep>,</#list>
37 ]
38 }
Avi Zivb8e2faf2017-07-18 19:45:38 +030039 </#if>,
40 "networkDescription": {
41 "type": "string"
42 },
43 "networkType": {
44 "type": "string",
45 "enum": [
46 "${nic.networkType}"
47 ],
48 "default": "${nic.networkType}"
49 }
Michael Landof5f13c42017-02-19 12:35:04 +020050 },
Avi Zivb8e2faf2017-07-18 19:45:38 +030051
Michael Landof5f13c42017-02-19 12:35:04 +020052 "additionalProperties": false,
53 "required": [
54 "name"
55 ]
56}