-
Notifications
You must be signed in to change notification settings - Fork 65
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
VMNetworkAdapter: add parameter IgnoreNetworkSetting #189
Conversation
We have renamed the resource, removing 'x', so please rebase this PR. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewed 2 of 4 files at r1, all commit messages.
Reviewable status: 2 of 4 files reviewed, 1 unresolved discussion (waiting on @johlju and @stehlih)
a discussion (no related file):
Looking at this change i thinking that adding a property for IgnoreNetworkSetting
is not the right move. Would it not be better to refactor the resource to not enforce the existing property NetworkSetting
if is is not specified in the configuration. if $PSBoundParameters.ContainsKey('NetworkSetting')
then the resource should enforce (test and set) the property.
@stehlih let me know if my suggestion in the review comment does not work? |
Your proposal is the best way but it changes the current behavior of the resource and DHCP will not enabled explicitly if the NetworkSettings parameter is not specified (-> this was an unexpected behavior for me because it had have some side effects on my guest VM). |
Happy to see the changes. Should we also add a property
Since we have renamed the resources and are releasing the module as a new major version we can also add this as a breaking change. I will wait for the updated PR. Many thanks and great work @stehlih! 🙇♂️ |
When this PR is reworked according to previous comment I think it will also close the issue #191, but would be great to add a test with the set of parameter as seen in the issue. |
FYI when rebasing. The resource and parameter descriptions has been removed from the README.md and moved to the schema.mof - the parameter descriptions are automatically generated for the WIki dokcumentation using the schema.mof and the resource's README.md. |
Pull Request (PR) description
xVMNetworkAdapter: add parameter IgnoreNetworkSetting
Set the new parameter to
True
if the guest operating system configures the network adapter.In this case all ip settings including DHCP are skipped.
The paramter is set to
False
as default to keep the current behavior.This Pull Request (PR) fixes the following issues
Task list
file CHANGELOG.md. Entry should say what was changed and how that
affects users (if applicable), and reference the issue being resolved
(if applicable).
and comment-based help.
This change is