1 ##############################################################################
2 # Copyright (c) 2018 Enea AB and others.
3 # All rights reserved. This program and the accompanying materials
4 # are made available under the terms of the Apache License, Version 2.0
5 # which accompanies this distribution, and is available at
6 # http://www.apache.org/licenses/LICENSE-2.0
7 ##############################################################################
9 $schema: 'http://json-schema.org/schema#'
10 $id: 'https://github.com/opnfv/pharos/blob/master/config/pdf/pod1.yaml'
15 # NOTE: I hope this is going away soon, so I won't model it yet
20 # NOTE: To be properly modeled by Compass4NFV maintainers
24 # NOTE: To be properly modeled by Daisy maintainers
36 type: ['string', 'null']
38 type: ['string', 'null']
40 type: ['string', 'null']
42 type: ['string', 'null']
43 required: ['admin', 'mgmt', 'private', 'public']
44 additionalProperties: false
46 additionalProperties: false
54 required: ['timeout_comissioning', 'timeout_deploying']
55 additionalProperties: false
67 type: ['string', 'null']
71 type: ['string', 'null']
72 required: ['interfaces', 'busaddr']
73 additionalProperties: false
75 additionalProperties: false
89 properties: &compute_params_common_properties
90 nova_cpu_pinning: # Optional
92 compute_hugepages_size:
95 compute_hugepages_count:
97 compute_hugepages_mount:
99 compute_kernel_isolcpu: # Optional
101 compute_ovs_pmd_cpu_mask: # Optional
102 type: ['string', 'number']
103 compute_ovs_memory_channels: # Optional
104 type: ['string', 'number']
105 required: ['compute_hugepages_size', 'compute_hugepages_count',
106 'compute_hugepages_mount']
107 additionalProperties: false
111 <<: *compute_params_common_properties
114 compute_ovs_dpdk_socket_mem:
115 type: ['string', 'number']
116 compute_ovs_dpdk_lcore_mask:
117 type: ['string', 'number']
122 required: ['compute_dpdk_driver', 'dpdk0_driver', 'dpdk0_n_rxq',
123 'compute_ovs_dpdk_socket_mem',
124 'compute_ovs_dpdk_lcore_mask']
125 additionalProperties: false
126 additionalProperties: false
127 required: ['compute_params']
128 additionalProperties: false
130 additionalProperties: false
131 required: ['jumphost', 'network']
132 additionalProperties: false
136 # NOTE: To be properly modeled by XCI maintainers
138 ##############################################################################
139 # Top-level structure:
140 # - define all possible top-level and second-level keys, without enforcing a
141 # schema for second-level, just so we can disallow additional properties;
142 # - require 'version' and allow dynamically generated 'version_x.y' key;
146 # version_x.y keys are auto-added by `validate_schema.py` based on 'version'
156 enum: ['apex', 'compass4nfv', 'daisy', 'fuel', 'joid', 'osa']
167 required: ['version']
168 additionalProperties: false
169 ############################################################################
171 # - based on dynamically added 'version_x.y', require additional IDF blocks
172 # and validate them against the proper schema version;
177 $ref: '#/definitions/net_config/v0.1'
179 $ref: '#/definitions/compass/v0.1'
181 $ref: '#/definitions/daisy/v0.1'
183 $ref: '#/definitions/fuel/v0.1'
185 $ref: '#/definitions/osa/v0.1'
187 required: ['net_config']
189 required: ['net_config']
191 required: ['net_config']
193 # Do not allow any properties not defined here. This lets us catch typos.
194 additionalProperties: false