commit | daeb949506b51ea66e0e6f1ff34687f1ad0ba88b | [log] [tgz] |
---|---|---|
author | Rory Savage <rory.savage@windstream.com> | Tue Feb 18 14:35:50 2020 -0500 |
committer | Thomas Vachuska <tom@opennetworking.org> | Wed Feb 26 04:10:28 2020 +0000 |
tree | b458e61eaa9ba94e9eb78cfbcbd2599ffb5c5aff | |
parent | bdf39a75600df007e08234f89b8f8834e00f1b2a [diff] |
Throw exception if dscp value is not byte. Change-Id: Iae005dda9f28fb28f1bcc9ea5de31f1bf2c65843
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 e0c58d3..d1fc61f 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
@@ -487,11 +487,11 @@ /** * Creates an IP DSCP modification. * - * @param dscpValue the DSCP value to modify to + * @param ipDscp the DSCP value to modify to * @return a L3 modification */ - public static Instruction modIpDscp(byte dscpValue) { - return new L3ModificationInstruction.ModDscpInstruction(L3SubType.IP_DSCP, dscpValue); + public static Instruction modIpDscp(byte ipDscp) { + return new L3ModificationInstruction.ModDscpInstruction(L3SubType.IP_DSCP, ipDscp); } /**