GitLab maintenance scheduled for Today, 2019-12-05, from 17:00 to 18:00 CT - Services will be unavailable during this time.

Commit 53750f64 authored by Neil McGlohon's avatar Neil McGlohon

Dragonfly Plus: Fixed Beta Scoring Potential Flaw

parent 35807428
......@@ -2341,8 +2341,13 @@ static int get_min_hops_to_dest_from_conn(router_state *s, tw_bf *bf, terminal_p
}
}
else { //next is not in final destination group
if (next_hops_type == SPINE)
return 3; //Next Spine -> Spine -> Leaf -> dest_term
if (next_hops_type == SPINE) {
vector< Connection > cons_to_dest_group = connManagerList[conn.dest_gid].get_connections_to_group(fdest_group_id);
if (cons_to_dest_group.size() == 0)
return 5; //Next Spine -> Leaf -> Spine -> Spine -> Leaf -> dest_term
else
return 3; //Next Spine -> Spine -> Leaf -> dest_term
}
else {
assert(next_hops_type == LEAF);
return 4; //Next Leaf -> Spine -> Spine -> Leaf -> dest_term
......
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