commit | 4b6019e44963c8ab9c7cc55794b1faa7150ea417 | [log] [tgz] |
---|---|---|
author | Michele Santuari <michele.santuari@create-net.org> | Fri Dec 19 11:31:45 2014 +0100 |
committer | Brian O'Connor <bocon@onlab.us> | Sat Feb 14 10:00:48 2015 +0000 |
tree | 0fca22d69e0153c2b7c10b66a4ff2df13409b2f1 | |
parent | e1bda3f157d0fa208f5684384afe9e20faf612a9 [diff] [blame] |
ONOS-631 #Initial MPLS intent implementation Change-Id: I6f906b953f06f395cc67e612648802e333c0e581
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 3838cdf..09ec536 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
@@ -35,6 +35,7 @@ import org.onlab.packet.Ethernet; import org.onlab.packet.IpAddress; import org.onlab.packet.MacAddress; +import org.onlab.packet.MplsLabel; import org.onlab.packet.VlanId; /** @@ -132,7 +133,7 @@ * @param mplsLabel to set. * @return a L2 Modification */ - public static L2ModificationInstruction modMplsLabel(Integer mplsLabel) { + public static L2ModificationInstruction modMplsLabel(MplsLabel mplsLabel) { checkNotNull(mplsLabel, "MPLS label cannot be null"); return new ModMplsLabelInstruction(mplsLabel); }