commit | b82c42b0fefde745e0ded7b92d12e6cca10c4576 | [log] [tgz] |
---|---|---|
author | Ray Milkey <ray@onlab.us> | Tue Jun 30 09:42:20 2015 -0700 |
committer | Gerrit Code Review <gerrit@onlab.us> | Mon Jul 06 20:19:42 2015 +0000 |
tree | 36df19739008d7c9269007d5bbf355aaa6a8dcf2 | |
parent | 07a923dcf934b25084f055a8a99e0f4101610213 [diff] [blame] |
Implementation of REST POST API for creating intents - codec for constraint decode - codec for intent decode - POST method for intents - unit tests for codecs and POST method Change-Id: Ibc0ef8f99a0c0664710a733985424c77010c49b5
diff --git a/core/common/src/main/java/org/onosproject/codec/impl/TrafficTreatmentCodec.java b/core/common/src/main/java/org/onosproject/codec/impl/TrafficTreatmentCodec.java index edfe10c..0d7fb42 100644 --- a/core/common/src/main/java/org/onosproject/codec/impl/TrafficTreatmentCodec.java +++ b/core/common/src/main/java/org/onosproject/codec/impl/TrafficTreatmentCodec.java
@@ -68,7 +68,7 @@ if (instructionsJson != null) { IntStream.range(0, instructionsJson.size()) .forEach(i -> builder.add( - instructionsCodec.decode((ObjectNode) instructionsJson.get(i), + instructionsCodec.decode(get(instructionsJson, i), context))); } return builder.build();