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: I87f4f14703e50d5e9b790bb5b9268d0f9b29533a
closes-bug: 1538789
  • Loading branch information
haripk committed Feb 11, 2016
1 parent 72cf2ae commit f33b26d
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 f33b26d

Please sign in to comment.