connmgr: Only send role status messages to OpenFlow 1.4+ controllers.
authorBen Pfaff <blp@nicira.com>
Tue, 22 Jul 2014 22:54:55 +0000 (15:54 -0700)
committerBen Pfaff <blp@nicira.com>
Mon, 28 Jul 2014 17:31:27 +0000 (10:31 -0700)
commit6751a4b43e9ec5110dbaa2619dfa97b3f8f41cf4
tree95981e8e144c85b580784ecdf6ba39d03204aae5
parentab66e29f7bb58aa3b9e8e49097d80f7c3b47965b
connmgr: Only send role status messages to OpenFlow 1.4+ controllers.

Only OpenFlow 1.4 and later support role status messages, but this code
tried to send them to all controllers, which caused an assertion failure.

Also, add tests to check that role status messages work, and that they
don't cause trouble with OF1.2.

Reported-by: Anup Khadka <khadka.py@gmail.com>
Signed-off-by: Ben Pfaff <blp@nicira.com>
Acked-by: Justin Pettit <jpettit@nicira.com>
AUTHORS
lib/ofp-util.c
ofproto/connmgr.c
tests/ofproto.at