Skip to content

Commit

Permalink
Merge "Correct the expected connection for connection UVE"
Browse files Browse the repository at this point in the history
  • Loading branch information
Zuul authored and opencontrail-ci-admin committed Feb 1, 2017
2 parents 69d2232 + f58b96b commit 83cc89f
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 14 deletions.
14 changes: 4 additions & 10 deletions src/control-node/main.cc
Original file line number Diff line number Diff line change
Expand Up @@ -357,9 +357,7 @@ int main(int argc, char *argv[]) {
(ConnectionTypeName(g_process_info_constants.ConnectionTypeNames.find(
ConnectionType::COLLECTOR)->second, "Collector"))
(ConnectionTypeName(g_process_info_constants.ConnectionTypeNames.find(
ConnectionType::IFMAP)->second, "IFMapServer"));
(ConnectionTypeName(g_process_info_constants.ConnectionTypeNames.find(
ConnectionType::DATABASE)->second, "Cassandra"));
ConnectionType::DATABASE)->second, "Cassandra"))
(ConnectionTypeName(g_process_info_constants.ConnectionTypeNames.find(
ConnectionType::DATABASE)->second, "RabbitMQ"));
} else {
Expand All @@ -371,17 +369,13 @@ int main(int argc, char *argv[]) {
ConnectionType::COLLECTOR)->second, "Collector"))
(ConnectionTypeName(g_process_info_constants.ConnectionTypeNames.find(
ConnectionType::DISCOVERY)->second,
g_vns_constants.IFMAP_SERVER_DISCOVERY_SERVICE_NAME))
(ConnectionTypeName(g_process_info_constants.ConnectionTypeNames.find(
ConnectionType::IFMAP)->second, "IFMapServer"))
g_vns_constants.XMPP_SERVER_DISCOVERY_SERVICE_NAME))
(ConnectionTypeName(g_process_info_constants.ConnectionTypeNames.find(
ConnectionType::DISCOVERY)->second,
g_vns_constants.XMPP_SERVER_DISCOVERY_SERVICE_NAME));
(ConnectionTypeName(g_process_info_constants.ConnectionTypeNames.find(
ConnectionType::DATABASE)->second, "Cassandra"));
ConnectionType::DATABASE)->second, "Cassandra"))
(ConnectionTypeName(g_process_info_constants.ConnectionTypeNames.find(
ConnectionType::DATABASE)->second, "RabbitMQ"));
}

ConnectionStateManager::GetInstance()->Init(
*evm.io_service(), options.hostname(),
module_name, g_vns_constants.INSTANCE_ID_DEFAULT,
Expand Down
27 changes: 23 additions & 4 deletions src/dns/main.cc
Original file line number Diff line number Diff line change
Expand Up @@ -349,11 +349,30 @@ int main(int argc, char *argv[]) {
// 2. AMQP Server
//
std::vector<ConnectionTypeName> expected_connections;
expected_connections = boost::assign::list_of
(ConnectionTypeName(g_process_info_constants.ConnectionTypeNames.find(
ConnectionType::DATABASE)->second, "Cassandra"));
(ConnectionTypeName(g_process_info_constants.ConnectionTypeNames.find(
if (options.discovery_server().empty()) {
expected_connections = boost::assign::list_of
(ConnectionTypeName(g_process_info_constants.ConnectionTypeNames.find(
ConnectionType::COLLECTOR)->second, "Collector"))
(ConnectionTypeName(g_process_info_constants.ConnectionTypeNames.find(
ConnectionType::DATABASE)->second, "Cassandra"))
(ConnectionTypeName(g_process_info_constants.ConnectionTypeNames.find(
ConnectionType::DATABASE)->second, "RabbitMQ"));
} else {
expected_connections = boost::assign::list_of
(ConnectionTypeName(g_process_info_constants.ConnectionTypeNames.find(
ConnectionType::DISCOVERY)->second,
g_vns_constants.COLLECTOR_DISCOVERY_SERVICE_NAME))
(ConnectionTypeName(g_process_info_constants.ConnectionTypeNames.find(
ConnectionType::COLLECTOR)->second, "Collector"))
(ConnectionTypeName(g_process_info_constants.ConnectionTypeNames.find(
ConnectionType::DISCOVERY)->second,
g_vns_constants.DNS_SERVER_DISCOVERY_SERVICE_NAME))
(ConnectionTypeName(g_process_info_constants.ConnectionTypeNames.find(
ConnectionType::DATABASE)->second, "Cassandra"))
(ConnectionTypeName(g_process_info_constants.ConnectionTypeNames.find(
ConnectionType::DATABASE)->second, "RabbitMQ"));
}

ConnectionStateManager::GetInstance()->Init(
*(Dns::GetEventManager()->io_service()), options.hostname(),
module_name, g_vns_constants.INSTANCE_ID_DEFAULT,
Expand Down

0 comments on commit 83cc89f

Please sign in to comment.