Skip to content

Commit

Permalink
Clear state on VRF entry only on the VRF delete notify.
Browse files Browse the repository at this point in the history
The VRF state set by arp proto is being deleted upon ARP entry
deletion, if VRF is delete marked. If the VRF delete notification
comes later, as the state is already cleared, the rest of cleanup
is skipped. The VRF state should be cleared only on VRF delete
notification.

Change-Id: I8a0ae368e4964f54d7a8a5048b9913944ba2c987
closes-bug: 1538789
  • Loading branch information
haripk committed Feb 10, 2016
1 parent aa48dd9 commit 7b95333
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/vnsw/agent/services/arp_proto.cc
Expand Up @@ -500,7 +500,6 @@ ArpProto::ArpIterator
ArpProto::DeleteArpEntry(ArpProto::ArpIterator iter) {
ArpEntry *entry = iter->second;
arp_cache_.erase(iter++);
ValidateAndClearVrfState(const_cast<VrfEntry *>(entry->key().vrf));
delete entry;
return iter;
}
Expand Down

0 comments on commit 7b95333

Please sign in to comment.