Skip to content

Replace obsolete IPAddress.Address property in Assert-ScopeParameter #104

@coderabbitai

Description

@coderabbitai

Issue Description

The Assert-ScopeParameter function in source/Modules/DhcpServerDsc.Common/Public/Assert-ScopeParameter.ps1 currently uses the obsolete IPAddress.Address property for comparing IP address ranges. This property is deprecated and unreliable for IP address comparisons.

Background

This issue was identified during code review where IPAddress.Address is used to compare start and end IP ranges. The obsolete property should be replaced with a more reliable method for numeric IP address comparison.

References

Acceptance Criteria

  • Replace the obsolete IPAddress.Address property usage
  • Implement reliable IP address range comparison
  • Maintain existing functionality and error handling

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