ofproto: Only allow indirect groups with one bucket
authorSimon Horman <simon.horman@netronome.com>
Fri, 24 Oct 2014 05:59:20 +0000 (14:59 +0900)
committerBen Pfaff <blp@nicira.com>
Fri, 24 Oct 2014 15:52:43 +0000 (08:52 -0700)
commite1799eb718abe57e666ab8d875689e3b2f2927dc
tree97263927089726c459ab1137a62d577479cddbde
parent68501cfc2538a2f7082e1a56a3320a67e472f538
ofproto: Only allow indirect groups with one bucket

OpenFlow 1.1 - 1.4 specify that indirect groups should
opperate on the "one defined bucket in the group". OpenFlow
1.2 - 1.4 also state "This group only supports a single bucket."

This patch enforces the single bucket limitation for indirect groups
when decoding group mod messages. A test is also added to exercise
this change.

Signed-off-by: Simon Horman <simon.horman@netronome.com>
Signed-off-by: Ben Pfaff <blp@nicira.com>
lib/ofp-util.c
tests/ofproto.at