Problem
The DhcpServerDsc.OptionValueHelper functions (Get-TargetResourceHelper, Set-TargetResourceHelper, Test-TargetResourceHelper) accept 'IPv6' in their AddressFamily parameter ValidateSet, but the implementation only calls DHCPServer v4 cmdlets (Get-DhcpServerv4OptionValue, Set-DhcpServerv4OptionValue, Remove-DhcpServerv4OptionValue).
This creates a mismatch between the interface contract and actual behavior, potentially leading to incorrect results when users specify IPv6.
Expected Behavior
Either:
- Implement IPv6 support by calling appropriate v6 cmdlets when AddressFamily='IPv6'
- Restrict the ValidateSet to only 'IPv4' until IPv6 is properly implemented
Current Workaround
Restrict AddressFamily parameter to only accept 'IPv4':
References
Reported by: @dan-hughes