Skip to content

Commit f81549c

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 87f7b9a commit f81549c

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
@@ -1289,7 +1289,7 @@ def _generate_opts_per_subnet(self):
12891289
if subnet_dhcp_ip:
12901290
metadata_route_ip = subnet_dhcp_ip
12911291

1292-
if not isolated_subnets[subnet.id] and gateway:
1292+
elif not isolated_subnets[subnet.id] and gateway:
12931293
metadata_route_ip = gateway
12941294

12951295
if metadata_route_ip:

0 commit comments

Comments
 (0)