Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Ensure that the host is connected to Shared network #266

Merged
merged 4 commits into from
Jul 6, 2016

Conversation

legal90
Copy link
Collaborator

@legal90 legal90 commented Jul 5, 2016

It fixes an issue caused by accidental disabling an option "Connect Mac to this network":
https://forum.parallels.com/threads/error-undefined-method-for-nil-nilclass-nomethoderror-with-pd-11.329996/

Since Parallels Desktop 11.2.1 it will be automatically fixed by connecting the host to Shared network forcibly. Otherwise, the human-readable error will be displayed.

This PR also contains some minor improvements reducing CLI calls during the network configuration.

cc: @Kasen

@legal90 legal90 force-pushed the refactor-port-forwarding branch from 746d299 to b0acede Compare July 6, 2016 15:43
legal90 added 4 commits July 6, 2016 19:26
It allows to reduce `prlctl` calls. Actually, Shared network name is hard-coded in Parallels Desktop and
it will not be changed in the near future.
With PD 11.2.1 and higher it will be automatically fixed by connecting host to Shared network.
For older versions the exception will be raised.
@legal90 legal90 force-pushed the refactor-port-forwarding branch from b0acede to c8e8e60 Compare July 6, 2016 16:26
@legal90 legal90 merged commit 8b8a46c into Parallels:master Jul 6, 2016
@legal90 legal90 deleted the refactor-port-forwarding branch July 6, 2016 17:11
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant