Skip to content

Ensure that the host is connected to Shared network#266

Merged
legal90 merged 4 commits intoParallels:masterfrom
legal90:refactor-port-forwarding
Jul 6, 2016
Merged

Ensure that the host is connected to Shared network#266
legal90 merged 4 commits intoParallels:masterfrom
legal90:refactor-port-forwarding

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant