VR CsConfig: reintroduce old get_dns() behaviour for redundant non-VPC's

This commit is contained in:
Ronald van Zantvoort 2016-05-18 14:09:39 +02:00 committed by Wido den Hollander
parent d14a484374
commit f379df4bc2
1 changed files with 4 additions and 1 deletions

View File

@ -82,7 +82,10 @@ class CsConfig(object):
conf = self.cmdline().idata()
dns = []
if not self.use_extdns():
dns.append(self.address().get_guest_ip())
if not self.is_vpc() and self.cl.is_redundant() and self.cl.get_guest_gw():
dns.append(self.cl.get_guest_gw())
else:
dns.append(self.address().get_guest_ip())
for name in ('dns1', 'dns2'):
if name in conf: