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/flow/flow.go b/flow/flow.go
index e86b7b7..f1d6e10 100644
--- a/flow/flow.go
+++ b/flow/flow.go
@@ -18,7 +18,7 @@
import (
"github.com/opencord/voltha-bbsim/common/logger"
- openolt "github.com/opencord/voltha-bbsim/protos"
+ openolt "github.com/opencord/voltha-protos/go/openolt"
log "github.com/sirupsen/logrus"
)
@@ -75,11 +75,11 @@
func (fc *DefaultFlowController) AddFlow(flow *openolt.Flow) error {
logger.WithFields(log.Fields{
"flow_eth_type": flow.Classifier.EthType,
- "ovid": flow.Classifier.OVid,
- "ivid": flow.Classifier.IVid,
- "onu_id": flow.OnuId,
- "flow_id": flow.FlowId,
- "flow_type": flow.FlowType,
+ "ovid": flow.Classifier.OVid,
+ "ivid": flow.Classifier.IVid,
+ "onu_id": flow.OnuId,
+ "flow_id": flow.FlowId,
+ "flow_type": flow.FlowType,
}).Debugf("AddFlow invoked for onu %d", flow.OnuId)
return nil
}