[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 =