-
Notifications
You must be signed in to change notification settings - Fork 90
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #210 from PlagueHO/Issue-209
Improve xNetAdapterName Resource to handle already renamed adapters - Fixes #209
- Loading branch information
Showing
11 changed files
with
309 additions
and
141 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
17 changes: 9 additions & 8 deletions
17
...les/xNetworking/DSCResources/MSFT_xNetAdapterName/en-us/MSFT_xNetAdapterName.strings.psd1
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,11 @@ | ||
ConvertFrom-StringData @' | ||
GettingNetAdapterNameMessage = Getting the Network Adapter Name. | ||
NetAdapterNameFoundMessage = Network Adapter '{0}' found. | ||
SettingNetAdapterNameMessage = Setting the Network Adapter Name. | ||
RenamingNetAdapterNameMessage = Renaming Network Adapter '{0}' to '{1}'. | ||
NetAdapterNameRenamedMessage = Network Adapter renamed to '{0}'. | ||
TestingNetAdapterNameMessage = Testing the Network Adapter Name. | ||
NetAdapterNameMatchMessage = Network Adapter Name '{0}' matches the adapter that was found. | ||
NetAdapterNameNotMatchMessage = Network Adapter Name '{0}' does not match the adapter '{1}' that was found. | ||
GettingNetAdapterNameMessage = Getting the network adapter Name '{0}'. | ||
FindNetAdapterMessage = Finding network adapter matching search criteria. | ||
NetAdapterNameFoundMessage = network adapter '{0}' found. | ||
SettingNetAdapterNameMessage = Setting the network adapter Name '{0}'. | ||
RenamingNetAdapterNameMessage = Renaming network adapter '{0}' to '{1}'. | ||
NetAdapterNameRenamedMessage = network adapter renamed to '{0}'. | ||
TestingNetAdapterNameMessage = Testing the network adapter Name '{0}'. | ||
NetAdapterWithNewNameExistsMessage = A network adapter was found with the intended new name '{0}' of the Adapter. No rename required. | ||
NetAdapterNameNotMatchMessage = network adapter Name '{0}' does not match the adapter '{1}' that was found. Rename required. | ||
'@ |
This file contains 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
10 changes: 5 additions & 5 deletions
10
Modules/xNetworking/Modules/NetworkingDsc.Common/en-us/NetworkingDsc.Common.strings.psd1
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
ConvertFrom-StringData @' | ||
FindingNetAdapterMessage = Finding Network Adapters matching the parameters. | ||
NetAdapterFoundMessage = {0} Network Adapters were found matching the parameters. | ||
NetAdapterParameterError = At least one Network Adapter parameter must be passed. | ||
NetAdapterNotFoundError = A Network Adapter matching the parameters was not found. Please correct the properties and try again. | ||
FindingNetAdapterMessage = Finding network adapters matching the parameters. | ||
AllNetAdaptersFoundMessage = Found all network adapters because no filter parameters provided. | ||
NetAdapterFoundMessage = {0} network adapters were found matching the parameters. | ||
NetAdapterNotFoundError = A network adapter matching the parameters was not found. Please correct the properties and try again. | ||
MultipleMatchingNetAdapterFound = Please adjust the parameters or specify IgnoreMultipleMatchingAdapters to only use the first and try again. | ||
InvalidNetAdapterNumberError = Network Adapter interface number {0} was specified but only {1} was found. Please correct the interface number and try again. | ||
InvalidNetAdapterNumberError = network adapter interface number {0} was specified but only {1} was found. Please correct the interface number and try again. | ||
'@ |
This file contains 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
This file contains 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
2 changes: 1 addition & 1 deletion
2
...tegration/MSFT_xNetAdapterName.config.ps1 → ...ation/MSFT_xNetAdapterName_all.config.ps1
This file contains 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
10 changes: 10 additions & 0 deletions
10
Tests/Integration/MSFT_xNetAdapterName_nameonly.config.ps1
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
configuration MSFT_xNetAdapterName_Config_NameOnly { | ||
Import-DscResource -ModuleName xNetworking | ||
|
||
node localhost { | ||
xNetAdapterName Integration_Test { | ||
Name = $Node.Name | ||
NewName = $Node.NewName | ||
} | ||
} | ||
} |
Oops, something went wrong.