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: Id10a256d27bc90a0b65d84577646f41a9484ad03
closes-bug: 1538789
  • Loading branch information
haripk committed Feb 11, 2016
1 parent 1da98c4 commit 23c809d
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 23c809d

Please sign in to comment.