commit | 15c70a1b3e0663716a24ef2a0593626c06d94ca8 | [log] [tgz] |
---|---|---|
author | Thiago Santos <thiago@waltznetworks.com> | Wed Jan 18 21:39:44 2017 -0300 |
committer | Jonathan Hart <jono@onlab.us> | Fri Jan 20 16:20:33 2017 +0000 |
tree | a769dadfe22cb13a405ee6e0b1dcbf1c7239cfe5 | |
parent | 37b687bdf514de58caedb3c4c160468adacf13da [diff] |
[ONOS-5852] GroupBucket: Dont ignore weight from OF message Use it, instead of defaulting to 1 Change-Id: I163d179840d2db744d4179dc89bf1b17f4b77a3f
diff --git a/providers/openflow/group/src/main/java/org/onosproject/provider/of/group/impl/GroupBucketEntryBuilder.java b/providers/openflow/group/src/main/java/org/onosproject/provider/of/group/impl/GroupBucketEntryBuilder.java index 58cf18e..c3114b8 100644 --- a/providers/openflow/group/src/main/java/org/onosproject/provider/of/group/impl/GroupBucketEntryBuilder.java +++ b/providers/openflow/group/src/main/java/org/onosproject/provider/of/group/impl/GroupBucketEntryBuilder.java
@@ -89,7 +89,7 @@ break; case SELECT: groupBucket = - DefaultGroupBucket.createSelectGroupBucket(treatment); + DefaultGroupBucket.createSelectGroupBucket(treatment, (short) bucket.getWeight()); break; case FF: PortNumber port =