Controller initiated connections always connect to one manager
authorAnil Vishnoi <vishnoianil@gmail.com>
Fri, 25 Sep 2015 04:19:01 +0000 (09:49 +0530)
committerAnil Vishnoi <vishnoianil@gmail.com>
Fri, 25 Sep 2015 17:49:26 +0000 (17:49 +0000)
commite5d15ff65d1c7d21268e2574088a506ce851eb85
tree2626c0de98d832ffef454c996ae24e7fc03e39a7
parenta7461a81b95703546d30d2f92a09c9ef2d07a416
Controller initiated connections always connect to one manager
listening in ptcp: mode. In clustered mode, all the three controller
will connect to the device, and in case any of the connection will flip
that instance will remove OvsdbNode from operational data store because
it will see only one manager in manager list. But because switch is
listening in passive mode, there can be multiple connection to same manager.
To handle this scenario, this patch adds number_of_connection attribute
to OvsdbNodeAugmentation to maintain the number of active connection to
specific manager. In case of switch initiated connection this value is
going to be 1 for each manager, but in case switch listening in passive
mode, this value will represent active connections (extraced from
Manager tables status column n_connections attributes).

Change-Id: I910104a5109b5bed6af7786a7692c617bd4305b7
Signed-off-by: Anil Vishnoi <vishnoianil@gmail.com>