If there are ports allocated outside of the project, do not allow network setting to be changed from shared to not shared

Change-Id: I055a096a78d978b5b5adf3d188564c1b715adede
Closes-Bug: 1351223
Merge "If there are ports allocated outside of the project, do not allow network setting to be changed from shared to not shared"