Merge branch 'master' into 2teardown

This commit is contained in:
Will Miller 2018-09-12 14:23:05 +00:00
commit 92b473c287
2 changed files with 14 additions and 0 deletions

View File

@ -41,6 +41,7 @@ class FilterModule(object):
# Libvirt filters.
'set_libvirt_interfaces': set_libvirt_interfaces,
'set_libvirt_start_params': set_libvirt_start_params,
'set_libvirt_volume_pool': set_libvirt_volume_pool,
# Miscellaneous filters.
@ -83,6 +84,18 @@ def set_libvirt_volume_pool(context, node):
return node
def set_libvirt_start_params(node):
"""Set the Libvirt start and autostart parameters.
Since Ironic will be managing the power state and we may want to perform
inspection, don't start the VM after definition or automatically start on
host start-up.
"""
node['start'] = False
node['autostart'] = False
return node
@contextfilter
def bridge_name(context, physnet):
"""Get the Tenks OVS bridge name from a physical network name.

View File

@ -27,4 +27,5 @@
else 'present')})
| map('set_libvirt_interfaces')
| map('set_libvirt_volume_pool')
| map('set_libvirt_start_params')
| list }}