connmgr: Demote service controllers too in ofconn_set_role().
authorBen Pfaff <blp@nicira.com>
Mon, 28 Jul 2014 17:17:56 +0000 (10:17 -0700)
committerBen Pfaff <blp@nicira.com>
Mon, 28 Jul 2014 17:31:27 +0000 (10:31 -0700)
commitab66e29f7bb58aa3b9e8e49097d80f7c3b47965b
treee9873f6dc116e1369725e679c2334127afedcd84
parent19945013356f0eb8f63cfc7449139b3972abb7d7
connmgr: Demote service controllers too in ofconn_set_role().

Service controllers can set their roles, so it's necessary to demote them
to slaves if another controller becomes master.  Unfortunately the
'controllers' hmap only contains primary controllers, so this was omitted.

Signed-off-by: Ben Pfaff <blp@nicira.com>
Acked-by: Justin Pettit <jpettit@nicira.com>
ofproto/connmgr.c