Implemented logical interface creation with all possible scenarios

Change-Id: I32ded2d4d01294148058c7800aed9d82a36d43f6