diff --git a/neutron/agent/linux/dhcp.py b/neutron/agent/linux/dhcp.py index 0504fae8d04..5569737bbe1 100644 --- a/neutron/agent/linux/dhcp.py +++ b/neutron/agent/linux/dhcp.py @@ -1212,7 +1212,7 @@ class Dnsmasq(DhcpLocalProcess): if subnet_dhcp_ip: metadata_route_ip = subnet_dhcp_ip - if not isolated_subnets[subnet.id] and gateway: + elif not isolated_subnets[subnet.id] and gateway: metadata_route_ip = gateway if metadata_route_ip: