aboutgitcodebugslistschat
path: root/test/two_guests
diff options
context:
space:
mode:
authorStefano Brivio <sbrivio@redhat.com>2021-10-21 17:39:06 +0200
committerStefano Brivio <sbrivio@redhat.com>2021-10-21 17:54:03 +0200
commite934da3c8199e96624bc22abdcca71e953cf27f7 (patch)
tree9e5c092470d44af6b9f7d6dd05042947b2e08f4f /test/two_guests
parenta2b86c5f9002ef3f7165f84a51c8dab4f574af29 (diff)
downloadpasst-e934da3c8199e96624bc22abdcca71e953cf27f7.tar
passt-e934da3c8199e96624bc22abdcca71e953cf27f7.tar.gz
passt-e934da3c8199e96624bc22abdcca71e953cf27f7.tar.bz2
passt-e934da3c8199e96624bc22abdcca71e953cf27f7.tar.lz
passt-e934da3c8199e96624bc22abdcca71e953cf27f7.tar.xz
passt-e934da3c8199e96624bc22abdcca71e953cf27f7.tar.zst
passt-e934da3c8199e96624bc22abdcca71e953cf27f7.zip
test/two_guests: Let the guests end DAD before starting the DHCPv6 client
They'll start DAD as we bring up the interface, and the DHCPv6 client might be unreasonably delayed if we start it too early. Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
Diffstat (limited to 'test/two_guests')
-rw-r--r--test/two_guests/basic1
1 files changed, 1 insertions, 0 deletions
diff --git a/test/two_guests/basic b/test/two_guests/basic
index 13277d8..c97a836 100644
--- a/test/two_guests/basic
+++ b/test/two_guests/basic
@@ -32,6 +32,7 @@ check [ "__ADDR1__" = "__HOST_ADDR__" ]
check [ "__ADDR2__" = "__HOST_ADDR__" ]
test DHCPv6: addresses
+sleep 2 # Link is up now: DAD
guest1 /sbin/dhclient -6 __IFNAME1__
guest2 /sbin/dhclient -6 __IFNAME1__
g1out ADDR1_6 ip -j -6 ad sh|jq -rM '.[] | select(.ifname == "__IFNAME1__").addr_info[] | select(.prefixlen == 128).local'