mirror of
https://github.com/threefoldtech/mycelium.git
synced 2026-06-07 00:01:40 +00:00
Allow selection of infinite metric routes
This fixes an issue where a selected route with infinite metric was considered lost every time an update for that subnet came in, potentially causing an update storm. Signed-off-by: Lee Smet <lee.smet@hotmail.com>
This commit is contained in:
@@ -127,6 +127,7 @@ impl SourceTable {
|
||||
Some(fd) => {
|
||||
(route.seqno().gt(&fd.seqno))
|
||||
|| (route.seqno() == fd.seqno && route.metric() < fd.metric)
|
||||
|| route.metric().is_infinite()
|
||||
}
|
||||
None => true,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user