The ironic.common.dhcp_factory Module

class ironic.common.dhcp_factory.DHCPFactory(**kwargs)[source]

Bases: object

update_dhcp(task, dhcp_opts, ports=None)[source]

Send or update the DHCP BOOT options for this node.

Parameters:
  • task – A TaskManager instance.
  • dhcp_opts

    this will be a list of dicts, e.g.

    [{'opt_name': 'bootfile-name',
      'opt_value': 'pxelinux.0'},
     {'opt_name': 'server-ip-address',
      'opt_value': '123.123.123.456'},
     {'opt_name': 'tftp-server',
      'opt_value': '123.123.123.123'}]
    
  • ports – a list of Neutron port dicts to update DHCP options on. If None, will get the list of ports from the Ironic port objects.

This Page