DRYD-30 Support node tags and kernel parameters

Create MaaS API model for Tags
Update YAML schema to add 'platform' section to HostProfile/BaremetalNode
Update YAML ingester to support platform section
Add node_filter support to the /tasks API
This commit is contained in:
Scott Hussey
2017-06-20 14:51:47 -05:00
parent aa760998ea
commit 9f83951054
9 changed files with 374 additions and 9 deletions

View File

@@ -306,6 +306,15 @@ class YamlIngester(IngesterPlugin):
model.interfaces.append(int_model)
platform = spec.get('platform', {})
model.image = platform.get('image', None)
model.kernel = platform.get('kernel', None)
model.kernel_params = {}
for k,v in platform.get('kernel_params', {}).items():
model.kernel_params[k] = v
model.primary_network = spec.get('primary_network', None)
node_metadata = spec.get('metadata', {})