示例#1
0
 def address_to(self, m):
     if isinstance(m, VirtualBoxState):
         return m.private_ipv4
     return MachineState.address_to(self, m)
示例#2
0
 def address_to(self, m):
     if isinstance(m, VirtualBoxState):
         return m.private_ipv4
     return MachineState.address_to(self, m)
示例#3
0
文件: ec2.py 项目: wizeman/nixops
 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)
示例#4
0
 def address_to(self, m):
     if isinstance(m, ContainerState) and self.host == m.host:
         return m.private_ipv4
     return MachineState.address_to(self, m)
示例#5
0
 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)
示例#6
0
 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)
示例#7
0
 def address_to(self, m):
     if isinstance(m, LibvirtdState):
         return m.private_ipv4
     return MachineState.address_to(self, m)
示例#8
0
文件: libvirtd.py 项目: thpham/nixops
 def address_to(self, m):
     if isinstance(m, LibvirtdState):
         return m.private_ipv4
     return MachineState.address_to(self, m)