mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 08:42:29 +01:00
Merge release branch 4.7 to 4.8
* 4.7: This patch addresses two issues:
This commit is contained in:
commit
3bbeb6af95
@ -68,8 +68,11 @@ class CsConfig(object):
|
||||
|
||||
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():
|
||||
|
||||
@ -148,3 +148,9 @@ class CsCmdLine(CsDataBag):
|
||||
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
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user