test/lib: Wait for DHCPv4 before starting DHCPv6 client in two_guests test

I'm not sure why, but dhclient hangs otherwise. This reflects what we
do in the passt_in_ns setup steps.

Eventually, this whole block could go away if we let pasta configure
this network namespace with --config-net.

Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
This commit is contained in:
Stefano Brivio 2022-09-22 16:44:45 +02:00
parent 1134ce88fe
commit cff565a1f6

View file

@ -216,6 +216,7 @@ setup_two_guests() {
context_run qemu_1 "/sbin/dhclient -4 --no-pid ${__ifname}" context_run qemu_1 "/sbin/dhclient -4 --no-pid ${__ifname}"
context_run qemu_2 "/sbin/dhclient -4 --no-pid ${__ifname}" context_run qemu_2 "/sbin/dhclient -4 --no-pid ${__ifname}"
sleep 2
context_run qemu_1 "/sbin/dhclient -6 --no-pid ${__ifname}" context_run qemu_1 "/sbin/dhclient -6 --no-pid ${__ifname}"
context_run qemu_2 "/sbin/dhclient -6 --no-pid ${__ifname}" context_run qemu_2 "/sbin/dhclient -6 --no-pid ${__ifname}"