[VOL-2737]: Replicate flow on all pbits instead of just gem ports
to align with latest openolt adapter implementation.
Change-Id: I13cccf59fba83b41d6ac41aa3e0c5b457edb8abe
diff --git a/core/workflow_utils.go b/core/workflow_utils.go
index 656b8ec..4376760 100644
--- a/core/workflow_utils.go
+++ b/core/workflow_utils.go
@@ -167,12 +167,14 @@
}
func AddFlow(subs *Subscriber, flowType string, direction string, flowID uint32,
- allocID uint32, gemID uint32) error {
+ allocID uint32, gemID uint32, pcp uint32) error {
log.Infow("add-flow", log.Fields{"WorkFlow": subs.TestConfig.WorkflowName, "FlowType": flowType,
"direction": direction, "flowID": flowID})
var err error
flowClassifier, actionInfo := FormatClassfierAction(flowType, direction, subs)
+ // Update the o_pbit for which this flow has to be classified
+ flowClassifier.OPbits = pcp
flow := oop.Flow{AccessIntfId: int32(subs.PonIntf), OnuId: int32(subs.OnuID),
UniId: int32(subs.UniID), FlowId: flowID,
FlowType: direction, AllocId: int32(allocID), GemportId: int32(gemID),