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:32:04 +0000 (10:32 -0700)
commit9067b54e0383baf006b330abfcdb0e0ad00bc8dd
tree7e5bc67bb5f999b8a5ddc2575b560942f979be3b
parent2817b4aa74f8731607c93821956cf3ceaf79a63c
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