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/ +/834305 /opendev. org/openstack/ neutron/ commit/ 80879049cfd2d96 8ec4296def523e0 dbd6964f7a
Committed: https:/
Submitter: "Zuul (22348)"
Branch: stable/yoga
commit 80879049cfd2d96 8ec4296def523e0 dbd6964f7a
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