Skip to content

tools/hv: Improve the sample hv_get_dhcp_info script

Ben Hutchings linux-hyperv 1 version Applied

Status from this message: Applied to hyperv-next. Thanks.

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 1 replyApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/2tools/hv: Make the sample hv_get_dhcp_info script more usefultools/hv/hv_get_dhcp_info.sh+75 -120 replies
2/2tools/hv: Make network-scripts DHCP status check more specifictools/hv/hv_get_dhcp_info.sh+2 -20 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/2] tools/hv: Improve the sample hv_get_dhcp_info script

The sample hv_get_dhcp_info script was originally supposed to be replaced by downstream distributions, but:

- Network Manager and systemd-networkd are used across many distributions
- Debian's ifupdown is not only used in Debian derivatives but also Alpine and Void Linux

This adds support for all of those.

The check for DHCP in network-scripts configuration files was also quite lax. This makes the regex a bit more strict.

Ben.

Ben Hutchings (2):
tools/hv: Make the sample hv_get_dhcp_info script more useful tools/hv: Make network-scripts DHCP status check more specific

 tools/hv/hv_get_dhcp_info.sh | 87 +++++++++++++++++++++++++++++++-----
 1 file changed, 75 insertions(+), 12 deletions(-)