def update_dhcp(self, task, dhcp_opts):
"""Send or update the DHCP BOOT options for this node.
:param task: A TaskManager instance.
:param 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'}]
"""
AgentDeploy. take_over method has the following code:
provider = dhcp_factory. DHCPFactory( ) update_ dhcp(task, CONF.agent. agent_pxe_ bootfile_ name)
provider.
which seems to be incorreact, as second argument to update_dhcp should be a list of dicts, as mentioned in ironic. common. dhcp_provider https:/ /github. com/openstack/ ironic/ blob/master/ ironic/ common/ dhcp_factory. py#L85- L90 :
def update_dhcp(self, task, dhcp_opts):
[{'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'}]
"""Send or update the DHCP BOOT options for this node.
:param task: A TaskManager instance.
:param dhcp_opts: this will be a list of dicts, e.g.
::
"""