Merge "Issue a warning when add_ports=pxe and not PXE NIC address is provided"

This commit is contained in:
Jenkins 2015-11-19 11:28:18 +00:00 committed by Gerrit Code Review
commit c79c55e4e2
1 changed files with 4 additions and 0 deletions

View File

@ -151,6 +151,10 @@ class ValidateInterfacesHook(base.ProcessingHook):
pxe_mac = introspection_data.get('boot_interface')
if CONF.processing.add_ports == 'pxe' and not pxe_mac:
LOG.warning(_LW('No boot interface provided in the introspection '
'data, will add all ports with IP addresses'))
if CONF.processing.add_ports == 'pxe' and pxe_mac:
LOG.info(_LI('PXE boot interface was %s'), pxe_mac)
if '-' in pxe_mac: