Remove dhcp_extra_opt name after first newline character
Passing newline as extra dhcp option name to the DHCP agent causes
issues with configuration of the dnsmasq process for the network.
This patch removes everything what is after first newline character
in the dhcp_extra_opt's name before building dnsmasq's config.
Closes-bug: #1943930
Change-Id: Iab2832e750ff5ef09c5dcacae4dbff4f9e62bc2d
(cherry picked from commit 5abd1fb61018e497b369712a0952bb1a18022142)
Reviewed: https:/ /review. opendev. org/c/openstack /neutron/ +/810875 /opendev. org/openstack/ neutron/ commit/ 073c5f87e546822 84b0d213147af8a 8381f3e30a
Committed: https:/
Submitter: "Zuul (22348)"
Branch: stable/wallaby
commit 073c5f87e546822 84b0d213147af8a 8381f3e30a
Author: Slawek Kaplonski <email address hidden>
Date: Fri Sep 17 10:57:18 2021 +0200
Remove dhcp_extra_opt name after first newline character
Passing newline as extra dhcp option name to the DHCP agent causes
issues with configuration of the dnsmasq process for the network.
This patch removes everything what is after first newline character
in the dhcp_extra_opt's name before building dnsmasq's config.
Closes-bug: #1943930 f09c5dcacae4dbf f4f9e62bc2d 7b369712a0952bb 1a18022142)
Change-Id: Iab2832e750ff5e
(cherry picked from commit 5abd1fb61018e49