Revert "fib: add EndpointId field in NextHop record"

This reverts commit 3ad49db6ea.

refs: #4973

Change-Id: I3216a55a8c4ed52cd9181f790f8ab72e44330a38
This commit is contained in:
Md Ashiqur Rahman authored and Davide Pesavento committed 2019-08-12 12:00:30 -07:00
1 parent 9aafc2a086
commit 6be9387a4f
21 files changed
+124 -233

No files matched your search

+3 -15
View File
@@ -133,28 +133,16 @@ Fib::erase(const Entry& entry)
}
void
Fib::eraseIfEmpty(Entry& entry)
Fib::removeNextHop(Entry& entry, const Face& face)
{
entry.removeNextHop(face);
if (!entry.hasNextHops()) {
name_tree::Entry* nte = m_nameTree.getEntry(entry);
this->erase(nte, false);
}
}
void
Fib::removeNextHop(Entry& entry, const Face& face, EndpointId endpointId)
{
entry.removeNextHop(face, endpointId);
this->eraseIfEmpty(entry);
}
void
Fib::removeNextHopByFace(Entry& entry, const Face& face)
{
entry.removeNextHopByFace(face);
this->eraseIfEmpty(entry);
}
Fib::Range
Fib::getRange() const
{