Remove deprecated instructions() method in the traffic treatment class
Change-Id: I739b35bdcbf9867c639c7b6ca4006f3eeafbb055
diff --git a/core/store/trivial/src/main/java/org/onosproject/store/trivial/impl/SimpleStatisticStore.java b/core/store/trivial/src/main/java/org/onosproject/store/trivial/impl/SimpleStatisticStore.java
index 9cfa41d..e4bf7dd 100644
--- a/core/store/trivial/src/main/java/org/onosproject/store/trivial/impl/SimpleStatisticStore.java
+++ b/core/store/trivial/src/main/java/org/onosproject/store/trivial/impl/SimpleStatisticStore.java
@@ -155,15 +155,7 @@
private ConnectPoint buildConnectPoint(FlowRule rule) {
PortNumber port = getOutput(rule);
- boolean hasGoto = rule.treatment().instructions()
- .stream()
- .anyMatch(i -> (i instanceof Instructions.GroupInstruction)
- || (i instanceof Instructions.TableTypeTransition));
-
if (port == null) {
- if (!hasGoto) {
- log.debug("Rule {} has no output.", rule);
- }
return null;
}
ConnectPoint cp = new ConnectPoint(rule.deviceId(), port);
@@ -171,7 +163,7 @@
}
private PortNumber getOutput(FlowRule rule) {
- for (Instruction i : rule.treatment().instructions()) {
+ for (Instruction i : rule.treatment().immediate()) {
if (i.type() == Instruction.Type.OUTPUT) {
Instructions.OutputInstruction out = (Instructions.OutputInstruction) i;
return out.port();