Skip to content

Commit

Permalink
Merge "Register nil_uuid filter for health check" into R3.2
Browse files Browse the repository at this point in the history
  • Loading branch information
Zuul authored and opencontrail-ci-admin committed Feb 3, 2017
2 parents f3adcbb + d2ff812 commit e400902
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/vnsw/agent/cfg/cfg_filter.cc
Expand Up @@ -69,6 +69,8 @@ int CfgFilter::GetIdPermsPropertyId(DBTable *table) const {
return LogicalInterface::ID_PERMS;
if (table == agent_cfg_->cfg_physical_device_table())
return PhysicalRouter::ID_PERMS;
if (table == agent_cfg_->cfg_health_check_table())
return ServiceHealthCheck::ID_PERMS;
if (table == agent_cfg_->cfg_qos_table())
return autogen::QosConfig::ID_PERMS;
if (table == agent_cfg_->cfg_qos_queue_table())
Expand Down Expand Up @@ -146,6 +148,9 @@ void CfgFilter::Init() {
agent_cfg_->cfg_physical_device_table()->RegisterPreFilter
(boost::bind(&CfgFilter::CheckProperty, this, _1, _2, _3));

agent_cfg_->cfg_health_check_table()->RegisterPreFilter
(boost::bind(&CfgFilter::CheckProperty, this, _1, _2, _3));

agent_cfg_->cfg_qos_table()->RegisterPreFilter
(boost::bind(&CfgFilter::CheckProperty, this, _1, _2, _3));

Expand Down
4 changes: 4 additions & 0 deletions src/vnsw/agent/cfg/cfg_init.cc
Expand Up @@ -190,6 +190,10 @@ void AgentConfig::RegisterDBClients(DB *db) {
"physical-router")));
assert(cfg_physical_device_table_);

cfg_health_check_table_ = (static_cast<IFMapAgentTable *>
(IFMapTable::FindTable(agent_->db(),
"service-health-check")));
assert(cfg_health_check_table_);

cfg_qos_table_ = (static_cast<IFMapAgentTable *>
(IFMapTable::FindTable(agent_->db(),
Expand Down
5 changes: 5 additions & 0 deletions src/vnsw/agent/cfg/cfg_init.h
Expand Up @@ -99,6 +99,10 @@ class AgentConfig {
return cfg_forwarding_class_table_;
}

IFMapAgentTable *cfg_health_check_table() const {
return cfg_health_check_table_;
}

Agent *agent() const { return agent_; }
CfgFilter *cfg_filter() const { return cfg_filter_.get(); }
IFMapAgentParser *cfg_parser() const { return cfg_parser_.get(); }
Expand Down Expand Up @@ -157,6 +161,7 @@ class AgentConfig {
IFMapAgentTable *cfg_service_instance_table_;
IFMapAgentTable *cfg_security_group_table_;
IFMapAgentTable *cfg_physical_device_table_;
IFMapAgentTable *cfg_health_check_table_;
IFMapAgentTable *cfg_qos_table_;
IFMapAgentTable *cfg_global_qos_table_;
IFMapAgentTable *cfg_qos_queue_table_;
Expand Down

0 comments on commit e400902

Please sign in to comment.