Skip to content

IPv6 support missing in DhcpServerDsc.OptionValueHelper functions #106

@coderabbitai

Description

@coderabbitai

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:

  1. Implement IPv6 support by calling appropriate v6 cmdlets when AddressFamily='IPv6'
  2. Restrict the ValidateSet to only 'IPv4' until IPv6 is properly implemented

Current Workaround

Restrict AddressFamily parameter to only accept 'IPv4':

[ValidateSet('IPv4')]

References

Reported by: @dan-hughes

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementThe issue is an enhancement request.help wantedThe issue is up for grabs for anyone in the community.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions