aboutgitcodebugslistschat
path: root/test/lib/setup
diff options
context:
space:
mode:
authorDavid Gibson <david@gibson.dropbear.id.au>2022-06-10 12:32:44 +1000
committerStefano Brivio <sbrivio@redhat.com>2022-06-15 09:38:10 +0200
commite48373382f7c84175a0f61890e8f0164cdd2d329 (patch)
tree513610472a9536e965ecd7b8b8a1dbca7b8c568f /test/lib/setup
parentca0c33ae5b8a68806dd1c766e2f58ce24867f334 (diff)
downloadpasst-e48373382f7c84175a0f61890e8f0164cdd2d329.tar
passt-e48373382f7c84175a0f61890e8f0164cdd2d329.tar.gz
passt-e48373382f7c84175a0f61890e8f0164cdd2d329.tar.bz2
passt-e48373382f7c84175a0f61890e8f0164cdd2d329.tar.lz
passt-e48373382f7c84175a0f61890e8f0164cdd2d329.tar.xz
passt-e48373382f7c84175a0f61890e8f0164cdd2d329.tar.zst
passt-e48373382f7c84175a0f61890e8f0164cdd2d329.zip
Use dhclient instead of udhcpc
For some reason, the passt/pasta tests and examples use dhclient for DHCPv6, but in most cases use udhcpc for DHCPv4. Change it to use dhclient for both DHCPv4 and DHCPv6. This means one less tool we need for testing, plus dhclient is easily available on Fedora whereas udhcpc is not. Note that the passt tests still rely on udhcpc indirectly because mbuto wants to put it into the guest images it generates. Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Diffstat (limited to 'test/lib/setup')
-rwxr-xr-xtest/lib/setup6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/lib/setup b/test/lib/setup
index 32515bf..e57d97c 100755
--- a/test/lib/setup
+++ b/test/lib/setup
@@ -144,7 +144,7 @@ setup_passt_in_ns() {
pane_run NS "ip -j link show | jq -rM '.[] | select(.link_type == \"ether\").ifname'"
pane_wait NS
__ifname="$(pane_parse NS)"
- pane_run NS "/sbin/udhcpc -i ${__ifname}"
+ pane_run NS "/sbin/dhclient -4 --no-pid ${__ifname}"
pane_status NS
sleep 2
pane_run NS "/sbin/dhclient -6 --no-pid ${__ifname}"
@@ -232,8 +232,8 @@ setup_two_guests() {
pane_wait PASST_1
__ifname="$(pane_parse PASST_1)"
- pane_run GUEST_1 "/sbin/udhcpc -i ${__ifname}"
- pane_run GUEST_2 "/sbin/udhcpc -i ${__ifname}"
+ pane_run GUEST_1 "/sbin/dhclient -4 ${__ifname}"
+ pane_run GUEST_2 "/sbin/dhclient -4 ${__ifname}"
pane_status GUEST_1
pane_status GUEST_2
sleep 2