MCPcopy Create free account
hub / github.com/apache/cloudstack / get_dns

Method get_dns

systemvm/debian/opt/cloud/bin/cs/CsConfig.py:120–133  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

118 return self.cl.get_use_router_ip_as_resolver()
119
120 def get_dns(self):
121 conf = self.cmdline().idata()
122 dns = []
123 if not self.use_extdns():
124 if not self.is_vpc() and self.cl.is_redundant() and self.cl.get_guest_gw():
125 dns.append(self.cl.get_guest_gw())
126 else:
127 dns.append(self.address().get_guest_ip())
128
129 if 'userouteripresolver' not in conf:
130 for name in ('dns1', 'dns2'):
131 if name in conf:
132 dns.append(conf[name])
133 return dns
134
135 def get_format(self):
136 return self.__LOG_FORMAT

Callers

nothing calls this directly

Calls 9

cmdlineMethod · 0.95
use_extdnsMethod · 0.95
is_vpcMethod · 0.95
addressMethod · 0.95
idataMethod · 0.80
is_redundantMethod · 0.80
get_guest_gwMethod · 0.80
get_guest_ipMethod · 0.80
appendMethod · 0.45

Tested by

no test coverage detected