summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJames Denton <james.denton@outlook.com>2023-02-27 14:44:08 -0600
committerLucas Alvares Gomes <lucasagomes@gmail.com>2023-02-28 13:06:22 +0000
commitc1973939fe876ea3bb11ea1cb916bbd0c46720d0 (patch)
treefaa52fea55266b6539dc1f5f7685ea18cd3f9fde
parentde1a6db5c36b041c608a31bb2863714406772d4f (diff)
downloadneutron-c1973939fe876ea3bb11ea1cb916bbd0c46720d0.tar.gz
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 dbfc18d1fa122140074d5c960c8440189b386fb8)
-rw-r--r--neutron/common/ovn/constants.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/neutron/common/ovn/constants.py b/neutron/common/ovn/constants.py
index 9e6caa74e0..027027025e 100644
--- a/neutron/common/ovn/constants.py
+++ b/neutron/common/ovn/constants.py
@@ -167,7 +167,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',