Commit 1153a1fb authored by Robert Ricci's avatar Robert Ricci

Fix a bug in the mapping precheck that was allowing nodes with too

many links to slip by unnoticed.
parent 89b168e9
...@@ -437,7 +437,7 @@ int mapping_precheck() { ...@@ -437,7 +437,7 @@ int mapping_precheck() {
// 'interfaces' due to the fact that it can have interswitch // 'interfaces' due to the fact that it can have interswitch
// links // links
if ((pnode->total_interfaces >= v->num_links) || if ((pnode->total_interfaces >= v->num_links) ||
pnode->current_type.compare("switch")) { (!pnode->current_type.compare("switch"))) {
matched_links++; matched_links++;
} else { } else {
potential_match = false; potential_match = false;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment