hello-protocol: re-calculate HR nexthops on status change of a neighbor

refs: #3874

Change-Id: I8295248d95e047e24cced9700eabd458ab3e9112
This commit is contained in:
Ashlesh Gawande committed 2016-12-05 12:06:25 -08:00
1 parent 41330f4256
commit c5fa320239
1 file changed
+6 -1
+6 -1
View File
@@ -207,7 +207,12 @@ HelloProtocol::onContentValidated(const ndn::shared_ptr<const ndn::Data>& data)
_LOG_DEBUG("Old Status: " << oldStatus << " New Status: " << newStatus);
// change in Adjacency list
if ((oldStatus - newStatus) != 0) {
m_nlsr.getLsdb().scheduleAdjLsaBuild();
if (m_nlsr.getConfParameter().getHyperbolicState() == HYPERBOLIC_STATE_ON) {
m_nlsr.getRoutingTable().scheduleRoutingTableCalculation(m_nlsr);
}
else {
m_nlsr.getLsdb().scheduleAdjLsaBuild();
}
}
}
}