commit | 8bbe9ca7abf983986d615f38dc6334f5af2a9765 | [log] [tgz] |
---|---|---|
author | Niloofar Toorchi <niloofar@opennetworking.org> | Fri Jul 30 14:08:04 2021 -0700 |
committer | Pier Luigi Ventre <pier@opennetworking.org> | Tue Dec 14 17:49:24 2021 +0000 |
tree | cad867dddc818cc32f9d995923a8efdd48df0714 | |
parent | 4af4879dec09a7e626717819f46a21b8546c3d9c [diff] [blame] |
adding support of WCMP weights to Next Objective Change-Id: Id8f9a4222d0d9d98995f727dbfbf467ab2104468
diff --git a/core/api/src/main/java/org/onosproject/net/flowobjective/NextTreatment.java b/core/api/src/main/java/org/onosproject/net/flowobjective/NextTreatment.java index af849a2..cdeff98 100644 --- a/core/api/src/main/java/org/onosproject/net/flowobjective/NextTreatment.java +++ b/core/api/src/main/java/org/onosproject/net/flowobjective/NextTreatment.java
@@ -19,6 +19,7 @@ * Represents next action in the NextObjective. */ public interface NextTreatment { + int DEFAULT_WEIGHT = 1; /** * Types of next action. */ @@ -40,4 +41,10 @@ * @return type */ Type type(); + /** + * weight of this next action. + * + * @return weight + */ + int weight(); }