lsa: change type variable to enum class
Change-Id: I7fba951649771700ce6ccc4be7fb400546607e96 refs: #4340
This commit is contained in:
1 parent
ff9a62713b
commit
727d4830d7
19 files changed
+288
-190
No files matched your search
@@ -58,14 +58,14 @@ RoutingTable::calculate(Nlsr& pnlsr)
|
||||
if ((!isHrEnabled
|
||||
&&
|
||||
pnlsr.getLsdb()
|
||||
.doesLsaExist(pnlsr.getConfParameter().getRouterPrefix().toUri()
|
||||
+ "/" + "adjacency", std::string("adjacency")))
|
||||
.doesLsaExist(ndn::Name{pnlsr.getConfParameter().getRouterPrefix()}
|
||||
.append(std::to_string(Lsa::Type::ADJACENCY)), Lsa::Type::ADJACENCY))
|
||||
||
|
||||
(isHrEnabled
|
||||
&&
|
||||
pnlsr.getLsdb()
|
||||
.doesLsaExist(pnlsr.getConfParameter().getRouterPrefix().toUri()
|
||||
+ "/" + "coordinate", std::string("coordinate")))) {
|
||||
.doesLsaExist(ndn::Name{pnlsr.getConfParameter().getRouterPrefix()}
|
||||
.append(std::to_string(Lsa::Type::COORDINATE)), Lsa::Type::COORDINATE))) {
|
||||
if (pnlsr.getIsBuildAdjLsaSheduled() != 1) {
|
||||
_LOG_TRACE("Clearing old routing table");
|
||||
clearRoutingTable();
|
||||
|
||||
Reference in new issue
Block a user