Apply Ironic's server-ip-address as TFTP next-server

This patch uses existing DHCP option 255 (server-ip-address)
provided by Ironic and applies it as next-server for the purpose
of provisioning a baremetal server with OVN DHCP.

Related-Bug: #2007167
Change-Id: I59038639a8411c11c5fb8b366d9c858ef3db4f70
(cherry picked from commit dbfc18d1fa)
This commit is contained in:
James Denton 2023-02-27 14:44:08 -06:00 committed by Lucas Alvares Gomes
parent 43f8e592c2
commit 61ff4a1cc1
1 changed files with 2 additions and 1 deletions

View File

@ -166,7 +166,8 @@ SUPPORTED_DHCP_OPTS_MAPPING = {
'119': 'domain_search_list',
'252': 'wpad',
'210': 'path_prefix',
'150': 'tftp_server_address'},
'150': 'tftp_server_address',
'255': 'next_server'},
6: {'server-id': 'server_id',
'dns-server': 'dns_server',
'domain-search': 'domain_search',