VOL-1855: Support for techprofile
Also now use voltha-protos repo similar to other 2.x builds
Also a go fmt
Tested with:
voltha-go TP patch: https://gerrit.opencord.org/#/c/14767/
openolt TP patch: https://gerrit.opencord.org/#/c/14771/
Change-Id: I327573af6cd7f54cdfcb9fb4bdbdc24d960f96be
diff --git a/core/core_server.go b/core/core_server.go
index 6899d86..a8d9d52 100644
--- a/core/core_server.go
+++ b/core/core_server.go
@@ -33,7 +33,7 @@
"github.com/opencord/voltha-bbsim/common/logger"
"github.com/opencord/voltha-bbsim/device"
flowHandler "github.com/opencord/voltha-bbsim/flow"
- openolt "github.com/opencord/voltha-bbsim/protos"
+ openolt "github.com/opencord/voltha-protos/go/openolt"
log "github.com/sirupsen/logrus"
"golang.org/x/sync/errgroup"
"google.golang.org/grpc"
@@ -331,9 +331,9 @@
return err
}
- if state == onu.GetIntState(){
+ if state == onu.GetIntState() {
logger.WithFields(log.Fields{
- "toState": device.ONUState[state],
+ "toState": device.ONUState[state],
"currentState": device.ONUState[onu.GetIntState()],
}).Warn("Trying to update the state with the same state, ignoring this request")
return nil