This patch solves the following issue:

* When flow stats reply is received, a new FlowEntry object is created. However, although flow stats entry includes meter instruction, ONOS does not assign this value (meterId) to the FlowEntry object.

Change-Id: I73ad5dd75b3b77117360844fea66adb3b132cc87
This commit is contained in:
Gamze Abaka 2019-02-27 12:07:43 +00:00 committed by Saurav Das
parent 7c070c8fda
commit 2bc10aed5b

View File

@ -82,6 +82,7 @@ import org.projectfloodlight.openflow.protocol.action.OFActionSetVlanVid;
import org.projectfloodlight.openflow.protocol.instruction.OFInstruction;
import org.projectfloodlight.openflow.protocol.instruction.OFInstructionApplyActions;
import org.projectfloodlight.openflow.protocol.instruction.OFInstructionGotoTable;
import org.projectfloodlight.openflow.protocol.instruction.OFInstructionMeter;
import org.projectfloodlight.openflow.protocol.instruction.OFInstructionStatTrigger;
import org.projectfloodlight.openflow.protocol.instruction.OFInstructionWriteActions;
import org.projectfloodlight.openflow.protocol.instruction.OFInstructionWriteMetadata;
@ -445,6 +446,7 @@ public class FlowEntryBuilder {
case EXPERIMENTER:
break;
case METER:
builder.meter(MeterId.meterId(((OFInstructionMeter) in).getMeterId()));
break;
default:
log.warn("Unknown instructions type {}", in.getType());