(self)
| 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 |
nothing calls this directly
no test coverage detected