commit | 3ebe170d8707cc559e786e075f0e1f74b53b142c | [log] [tgz] |
---|---|---|
author | Pavlin Radoslavov <pavlin@onlab.us> | Tue Feb 17 09:53:17 2015 -0800 |
committer | Pavlin Radoslavov <pavlin@onlab.us> | Tue Feb 17 21:13:24 2015 +0000 |
tree | 02b38c33147709a53c35418e831fbf61672f27e3 | |
parent | e97fec4ffba7ffaa80222dd9e10da53dd3185995 [diff] |
MPLS-related bug fixes: - Use subtype() instead of type() inside method ModMplsLabelInstruction.toString() - Check whether the MPLS value is negative inside the MplsLabel() constructor. Change-Id: I770194774219f0c919474928803e078226f2005d
diff --git a/core/api/src/main/java/org/onosproject/net/flow/instructions/L2ModificationInstruction.java b/core/api/src/main/java/org/onosproject/net/flow/instructions/L2ModificationInstruction.java index 6147551..5135557 100644 --- a/core/api/src/main/java/org/onosproject/net/flow/instructions/L2ModificationInstruction.java +++ b/core/api/src/main/java/org/onosproject/net/flow/instructions/L2ModificationInstruction.java
@@ -305,7 +305,7 @@ @Override public String toString() { - return toStringHelper(type().toString()) + return toStringHelper(subtype().toString()) .add("mpls", mplsLabel).toString(); }