provider/virtualbox: Refactor host-only network settings#7699
Merged
chrisroberts merged 3 commits intohashicorp:masterfrom Nov 2, 2018
Merged
provider/virtualbox: Refactor host-only network settings#7699chrisroberts merged 3 commits intohashicorp:masterfrom
chrisroberts merged 3 commits intohashicorp:masterfrom
Conversation
Contributor
Author
|
@chrisroberts Could you please review this? |
Contributor
Author
|
I've rebased the branch and fixed a merge conflict. |
3077ee3 to
a452f72
Compare
Contributor
Author
|
Rebased |
a452f72 to
2f2a678
Compare
2f2a678 to
b79e022
Compare
b79e022 to
d9d0811
Compare
chrisroberts
approved these changes
Nov 2, 2018
Member
chrisroberts
left a comment
There was a problem hiding this comment.
Just updated the error output to be formatted instead of the raw hash. Otherwise, this looks great! Thanks so much and thanks for the rebases (and patience 😃) Cheers!
|
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further. |
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 subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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.
I've refactored
VagrantPlugins:: ProviderVirtualBox::Action:: Network#hostonly_configin order to make it more simpler, readable and safer to use:IPAddrinstances, not strings.Use
IPAddrmethods instead ofVagrant::Util::NetforkIP#network_addressand string splitting.private_network(aka host-only), but the validation could be moved to the global scope if you think it's reasonable. Examples:Existing unit tests for this class are passed. I've also verified it with manual tests on real VMs.