Skip to content

Commit

Permalink
Merge release branch 4.8 to master
Browse files Browse the repository at this point in the history
* 4.8:
  This patch addresses two issues:
  • Loading branch information
swill committed May 12, 2016
2 parents 9320f85 + 3bbeb6a commit 2b4b8aa
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
7 changes: 5 additions & 2 deletions systemvm/patches/debian/config/opt/cloud/bin/cs/CsConfig.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,11 @@ def get_domain(self):

def get_dns(self):
dns = []
# Check what happens with use_ext_dns
dns.append(self.address().get_guest_ip())
if not self.cl.get_use_ext_dns():
if not self.is_vpc() and self.cl.is_redundant():
dns.append(self.cl.get_guest_gw())
else:
dns.append(self.address().get_guest_ip())
names = ["dns1", "dns2"]
for name in names:
if name in self.cmdline().idata():
Expand Down
6 changes: 6 additions & 0 deletions systemvm/patches/debian/config/opt/cloud/bin/cs/CsDatabag.py
Original file line number Diff line number Diff line change
Expand Up @@ -148,3 +148,9 @@ def get_gateway(self):
if "gateway" in self.idata():
return self.idata()['gateway']
return False

def get_use_ext_dns(self):
if "useextdns" in self.idata():
return self.idata()['useextdns']
return False

0 comments on commit 2b4b8aa

Please sign in to comment.