🌟 [Major]: Add functionality that gets local IP configuration#2
Merged
Conversation
Contributor
There was a problem hiding this comment.
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.
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
… refactor Get-NetIPConfiguration to utilize it
…d remove redundant descriptions
3a17d4f
into
main
34 of 36 checks passed
|
Module Net - 1.0.0 published to the PowerShell Gallery. |
|
GitHub release for Net v1.0.0 has been created. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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:
Get-NetIPConfigurationfunction 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:
Get-NetIPConfigurationand its aliasIPConfig, ensuring the new functionality is properly validated.Type of change
Checklist