networking: add dhcpClientId option to set DHCP Client ID
This commit is contained in:
parent
8b720b9662
commit
05a5979906
4 changed files with 37 additions and 0 deletions
14
tests/networking-networkservices-no-dhcp-client-id.nix
Normal file
14
tests/networking-networkservices-no-dhcp-client-id.nix
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
{ config, lib, ... }:
|
||||
|
||||
{
|
||||
networking.knownNetworkServices = [ "Wi-Fi" "Thunderbolt Ethernet" ];
|
||||
networking.dns = [ "8.8.8.8" "8.8.4.4" ];
|
||||
|
||||
test = ''
|
||||
echo checking dhcp client ID is not configured in /activate >&2
|
||||
if grep -q "networksetup -setdhcp" ${config.out}/activate; then
|
||||
echo "unexpected dhcp client ID configuration in /activate" >&2
|
||||
exit 1
|
||||
fi
|
||||
'';
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue