Skip to content

Commit

Permalink
Merge "Ignore change notification for loadbalancer-pool."
Browse files Browse the repository at this point in the history
  • Loading branch information
Zuul authored and opencontrail-ci-admin committed Jan 26, 2016
2 parents 38818d6 + 0727f7c commit 362ca7e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions src/vnsw/agent/oper/loadbalancer_pool.cc
Expand Up @@ -201,6 +201,10 @@ bool LoadbalancerPoolTable::OnChange(DBEntry *entry, const DBRequest *request) {
LoadbalancerPoolData *data = static_cast<LoadbalancerPoolData *>(
request->data.get());

/* Ignore change notifications if the entry is marked for delete */
if (data->node()->IsDeleted()) {
return false;
}
assert(graph_);
LoadBalancerPoolInfo properties;
CalculateProperties(graph_, data->node(), &properties, &type);
Expand Down
4 changes: 2 additions & 2 deletions src/vnsw/agent/oper/vm_interface.cc
Expand Up @@ -204,7 +204,7 @@ static void BuildFloatingIpList(Agent *agent, VmInterfaceConfigData *data,
IpAddress fixed_ip_addr =
IpAddress::from_string(fip->fixed_ip_address(), ec);
if (ec.value() != 0) {
fixed_ip_addr = Ip4Address(0);
fixed_ip_addr = IpAddress();
}
data->floating_ip_list_.list_.insert
(VmInterface::FloatingIp(addr, vrf_node->name(),
Expand Down Expand Up @@ -3657,7 +3657,7 @@ void VmInterface::FloatingIp::DeActivate(VmInterface *interface, bool l2) const{

const IpAddress
VmInterface::FloatingIp::GetFixedIp(const VmInterface *interface) const {
if (fixed_ip_.to_v4() == Ip4Address(0)) {
if (fixed_ip_.is_unspecified()) {
if (floating_ip_.is_v4() == true) {
return interface->primary_ip_addr();
} else {
Expand Down

0 comments on commit 362ca7e

Please sign in to comment.