automation: Disable ipv6 in the container

Until IPv6 is properly supported, disable the IPv6 stack
on eth1 and eth2 container interfaces.

Signed-off-by: Edward Haas <edwardh@redhat.com>
This commit is contained in:
Edward Haas 2018-10-22 22:33:34 +03:00 committed by Till Maas
parent 3e12bd928e
commit 742c816821

View File

@ -34,7 +34,9 @@ function add_extra_networks {
docker network connect $NET1 $CONTAINER_ID
docker_exec '
ip addr flush eth1 && \
ip addr flush eth2
ip addr flush eth2 && \
echo 1 > /proc/sys/net/ipv6/conf/eth1/disable_ipv6 || true \
echo 1 > /proc/sys/net/ipv6/conf/eth2/disable_ipv6 || true
'
}