face+table: move EndpointId typedef out of Transport and use it in table
refs: #4843
Change-Id: I2b200518a57b21d66eae4360166afda31c3bf11b
diff --git a/daemon/table/fib-entry.cpp b/daemon/table/fib-entry.cpp
index cf14936..53dd584 100644
--- a/daemon/table/fib-entry.cpp
+++ b/daemon/table/fib-entry.cpp
@@ -35,7 +35,7 @@
}
NextHopList::iterator
-Entry::findNextHop(const Face& face, uint64_t endpointId)
+Entry::findNextHop(const Face& face, EndpointId endpointId)
{
return std::find_if(m_nextHops.begin(), m_nextHops.end(),
[&face, endpointId] (const NextHop& nexthop) {
@@ -44,13 +44,13 @@
}
bool
-Entry::hasNextHop(const Face& face, uint64_t endpointId) const
+Entry::hasNextHop(const Face& face, EndpointId endpointId) const
{
return const_cast<Entry*>(this)->findNextHop(face, endpointId) != m_nextHops.end();
}
void
-Entry::addOrUpdateNextHop(Face& face, uint64_t endpointId, uint64_t cost)
+Entry::addOrUpdateNextHop(Face& face, EndpointId endpointId, uint64_t cost)
{
auto it = this->findNextHop(face, endpointId);
if (it == m_nextHops.end()) {
@@ -62,7 +62,7 @@
}
void
-Entry::removeNextHop(const Face& face, uint64_t endpointId)
+Entry::removeNextHop(const Face& face, EndpointId endpointId)
{
auto it = this->findNextHop(face, endpointId);
if (it != m_nextHops.end()) {