From 16d9ba42f0b8b4487c8da2c0b0c228adce87d407 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Harald=20Jens=C3=A5s?= Date: Fri, 26 Sep 2025 02:06:49 +0200 Subject: [PATCH] Add v6 Option 59 to SUPPORTED_DHCP_OPTS_MAPPING MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit I have a usecase where I boot nova instances using an iPXE image. For IPv6 setting option 59 did not work, but it seems all that is needed to make the OVN DHCP service serve Option 59 is to add it to the supported opts mapping. ``` Configuring (net0 fa:16:3e:de:cf:88)................. ok net0: 2620:cf:cf:cf02::10/64 gw fe80::f816:3eff:feca:5746 net0: fe80::f816:3eff:fede:cf88/64 Filename: http://[2620:cf:cf:cf02::fff0]:8081/boot-artifacts/agent.x86_64.ipxe ``` Closes-Bug: #2125715 Change-Id: I43bb10e45a589e947e27e0bc98af4cef5fc7a386 Signed-off-by: Harald Jensås --- neutron/common/ovn/constants.py | 6 ++++-- .../notes/ovn-support-dhcpv6-opt-59-a2cce695182285d8.yaml | 5 +++++ 2 files changed, 9 insertions(+), 2 deletions(-) create mode 100644 releasenotes/notes/ovn-support-dhcpv6-opt-59-a2cce695182285d8.yaml diff --git a/neutron/common/ovn/constants.py b/neutron/common/ovn/constants.py index 9cf83222d88..782f7297ac8 100644 --- a/neutron/common/ovn/constants.py +++ b/neutron/common/ovn/constants.py @@ -189,14 +189,16 @@ SUPPORTED_DHCP_OPTS_MAPPING = { '210': 'path_prefix', '150': 'tftp_server_address', '255': 'next_server'}, - 6: {'server-id': 'server_id', + 6: {'bootfile-name': 'bootfile_name', + 'server-id': 'server_id', 'dns-server': 'dns_server', 'domain-search': 'domain_search', 'ia-addr': 'ia_addr', '2': 'server_id', '5': 'ia_addr', '24': 'domain_search', - '23': 'dns_server'}, + '23': 'dns_server', + '59': 'bootfile_name'}, } # Baremetal specific DHCP options for VNIC_BAREMETAL ports diff --git a/releasenotes/notes/ovn-support-dhcpv6-opt-59-a2cce695182285d8.yaml b/releasenotes/notes/ovn-support-dhcpv6-opt-59-a2cce695182285d8.yaml new file mode 100644 index 00000000000..d91d295b1c2 --- /dev/null +++ b/releasenotes/notes/ovn-support-dhcpv6-opt-59-a2cce695182285d8.yaml @@ -0,0 +1,5 @@ +--- +fixes: + - | + Use of DHCPv6 option 59 (bootfile-name) is now supported with OVN. + See bug: `2125715 `_.