blob: 15d34f248915fdcaf5e29aedf14aecca0843315a [file] [log] [blame]
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"name": {
"type": "string",
<#if manual>
{"pattern":"^[a-zA-Z0-9_]*$"}
<#else>
"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>
<#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>,
"networkDescription": {
"type": "string"
},
"networkType": {
"type": "string",
"enum": [
"${nic.networkType}"
],
"default": "${nic.networkType}"
}
},
"additionalProperties": false,
"required": [
"name"
]
}