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:
Lee Smet
2023-11-21 13:29:35 +01:00
parent dc043cf253
commit ae01592043
+1
View File
@@ -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,
}