Skip to content

Commit f5b4060

Browse files
committed
VR: fix dns list in redundant VPC VRs
Fixes: apache#12107
1 parent e23c7ef commit f5b4060

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

systemvm/debian/opt/cloud/bin/cs/CsDhcp.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ def configure_server(self):
110110
if gn.get_dns() and device:
111111
sline = "dhcp-option=tag:interface-%s-%s,6" % (device, idx)
112112
dns_list = [x for x in gn.get_dns() if x]
113-
if (self.config.is_vpc() or self.config.is_router()) and ('is_vr_guest_gateway' in gn.data and gn.data['is_vr_guest_gateway']):
113+
if (self.config.is_vpc() or self.config.is_router()) and not gn.is_vr_guest_gateway():
114114
if gateway in dns_list:
115115
dns_list.remove(gateway)
116116
if gn.data['router_guest_ip'] != ip:

0 commit comments

Comments
 (0)