Fixed the bugs in logical interface creation

Change-Id: If7dea2646341500d36b5dce09680bc54b5d42092