commit | a62ac3da2acf8f3f0b19dc2faf100af7a1c15044 | [log] [tgz] |
---|---|---|
author | Carmelo Cascone <carmelo@opennetworking.org> | Wed Aug 30 03:19:00 2017 +0200 |
committer | Andrea Campanella <andrea@opennetworking.org> | Thu Aug 31 18:23:24 2017 +0000 |
tree | d0cfc467743d5918c703a692ecea1b5e69869e71 | |
parent | ce99952ac3c1f42692c328ea37f7202ea026580f [diff] [blame] |
Reusable implementation of default P4 interpreter That can be shared among many targets running a program equivalent to default.p4. Change-Id: Ic13fc4e416f4ad77f71fbd3202277aac9088b3b1
diff --git a/core/net/src/main/java/org/onosproject/net/pi/impl/PiFlowRuleTranslationServiceImpl.java b/core/net/src/main/java/org/onosproject/net/pi/impl/PiFlowRuleTranslationServiceImpl.java index b999197..c55a57c 100644 --- a/core/net/src/main/java/org/onosproject/net/pi/impl/PiFlowRuleTranslationServiceImpl.java +++ b/core/net/src/main/java/org/onosproject/net/pi/impl/PiFlowRuleTranslationServiceImpl.java
@@ -61,7 +61,7 @@ public PiTableEntry translate(FlowRule rule, PiPipeconf pipeconf) throws PiFlowRuleTranslationException { - Device device = deviceService.getDevice(rule.deviceId()); + final Device device = deviceService.getDevice(rule.deviceId()); if (device == null) { throw new PiFlowRuleTranslationException("Unable to get device " + rule.deviceId()); }