summaryrefslogtreecommitdiff
path: root/ironic/tests/unit/db/utils.py
diff options
context:
space:
mode:
authorIlya Etingof <etingof@gmail.com>2020-03-23 13:47:08 +0100
committerIury Gregory Melo Ferreira <imelofer@redhat.com>2020-05-05 15:57:36 +0200
commit653d4e4ef55bf5acb315339eb79018c0e432c210 (patch)
tree6718206feb7d015b7e631f9093ec1304a1128b3c /ironic/tests/unit/db/utils.py
parent82c26635648ac2e8fa7e0ae4c802a66ba4436637 (diff)
downloadironic-653d4e4ef55bf5acb315339eb79018c0e432c210.tar.gz
Add `network_data` field to ironic node object
A new dictionary field `network_data` is added to the node object. This new field can be populated by the operator with node static network configuration. Ironic API now performs formal JSON document validation of node `network_data` field content against user-supplied JSON schema at driver validation step. As of this commit, the new `network_data` field is not actually used by ironic, otherwise it should be perfectly functional. In the following commits, network static configuration will be taken from this field and handed over to ironic ramdisk bootstrapping utilities. Change-Id: I868b3b56a17f59e5aa1494b2e0ebc9c4e34ef173 Story: 2006691 Task: 36991
Diffstat (limited to 'ironic/tests/unit/db/utils.py')
-rw-r--r--ironic/tests/unit/db/utils.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/ironic/tests/unit/db/utils.py b/ironic/tests/unit/db/utils.py
index a7b720f4b..96254889d 100644
--- a/ironic/tests/unit/db/utils.py
+++ b/ironic/tests/unit/db/utils.py
@@ -228,6 +228,7 @@ def get_test_node(**kw):
'retired': kw.get('retired', False),
'retired_reason': kw.get('retired_reason', None),
'lessee': kw.get('lessee', None),
+ 'network_data': kw.get('network_data'),
}
for iface in drivers_base.ALL_INTERFACES: