commit | 4a69ef82e252493318b13cd1bfab0fe63d30be67 | [log] [tgz] |
---|---|---|
author | Thiago Santos <thiago@mode.net> | Tue Aug 21 21:18:05 2018 -0700 |
committer | Thomas Vachuska <tom@opennetworking.org> | Mon Mar 04 18:00:15 2019 +0000 |
tree | 72758d1c3d2cca1e72c261d94b781b9b9c9f5649 | |
parent | 5c34cfe7fbd84d3710a9b39029e56119c53cc88f [diff] [blame] |
TrafficTreatment: add support for IP DSCP modifications Allow modifying IP DSCP field in the headers. Change-Id: Idd765f40f1baec810273536adcd56bf0e480217f
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 33b7482..e0c58d3 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
@@ -485,6 +485,16 @@ } /** + * Creates an IP DSCP modification. + * + * @param dscpValue the DSCP value to modify to + * @return a L3 modification + */ + public static Instruction modIpDscp(byte dscpValue) { + return new L3ModificationInstruction.ModDscpInstruction(L3SubType.IP_DSCP, dscpValue); + } + + /** * Creates an extension instruction. * * @param extension extension instruction