Ejemplo n.º 1
0
def docker_ipv6_network_fixture():
    agents = shakedown.get_agents()
    network_cmd = f"sudo docker network create --driver=bridge --ipv6 --subnet=fd01::/64 mesos-docker-ipv6-test"
    for agent in agents:
        shakedown.run_command_on_agent(agent, network_cmd)
    yield
    for agent in agents:
        shakedown.run_command_on_agent(agent, f"sudo docker network rm mesos-docker-ipv6-test")
Ejemplo n.º 2
0
def docker_ipv6_network_fixture():
    agents = shakedown.get_agents()
    network_cmd = f"sudo docker network create --driver=bridge --ipv6 --subnet=fd01::/64 mesos-docker-ipv6-test"
    for agent in agents:
        shakedown.run_command_on_agent(agent, network_cmd)
    yield
    for agent in agents:
        shakedown.run_command_on_agent(
            agent, f"sudo docker network rm mesos-docker-ipv6-test")
Ejemplo n.º 3
0
 def check_ip_addresses_on_overlay():
     # the overlay IP address should not contain any agent IPs
     return len(
         set(ip_addresses).intersection(set(shakedown.get_agents()))) == 0
Ejemplo n.º 4
0
 def check_ip_addresses_on_overlay():
     # the overlay IP address should not contain any agent IPs
     return len(set(ip_addresses).intersection(set(shakedown.get_agents()))) == 0