move tap interface creation to createvmportinterface for test