From a948801e2ca4bf2d6fdeafa94fe65e60ec0d4f77 Mon Sep 17 00:00:00 2001 From: Hamdy Khader Date: Thu, 10 May 2018 15:57:09 +0300 Subject: [PATCH] Add DHCP_OPT_CLIENT_ID_NUM For Infiniband support, Ironic needs to send the 'client-id' DHCP option as a number in order for IP address assignment to work. This is now supported in Neutron, and can be specified as option number 61 as defined in RFC 4776. Partial-Bug: #1770932 Change-Id: Id8272ecfac41670693482f11d6bcb6ad211b993f --- neutron_lib/api/definitions/extra_dhcp_opt.py | 2 ++ .../client-id-number-dhcp-option-a099f927eb8f99af.yaml | 8 ++++++++ 2 files changed, 10 insertions(+) create mode 100644 releasenotes/notes/client-id-number-dhcp-option-a099f927eb8f99af.yaml diff --git a/neutron_lib/api/definitions/extra_dhcp_opt.py b/neutron_lib/api/definitions/extra_dhcp_opt.py index 050e32a05..cc2b587d7 100644 --- a/neutron_lib/api/definitions/extra_dhcp_opt.py +++ b/neutron_lib/api/definitions/extra_dhcp_opt.py @@ -46,6 +46,8 @@ EXTRA_DHCP_OPT_KEY_SPECS = [ EXTRADHCPOPTS = 'extra_dhcp_opts' DHCP_OPT_CLIENT_ID = "client-id" +# client-id option value as defined in RFC 4776 +DHCP_OPT_CLIENT_ID_NUM = 61 # The alias of the extension. ALIAS = 'extra_dhcp_opt' diff --git a/releasenotes/notes/client-id-number-dhcp-option-a099f927eb8f99af.yaml b/releasenotes/notes/client-id-number-dhcp-option-a099f927eb8f99af.yaml new file mode 100644 index 000000000..f7ba9a096 --- /dev/null +++ b/releasenotes/notes/client-id-number-dhcp-option-a099f927eb8f99af.yaml @@ -0,0 +1,8 @@ +--- +fixes: + - | + For Infiniband support, Ironic needs to send the ``client-id`` DHCP option + as a number in order for IP address assignment to work. + This is now supported in Neutron, and can be specified as option number + 61 as defined in RFC 4776. For more information see bug + `1770932 `_