implemented creation and allocation of network using networkapi