public inbox for passt-dev@passt.top
 help / color / mirror / code / Atom feed
c6f4c0fca9e44d8ee35111fa6c6f4a42abbb9bdc blob 769 bytes (raw)

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
 
#!/bin/sh
#
# SPDX-License-Identifier: GPL-2.0-or-later
#
# Minimal dhclient-script for pasta tests. The host's dhclient-script
# fails inside user namespaces (NetworkManager hooks, resolv.conf
# writes, etc.), so we use this stripped-down version instead.
# Based on the guest script in test/passt.mbuto.

[ -n "${new_interface_mtu}" ]       && ip link set dev ${interface} mtu ${new_interface_mtu}

[ -n "${new_ip_address}" ]          && ip addr replace ${new_ip_address}/${new_subnet_mask} dev ${interface}
[ -n "${new_routers}" ]             && for r in ${new_routers}; do ip route replace default via ${r} dev ${interface}; done

[ -n "${new_ip6_address}" ]         && ip -6 addr replace ${new_ip6_address}/${new_ip6_prefixlen:-128} dev ${interface} nodad

exit 0
debug log:

solving c6f4c0fc ...
found c6f4c0fc in https://archives.passt.top/passt-dev/20260621012713.2007724-1-jmaloy@redhat.com/

applying [1/1] https://archives.passt.top/passt-dev/20260621012713.2007724-1-jmaloy@redhat.com/
diff --git a/test/lib/dhclient-script b/test/lib/dhclient-script
new file mode 100755
index 00000000..c6f4c0fc

Checking patch test/lib/dhclient-script...
Applied patch test/lib/dhclient-script cleanly.

index at:
100755 c6f4c0fca9e44d8ee35111fa6c6f4a42abbb9bdc	test/lib/dhclient-script

Code repositories for project(s) associated with this public inbox

	https://passt.top/passt

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for IMAP folder(s).