def test_that_tinc_peers_are_pingable_on(tinc_network):
for tinc_node in tinc_network.tinc_nodes:
with settings(
hide('stdout', 'running'),
host_string=tinc_node.host_string,
private_key_filename=tinc_node.private_key
):
print(" running on %s" % tinc_node.host_string)
for tinc_peer in tinc_node.tinc_peers:
cmd = sudo('ping -c 1 %s' % tinc_peer.tinc_ip)
try:
assert cmd.return_code == 0
except Exception as detail:
raise Exception("%s %s" % (cmd.return_code, detail))
评论列表
文章目录