Move common/utils.go to device/utils.go.
The utility functions ConvB2S(), OnuToSn(), LoggerWithOnu() in common/utils.go strongly depend on ONU instance specification.
Then, I consider it should be in device package that contains ONU instance , not utils package.
Change-Id: I7fd2b21c5f7c51be8ec4a5c161da9c93e3a3f582
diff --git a/core/api_service.go b/core/api_service.go
index a826594..1800e9e 100644
--- a/core/api_service.go
+++ b/core/api_service.go
@@ -22,15 +22,13 @@
"net/http"
"sync"
- "gerrit.opencord.org/voltha-bbsim/device"
-
pb "gerrit.opencord.org/voltha-bbsim/api"
+ "gerrit.opencord.org/voltha-bbsim/common/logger"
+ "gerrit.opencord.org/voltha-bbsim/device"
"github.com/grpc-ecosystem/grpc-gateway/runtime"
"google.golang.org/grpc"
"google.golang.org/grpc/codes"
"google.golang.org/grpc/status"
-
- "gerrit.opencord.org/voltha-bbsim/common/logger"
)
// Response Constants