hello-protocol: re-calculate HR nexthops on status change of a neighbor
refs: #3874
Change-Id: I8295248d95e047e24cced9700eabd458ab3e9112
diff --git a/src/hello-protocol.cpp b/src/hello-protocol.cpp
index 174f295..9f8472a 100644
--- a/src/hello-protocol.cpp
+++ b/src/hello-protocol.cpp
@@ -207,7 +207,12 @@
_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();
+ }
}
}
}