def address_to(self, m): if isinstance(m, VirtualBoxState): return m.private_ipv4 return MachineState.address_to(self, m)
def address_to(self, m): if isinstance(m, EC2State): # FIXME: only if we're in the same region return m.private_ipv4 return MachineState.address_to(self, m)
def address_to(self, m): if isinstance(m, ContainerState) and self.host == m.host: return m.private_ipv4 return MachineState.address_to(self, m)
def address_to(self, resource): """Return the IP address to be used to access "resource" from this machine.""" if isinstance(resource, GCEState) and resource.network == self.network: return resource.private_ipv4 else: return MachineState.address_to(self, resource)
def address_to(self, m): if isinstance(m, LibvirtdState): return m.private_ipv4 return MachineState.address_to(self, m)