Ensure gateway is set for prefix delegated subnets
With [1] gateway is no longer set for subnet created
with prefix delegation, but when adding the subnet
to the router it fails as it expects gateway to be
set.
This patch ensures gateway is set temporary to the first IP
of the subnet as it used to be just like the temporary CIDR.
Also need to ensure dhcp configuration is skipped to avoid the
original issue[2].
Reviewed: https:/ /review. opendev. org/c/openstack /neutron/ +/834307 /opendev. org/openstack/ neutron/ commit/ 6f01d45c4a62aeb f2712eebe4ae250 0aa1357e0b
Committed: https:/
Submitter: "Zuul (22348)"
Branch: stable/wallaby
commit 6f01d45c4a62aeb f2712eebe4ae250 0aa1357e0b
Author: yatinkarel <email address hidden>
Date: Mon Feb 28 18:54:26 2022 +0530
Ensure gateway is set for prefix delegated subnets
With [1] gateway is no longer set for subnet created
with prefix delegation, but when adding the subnet
to the router it fails as it expects gateway to be
set.
This patch ensures gateway is set temporary to the first IP
of the subnet as it used to be just like the temporary CIDR.
Also need to ensure dhcp configuration is skipped to avoid the
original issue[2].
[1] https:/ /review. opendev. org/c/openstack /neutron/ +/699465 /bugs.launchpad .net/neutron/ +bug/1856675
[2] https:/
Closes-Bug: #1962306 0ef06fd2acba094 82e3436d18d 5e00a7cedbdc241 8d2196aa42)
Related-Bug: #1856675
Change-Id: I512f7d98ac99bb
(cherry picked from commit 820b2e26658a3fb