blob: 6b80ce1da9520d1b19c57c79f9cef9bbe03298bf [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": {
shrikantawachare9966c92018-05-15 15:32:18 +05306 "type": "string",
7 <#if manual>
shrikantawachar6c3541e2018-07-25 11:18:27 +05308 "pattern":"^[a-zA-Z0-9_]*$"
shrikantawachare9966c92018-05-15 15:32:18 +05309 <#else>
10 "enum": [
11 "${nic.name}"
12 ],
13 "default": "${nic.name}"
14 </#if>
15},
Michael Landof5f13c42017-02-19 12:35:04 +020016 "description": {
17 "type": "string"
18 }<#if !manual><#if nic.networkId??>,
19 "networkId": {
20 "type": "string",
21 "enum": [
22 "${nic.networkId}"
23 ],
24 "default": "${nic.networkId}"
25 }
Avi Zivb8e2faf2017-07-18 19:45:38 +030026 </#if>
27 <#elseif manual><#if nic.networkId??>,
28 "networkId": {
29 "type": "string",
30 "enum": [
31 "${nic.networkId}"
32 ],
33 "default": "${nic.networkId}"
34 }
35 </#if>
36<#else>,
Michael Landof5f13c42017-02-19 12:35:04 +020037 "networkId": {
38 "type": "string",
39 "enum": [<#list networkIds as networkId>
40 "${networkId}"<#sep>,</#list>
41 ]
42 }
Avi Zivb8e2faf2017-07-18 19:45:38 +030043 </#if>,
44 "networkDescription": {
45 "type": "string"
46 },
47 "networkType": {
48 "type": "string",
49 "enum": [
50 "${nic.networkType}"
51 ],
52 "default": "${nic.networkType}"
53 }
Michael Landof5f13c42017-02-19 12:35:04 +020054 },
Avi Zivb8e2faf2017-07-18 19:45:38 +030055
Michael Landof5f13c42017-02-19 12:35:04 +020056 "additionalProperties": false,
57 "required": [
58 "name"
59 ]
60}