Skip to content

🌟 [Major]: Add functionality that gets local IP configuration#2

Merged
Marius Storhaug (MariusStorhaug) merged 11 commits into
mainfrom
ipconfig
Aug 27, 2025
Merged

🌟 [Major]: Add functionality that gets local IP configuration#2
Marius Storhaug (MariusStorhaug) merged 11 commits into
mainfrom
ipconfig

Conversation

@MariusStorhaug

Copy link
Copy Markdown
Member

Description

This pull request introduces a new function for retrieving network interface IP configuration details. It also updates the test suite to validate the new network configuration functionality.

New network configuration functionality:

  • Added the Get-NetIPConfiguration function which retrieves detailed IP configuration for all network interfaces, including support for filtering by operational status and address family. It outputs structured objects with interface, IP, subnet mask, gateway, and DNS information.

Test suite updates:

  • Added new tests for Get-NetIPConfiguration and its alias IPConfig, ensuring the new functionality is properly validated.

Type of change

  • 📖 [Docs]
  • 🪲 [Fix]
  • 🩹 [Patch]
  • ⚠️ [Security fix]
  • 🚀 [Feature]
  • 🌟 [Breaking change]

Checklist

  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas

Copilot AI review requested due to automatic review settings August 27, 2025 10:42

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR introduces a new Get-NetIPConfiguration function that retrieves detailed network interface IP configuration information, replacing an existing test function. The new functionality provides comprehensive network details including IP addresses, subnet masks, gateway addresses, and DNS servers with support for filtering by interface status and address family.

  • Added comprehensive network IP configuration functionality with filtering capabilities
  • Replaced placeholder test function with production network utilities
  • Updated test suite to validate the new network configuration features

Reviewed Changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 4 comments.

File Description
src/functions/public/Get-NetIPConfiguration.ps1 New function that retrieves network interface IP configuration with filtering options and alias support
src/functions/public/Test-PSModuleTest.ps1 Removed placeholder test function that was replaced by the new network functionality
tests/Net.Tests.ps1 Updated tests to validate the new Get-NetIPConfiguration function and its IPConfig alias

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

Comment thread src/functions/public/Get-NetIPConfiguration.ps1 Outdated
Comment thread src/functions/public/Get-NetIPConfiguration.ps1 Outdated
Comment thread src/functions/public/Get-NetIPConfiguration.ps1 Outdated
Comment thread src/functions/public/Get-NetIPConfiguration.ps1 Outdated
@MariusStorhaug Marius Storhaug (MariusStorhaug) merged commit 3a17d4f into main Aug 27, 2025
34 of 36 checks passed
@github-actions

Copy link
Copy Markdown

Module Net - 1.0.0 published to the PowerShell Gallery.

@github-actions

Copy link
Copy Markdown

GitHub release for Net v1.0.0 has been created.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants