Beispiel #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")
Beispiel #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")
Beispiel #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
Beispiel #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