Comment 9 for bug 1528770

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : A change has been merged

Reviewed: https://review.opencontrail.org/16239
Committed: http://github.org/Juniper/contrail-controller/commit/57874e3463e40be4501afce4c8d8349f39bc9c3a
Submitter: Zuul
Branch: master

commit 57874e3463e40be4501afce4c8d8349f39bc9c3a
Author: Sundaresan Rajangam <email address hidden>
Date: Tue Jan 12 08:46:46 2016 -0800

Set expected_connections in query-engine based on collector conf

Handle collector connection in query-engine as below:
- If collector list is configured, then query-engine should connect to
one of the collectors in the list irrespective of whether discovery
service is configured or not.
- If collector list is not configured and discovery server is
configured, then query-engine should subscribe to collector service and
connect to one of the collectors provided by the discovery server.
- If both collector list and discovery server are not configured, then
connect to the local collector.

expected_connections in ConnectionStateManager::Init should be set
appropriately based on the collector and discovery server config.

Change-Id: Idee0fa9c3fba76ce106e2f3152b033af4b057d7d
Partial-Bug: #1528770