commit | 75f5fb91c5efe5f4c27290954d94702d4d65bea8 | [log] [tgz] |
---|---|---|
author | Jordi Ortiz <jordi.ortiz@um.es> | Fri Oct 21 19:26:16 2016 +0200 |
committer | Gerrit Code Review <gerrit@onlab.us> | Tue Nov 15 23:46:07 2016 +0000 |
tree | a40c814b89770bc6db4f66479cf503e34edb68cd | |
parent | beb41222c60edd44cfbef1b54e2f2a4cc9fea0b9 [diff] |
MAX value positive, check value only in public constructor. The max value originated a negative value. Change-Id: I00ba9168e42edcf4ebb3f689151089097d9b69a7
diff --git a/core/common/src/test/java/org/onosproject/codec/impl/TrafficTreatmentCodecTest.java b/core/common/src/test/java/org/onosproject/codec/impl/TrafficTreatmentCodecTest.java index 3a26a92..250b8bd 100644 --- a/core/common/src/test/java/org/onosproject/codec/impl/TrafficTreatmentCodecTest.java +++ b/core/common/src/test/java/org/onosproject/codec/impl/TrafficTreatmentCodecTest.java
@@ -64,7 +64,7 @@ Instruction output = Instructions.createOutput(PortNumber.portNumber(0)); Instruction modL2Src = Instructions.modL2Src(MacAddress.valueOf("11:22:33:44:55:66")); Instruction modL2Dst = Instructions.modL2Dst(MacAddress.valueOf("44:55:66:77:88:99")); - MeterId meterId = MeterId.meterId(0); + MeterId meterId = MeterId.meterId(1); Instruction meter = Instructions.meterTraffic(meterId); Instruction transition = Instructions.transition(1); TrafficTreatment.Builder tBuilder = DefaultTrafficTreatment.builder();
diff --git a/core/common/src/test/resources/org/onosproject/codec/impl/TrafficTreatment.json b/core/common/src/test/resources/org/onosproject/codec/impl/TrafficTreatment.json index c185905..40e4eea 100644 --- a/core/common/src/test/resources/org/onosproject/codec/impl/TrafficTreatment.json +++ b/core/common/src/test/resources/org/onosproject/codec/impl/TrafficTreatment.json
@@ -11,11 +11,11 @@ }, { "type": "METER", - "meterId": "0" + "meterId": "1" }, { "type": "TABLE", "tableId": "1" } ] -} \ No newline at end of file +}