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: Ie8d43832e2dd936ba87fa314cdb63f1e0a5886f6
closes-bug: 1538789
  • Loading branch information
haripk committed Feb 11, 2016
1 parent 8a3b6b8 commit 9908363
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 9908363

Please sign in to comment.