commit | a08c5d0a61c5638a1344299468c57fb13f1ea109 | [log] [tgz] |
---|---|---|
author | Hyunsun Moon <hyunsun.moon@gmail.com> | Tue Jul 14 17:53:00 2015 -0700 |
committer | Hyunsun Moon <hyunsun.moon@gmail.com> | Tue Jul 14 17:56:35 2015 -0700 |
tree | b0479ddfc45c967817711993e3fc640af66e23e5 | |
parent | 0276a32e8cd7a5cdd0480ad2c570e07f90b8162f [diff] [blame] |
TUNNEL_ID field support in flow matching and actions Change-Id: I886123a7c8d57dc4a3e12727ec8a9be4920da79e
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 e8101f1..0467a91 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
@@ -350,6 +350,17 @@ } /** + * Creates a Tunnel ID modification. + * + * @param tunnelId the Tunnel ID to modify to + * @return a L2 modification + */ + public static L2ModificationInstruction modTunnelId(long tunnelId) { + checkNotNull(tunnelId, "Tunnel id cannot be null"); + return new L2ModificationInstruction.ModTunnelIdInstruction(tunnelId); + } + + /** * Drop instruction. */ public static final class DropInstruction implements Instruction {