Skip to content

Commit cbebc3d

Browse files
committed
[DHCP agent] Fix route to OVN metadata port for non-isolated networks
This was missed in the original fix[1] during 5th patch set. When ovn metadata port exists it's ip should be used as route irrespective of subnet is isolated or not. [1] https://review.opendev.org/c/openstack/neutron/+/886988 Related-Bug: #1982569 Related-Bug: https://bugzilla.redhat.com/show_bug.cgi?id=2213862 Change-Id: Icd84685c37fffa20e4fc9c5522f77bc63e2565f2 (cherry picked from commit 56172ed)
1 parent 3ab7d6e commit cbebc3d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

neutron/agent/linux/dhcp.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1220,7 +1220,7 @@ def _generate_opts_per_subnet(self):
12201220
if subnet_dhcp_ip:
12211221
metadata_route_ip = subnet_dhcp_ip
12221222

1223-
if not isolated_subnets[subnet.id] and gateway:
1223+
elif not isolated_subnets[subnet.id] and gateway:
12241224
metadata_route_ip = gateway
12251225

12261226
if metadata_route_ip:

0 commit comments

Comments
 (0)