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:32:04 +0000 (10:32 -0700)
commit2817b4aa74f8731607c93821956cf3ceaf79a63c
treef5e04e4d81ea03dca6005add892189f97302b772
parentbc814d7c8ac2ed33eb9d17fa4d570489a7105881
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