def _TestReachable(self, ip):
    try:
      self.RemoteCommand('ping -c 1 %s' % ip)
    except errors.VirtualMachine.RemoteCommandError:
      return False
    return True
Returns True if the VM can reach the ip address and False otherwise.
dataset/ETHPy150Open GoogleCloudPlatform/PerfKitBenchmarker/perfkitbenchmarker/linux_virtual_machine.py/BaseLinuxMixin._TestReachable