commit | ab21b2d05a483db116135e0228f5eda8f89d8b83 | [log] [tgz] |
---|---|---|
author | alshabib <alshabibi.ali@gmail.com> | Wed Mar 04 18:35:33 2015 -0800 |
committer | Gerrit Code Review <gerrit@onlab.us> | Thu Mar 05 21:03:43 2015 +0000 |
tree | f99b63696495ee6c4a2dc04b6b47081366ed967e | |
parent | 81208c79dd564e08ffbc498ca63fb7e7f2ff0fe1 [diff] [blame] |
fix corsa pipeline divergence : need to differentiate between write and apply instructions. Change-Id: I477d27d6e52a8e09744614e5f5aa843dd26331e0
diff --git a/core/api/src/main/java/org/onosproject/net/flow/instructions/Instructions.java b/core/api/src/main/java/org/onosproject/net/flow/instructions/Instructions.java index 7c3c24e..afbae7d 100644 --- a/core/api/src/main/java/org/onosproject/net/flow/instructions/Instructions.java +++ b/core/api/src/main/java/org/onosproject/net/flow/instructions/Instructions.java
@@ -130,6 +130,14 @@ } /** + * Strips the VLAN tag if one is present. + * @return a L2 modification + */ + public static L2ModificationInstruction stripVlanId() { + return new StripVlanInstruction(); + } + + /** * Creates a MPLS label modification. * @param mplsLabel to set. * @return a L2 Modification