mirror of
https://github.com/opennetworkinglab/onos.git
synced 2025-12-06 01:41:26 +01:00
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:
parent
7c070c8fda
commit
2bc10aed5b
@ -82,6 +82,7 @@ import org.projectfloodlight.openflow.protocol.action.OFActionSetVlanVid;
|
|||||||
import org.projectfloodlight.openflow.protocol.instruction.OFInstruction;
|
import org.projectfloodlight.openflow.protocol.instruction.OFInstruction;
|
||||||
import org.projectfloodlight.openflow.protocol.instruction.OFInstructionApplyActions;
|
import org.projectfloodlight.openflow.protocol.instruction.OFInstructionApplyActions;
|
||||||
import org.projectfloodlight.openflow.protocol.instruction.OFInstructionGotoTable;
|
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.OFInstructionStatTrigger;
|
||||||
import org.projectfloodlight.openflow.protocol.instruction.OFInstructionWriteActions;
|
import org.projectfloodlight.openflow.protocol.instruction.OFInstructionWriteActions;
|
||||||
import org.projectfloodlight.openflow.protocol.instruction.OFInstructionWriteMetadata;
|
import org.projectfloodlight.openflow.protocol.instruction.OFInstructionWriteMetadata;
|
||||||
@ -445,6 +446,7 @@ public class FlowEntryBuilder {
|
|||||||
case EXPERIMENTER:
|
case EXPERIMENTER:
|
||||||
break;
|
break;
|
||||||
case METER:
|
case METER:
|
||||||
|
builder.meter(MeterId.meterId(((OFInstructionMeter) in).getMeterId()));
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
log.warn("Unknown instructions type {}", in.getType());
|
log.warn("Unknown instructions type {}", in.getType());
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user