fw: NccStrategy
refs #1242
Change-Id: I21f870728b7b361547adbde9d64357c93aeb1ed9
diff --git a/daemon/table/fib-entry.cpp b/daemon/table/fib-entry.cpp
index 61b9827..733782b 100644
--- a/daemon/table/fib-entry.cpp
+++ b/daemon/table/fib-entry.cpp
@@ -20,6 +20,14 @@
return nexthop.getFace() == face;
}
+bool
+Entry::hasNextHop(shared_ptr<Face> face) const
+{
+ NextHopList::const_iterator it = std::find_if(m_nextHops.begin(), m_nextHops.end(),
+ bind(&predicate_NextHop_eq_Face, _1, face));
+ return it != m_nextHops.end();
+}
+
void
Entry::addNextHop(shared_ptr<Face> face, int32_t cost)
{