summaryrefslogtreecommitdiff
path: root/ovn
diff options
context:
space:
mode:
authorBen Pfaff <blp@ovn.org>2018-09-25 14:06:37 -0700
committerBen Pfaff <blp@ovn.org>2018-09-26 13:49:43 -0700
commitf836888d28ec89565f87609e06f48becb49e5079 (patch)
tree67cbab4a8ca8b1b47bf5788ee2a8a684434da28a /ovn
parentffe6cea89667a7e6d4ac0396f85acdcb3c64ce0e (diff)
downloadopenvswitch-f836888d28ec89565f87609e06f48becb49e5079.tar.gz
ofproto: Handle OpenFlow version mismatch for requestforward with groups.
OpenFlow 1.4+ supports a feature called requestforward. When a controller enables this feature, the switch sends that controller a copy of other controllers' group and meter modification requests. OpenFlow 1.5 supports some group features not in OpenFlow 1.4. When OVS attempted to forward such requests to an OpenFlow 1.4 controller, it reported an error and exited. This commit fixes the problem by making OVS properly translate the messages to OpenFlow 1.4 format. Reported-by: Pierre Cregut <pierre.cregut@orange.com> Tested-by: Pierre Cregut <pierre.cregut@orange.com> Reported-at: https://mail.openvswitch.org/pipermail/ovs-discuss/2018-September/047453.html Signed-off-by: Ben Pfaff <blp@ovn.org>
Diffstat (limited to 'ovn')
-rw-r--r--ovn/controller/ofctrl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ovn/controller/ofctrl.c b/ovn/controller/ofctrl.c
index 96c57f143..f5b53195d 100644
--- a/ovn/controller/ofctrl.c
+++ b/ovn/controller/ofctrl.c
@@ -777,7 +777,7 @@ add_flow_mod(struct ofputil_flow_mod *fm, struct ovs_list *msgs)
static struct ofpbuf *
encode_group_mod(const struct ofputil_group_mod *gm)
{
- return ofputil_encode_group_mod(OFP13_VERSION, gm);
+ return ofputil_encode_group_mod(OFP13_VERSION, gm, NULL, -1);
}
static void