Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
VR CsConfig: reintroduce old get_dns() behaviour for redundant non-VPC's
  • Loading branch information
Ronald van Zantvoort authored and wido committed Jun 7, 2016
commit f379df4bc27eda991079f3e462bfd27a11bfea12
5 changes: 4 additions & 1 deletion systemvm/patches/debian/config/opt/cloud/bin/cs/CsConfig.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,10 @@ def get_dns(self):
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():
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

so this would treat isolated and shared networks alike. Is that acceptable @ustcweizhou ?

dns.append(self.cl.get_guest_gw())
else:
dns.append(self.address().get_guest_ip())

for name in ('dns1', 'dns2'):
if name in conf:
Expand Down