remove extra check for filtering existing bonds
All checks were successful
Run Check Script / check (pull_request) Successful in 1m11s

This commit is contained in:
Ian Letourneau 2025-11-05 18:38:01 -05:00
parent ae6ab24e53
commit db80dafa99

View File

@ -329,7 +329,7 @@ impl HAClusterTopology {
.and_then(|network_state| network_state.status.current_state.as_ref())
.map_or(&interfaces, |current_state| &current_state.interfaces)
.iter()
.filter(|i| i.r#type == nmstate::InterfaceType::Bond && i.link_aggregation.is_some())
.filter(|i| i.r#type == nmstate::InterfaceType::Bond)
.collect();
let used_ids: HashSet<u32> = existing_bonds